Bill Jonas on Wed, 27 Mar 2002 10:58:20 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Changing boot device


On Wed, Mar 27, 2002 at 01:18:33AM -0500, Doug Crompton wrote:
> I will look at it again. I don't want to copy or upgrade though. I want to
> take a disk that is now mounted as HDF and mount it HDA. I assume I need

I misunderstood you.  I thought you wanted to move your data from one
disk to the other and then make the partition you just copied the data
to your new root partition rather than change where your drive is
attached.

> to make a boot floppy saying that my root - now /dev/hdf7 is /dev/hda7 and
> then change fstab for all the partitions. But I am not sure of the order.
> I can't change fstab or the system won't umount right? Do I need to boot
> the root as hdfa, mount it RW and then change all hdf's to hda's in fstab.

Like the others said, you want to boot into single-user mode to change
the fstab.  Also, in order to get it to boot using LILO, look at the
bios=<param> option in lilo.conf(5).  (More discussion on that is
available at <http://www.linuxdoc.org/HOWTO/mini/LILO-4.html>.)

Or you can make a boot disk to get you past the first boot.  You'll
probably want a bootloader so that you can boot into single-user mode to
change the fstab.  If you don't have one (either one that you've made or
from your distribution), go get
<ftp://alpha.gnu.org/gnu/grub/grub-0.91-i386-pc.ext2fs> and dd it to
floppy.

> Is there an automated way to do this. Using SuSe 7.3

Not any more than in MS Windows.  (fdisk, reboot, format, run xcopy32
with some options I currently forget, shut down, switch cables...)

-- 
Bill Jonas    *    bill@billjonas.com    *    http://www.billjonas.com/

Developer/SysAdmin for hire!   See http://www.billjonas.com/resume.html

Attachment: pgpbEwpGxWzeD.pgp
Description: PGP signature