>>>>> "siliconmike" == siliconmike writes:
siliconmike> If no, what OS settings (eg. fstab??) do I need to
siliconmike> change ?
If I recall correctly, the only thing you need to change is the device
names in /etc/fstab. You will probably have to boot into single user
mode to do it, that is to say, after you have made the physical
hardware change:
1. When booting FreeBSD, select option 4 at the "Welcome to FreeBSD!"
boot menu to boot into single user mode.
2. You will be prompted as to the location of your root file system.
For example, assuming your root file system was originally
/dev/ad0s1a and is now detected as /dev/ad2s1a, enter the
following:
ufs:ad2s1a
This prompt happens because FreeBSD reads /etc/fstab off the boot
volume to get the name of the root file system. (Unlike Linux, the
official FreeBSD distribution doesn't put the boot files on a
separate file system from the root file system.)
3. Just press return to start /bin/sh.
4. Remount the root file system read-write with the command:
mount -u -o rw /
5. If you do nothing else, you'll have to use ed to modify
/etc/fstab. For example, assuming your drive was originally
/dev/ad0 and is now detected as /dev/ad2, the following series of
commands will change /etc/fstab and save the changes to a new file
named /etc/fstab.new:
ed /etc/fstab
%s/ad0/ad2/g
w /etc/fstab.new
q
It is prudent to double-check your changes and backup your old copy
of /etc/fstab, just in case something goes horribly, horribly wrong.
6. Remount the root file system read-only with the command:
mount -u -o ro /
7. Reboot with the command:
reboot
Using ed is somewhat old-school, but if you want to use another
editor, you'll need to manually mount (and subsequently unmount) the
rest of your file systems (/usr, /var, etc.).
I tested this procedure in VMware just now, and it worked for me.
Good luck!
Best wishes,
matthew
--
jsoffron: I'm generally pretty high on national defense...
Mr. Bad Example: Careful...it's a gateway policy. Before you know it,
you'll be mainlining the hard stuff like trade agreements.
jsoffron: Too late...I've been freebasing Nafta all day... Sweet,
sweet NAFTA.
- As seen on Slashdot
>> Stay informed about: simple boot question