misc/167449: slice re-partitioning cause invalid partition for boot2, boot.config not recognized

hans hm at hm.net.br
Mon Apr 30 09:13:26 UTC 2012

>Number:         167449
>Category:       misc
>Synopsis:       slice re-partitioning cause invalid partition for boot2, boot.config not recognized
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 30 09:10:07 UTC 2012
>Originator:     hans
>Release:        Satable-9
FreeBSD pop1.hm.net.br 9.0-STABLE FreeBSD 9.0-STABLE #5: Wed Apr 25 02:18:05 BRT 2012     hmm at pop1.hm.net.br:/usr/obj/usr/src/sys/WIPMINI  i386

After deleting the d and e partition and creating a new d partition with the available free space, boot hangs at boot2 

However, entering 0:ad(0,3,a)/boot/loader, I can boot and system works normal

bsdlabel is ok

# /dev/ada0s3:
8 partitions:
#          size     offset    fstype   [fsize bsize bps/cpg]
  a:    4194304          0    4.2BSD        0     0     0
  b:    4190208    4194304      swap                    
  c:   96255999          0    unused        0     0     # "raw" part, don't edit
  d:   87871487    8384512    4.2BSD        0     0     0

so I created /boot.config with the above settings but it seems not beeing read, still hangs at boot2

Editing the label with bsdlabel -e was not permitted

using gpart for bootstrapping
gpart bootcode -b /boot/boot ada0s3

also no success, still hangs at boot2

having currdev and/or rootdev in boot.loader makes no difference either

I am n ot very familare to mbr/disk manipulation, so I do not know what else to do now

My boot loader is grub2 installed on this ada0s3a partition, all other systems are coming up fine, since it is coming until boot2 on ada0s3a I believe the problem is not the boot manager

my partitions are glabeled, some also gjournal, I have two disks, this system should boot from ada0s3a which is label/rootfs

/dev/label/rootfs      2G    394M    1.4G    21%    /
devfs                1.0k    1.0k      0B   100%    /dev
/dev/label/varfs      57G    1.4G     51G     3%    /var
/dev/label/usrfs     134G     12G    111G    10%    /usr
/dev/label/dados      39G     29G    7.4G    80%    /dados
procfs               4.0k    4.0k      0B   100%    /proc
linprocfs            4.0k    4.0k      0B   100%    /compat/linux/proc

glabel status
                  Name  Status  Components
     ext2fs/F16_rootfs     N/A  ada0s1
          label/rootfs     N/A  ada0s3a
           label/swap0     N/A  ada0s3b
             ntfs/Win7     N/A  ada1s2
           label/usrfs     N/A  ada0s2b.journal
           label/varfs     N/A  ada0s2d.journal
           label/dados     N/A  ada0s3d.journal
           label/swap1     N/A  ada1s3b
ext2fs/_Fedora-16-i686     N/A  ada1s6
           label/root0     N/A  ada1s3a.journal
ufsid/4f97986cf50ff2b4     N/A  ada1s3a.journal
             ufs/root0     N/A  ada1s3a.journal

journal status
           Name  Status  Components
ada0s2b.journal     N/A  ada0s2b
ada0s2d.journal     N/A  ada0s2d
ada0s3d.journal     N/A  ada0s3d
ada1s3a.journal     N/A  ada1s3a




More information about the freebsd-bugs mailing list