Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2005 03:31:54 -0700
From:      Glenn Dawson <glenn@antimatter.net>
To:        Omar Thameen <omar@westside.urbanblight.com>, freebsd-questions@freebsd.org
Subject:   Re: bsdlabel and moving to a bigger drive
Message-ID:  <6.1.0.6.2.20050725032448.03874610@cobalt.antimatter.net>
In-Reply-To: <20050725101147.GA79920@biglist.com>
References:  <20050725101147.GA79920@biglist.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 03:11 AM 7/25/2005, Omar Thameen wrote:
>I'm trying to transfer a 5.4 box from one drive to another bigger one.
>I've added the second drive, partitioned and labeled it using
>sysinstall's "post-install configuration of FreeBSD" menu item,
>created new partitions with better space allocation, then dumped/restored
>the filesystems.
>
>I had sysinstall create all the filesystems on /mnt so I could do
>the dump/restore.  Because there was no / partition (it was "/mnt"
>on the new drive), sysinstall did not create an ad2s1a partition.
>The / partition on the new drive is thus ad2s1d.
>
>After the dump/restore, I edited /etc/fstab in preparation for putting
>the new drive on the primary IDE controller and the original drive on
>the secondary IDE controller.  On reboot, I had to tell the boot
>process to boot from ad0s1d (the new drive is now ad0) via
>0:ad(0,d)/boot/loader
>at the boot prompt.
>
>That works fine, but I'd like to avoid having to type that in every
>time.  I figured I could just use bsdlabel to rename the 'd' partition
>to 'a' so it can be booted from, but here's my first problem:
>bsdlabel -e ad0s1
>doesn't save my changes.  I've tried this after a default boot and
>in single-user mode.  Do I need to boot from floppy/cd to accomplish
>this, or is there something else I'm missing?

The bootstrap code only knows how to find the 'a' partition.  According to 
the boot(8) man page, the only way to avoid manual intervention at boot 
time is to have the 'a' partition as /

-Glenn


>While I'm on the boot kick, here's my next question.  I tried booting
>from the original drive (now on the 2nd IDE controller) via:
>1:ad(0,a)/boot/loader
>at the boot prompt, but it won't boot because it's looking for the
>kernel on ad0s1d.  The only place I can think it would be getting
>that information from is /etc/fstab the IDE drive on the primary
>controller.  I thought that if I booted from the IDE drive on
>the secondary controller, the whole process would proceed by reading
>files off of that drive - but do the boot files always look on
>the primary drive?
>
>Omar
>
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.1.0.6.2.20050725032448.03874610>