Re: Duplicating drives (different sizes).

From: sean (sean_at_fredcom.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 08:55:10 -0500


John:

Make a boot floppy
shutdown
swap hda and hdb
boot from floppy setting root=/dev/hda1
reinstall lilo (I dont remember the exact command for that)
shutdown/reboot
And your system should boot from the new drive

I say use the boot floppy since I have had problems getting lilo to
properly initialize a second drive for booting. It is simpler to just
make a boot floppy and boot the new drive, the initialize it with lilo.
  I switched to Grub a long time a got too. I think it offers much more
flexibility. (however lilo served me well for a long time too)

~Sean

John Wrate wrote:
> Hi all,
>
> I have a Linux system which runs on an 8 Gb. IDE hard disk. I have a
> second 20 Gb drive that I want to use as the main drive.
>
> This is how the mounting looks like right now:
>
> /dev/hda1 on / type ext2
> /proc on /proc type proc
> /dev/hdb1 on /back type ext2
>
> With hdb1 being the larger newer drive.
>
> I have made copies (cp -au) of all files from hda1 to hdb1 and hdb1
> also has a "swap" file configured. So basically I have a copy of
> everything on hdb1 and I want to make it the main drive.
>
> I have also e2fsck /dev/hdb1 and everything seems fine.
>
> Finally, I have issued the following command to make hdb1 bootable:
>
> lilo -r /back
>
> Is this enough? I mean, if I shutdown the system and connect the 20
> Gb drive(now /dev/hdb) so that it is the only system drive should it
> boot?
>
> I know both drives contain the exact same files, but I don't know if I
> have set up the MBR correctly in the second drive by just issueing the
> lilo -r command.
>
> Any help will be very much appreciated.



Relevant Pages

  • RocketRAID 100 and Linux Booting - HELP!
    ... I tried to write the MBR of the designated BOOT drive ... of 01's on the screen instead of a lilo boot screen. ... 200G drives as a SINGLE 200G SCSI drive. ... MBR to the /dev/sda device. ...
    (Debian-User)
  • Re: [SLE] Dual-booting...or trying, heh
    ... > there can only be one primary partition on the boot device. ... from other drives do this by presenting the other selected drive as the first ... GRUB and LILO manage the ...
    (SuSE)
  • HELP - Cant start up Computer AT ALL. even with floppy or CDs
    ... Mandrake 9.1 (first time trying linux) and used it to shrink the windows ... partition and dual boot linux. ... lilo now both here and on the MBR?) ... drives in. ...
    (alt.linux)
  • HELP - Cant start up Computer AT ALL. even with floppy or CDs
    ... Mandrake 9.1 (first time trying linux) and used it to shrink the windows ... partition and dual boot linux. ... lilo now both here and on the MBR?) ... drives in. ...
    (alt.os.linux)
  • Re: SBS 2003 + SATA + failing software mirror
    ... One thing...one of ourengineers went to site and thought he was going to shut down the server and replace the ailing drive boot back up and everything would be hunky dory.. ... When you start the system you need to check that partitions are correctly assigned to the right drives. ... On my SCSI test rig everything works as you would expect..with SATA I'm getting conflicting issues. ... I'm booted back to the boot floppy. ...
    (microsoft.public.windows.server.sbs)