Duplicating drives (different sizes).

From: John Wrate (lolo8000_at_hotmail.com)
Date: 03/21/04

  • Next message: Vincenzo Ciaglia: "Linux Netwosix 1.1 - Solstizio - is released"
    Date: 20 Mar 2004 18:30:14 -0800
    
    

    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.


  • Next message: Vincenzo Ciaglia: "Linux Netwosix 1.1 - Solstizio - is released"

    Relevant Pages

    • Re: Trying to install Win2000 on harddrive with bad C partition
      ... When I try to start the computer I'm receiving a Disk ... and other testing programs show both C and E drives as ... once you boot the CD, you can mount the dying drive and its ... At last you end up at the hallowed linux bash command prompt, ...
      (comp.sys.ibm.pc.hardware.storage)
    • Re: USB drives and cache mode page
      ... There are no advanced SCSI-2 features in USB flash drives. ... the cache to the host it is IMHO likely that it don't touch the cache ... they are disabled) the MODE SENSE command should be implemented if they ...
      (comp.periphs.scsi)
    • RE: Locating corrupt driver
      ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
      (microsoft.public.win2000.applications)
    • Re: Model 4 Disk Drive Issue
      ... controller command could be changed to one that does write. ... remove media from all other drives. ... (If you have Tandon drives you will need to change the step rate*. ... each group is content of the floppy disk controller status register. ...
      (comp.sys.tandy)
    • [Announce] megaraid_mbox 2.20.4.3 patch
      ... replace with the sysfs attribute. ... To remove drives and change ... most of command will return within timeout. ... static int megaraid_abort_handler; ...
      (Linux-Kernel)