Results 1 to 2 of 2

Thread: Cloning and resizing disk (my approach)

  1. #1
    Join Date
    Jun 2008
    Location
    Rio de Janeiro
    Posts
    100

    Default Cloning and resizing disk (my approach)

    Hello,

    I would like to share my personal approach I used in order to clone my HP dv6230 notebook's old Seagate 80GB HDD, with dual boot opensuse-11.1/Windows Vista, to a new Western Digital 250GB HDD.
    Googling is always in help, when you are looking for something and for this case it has been as well.

    I have been very well impressed by an how-to I red from Linux.com :: Clone your Ubuntu installation onto a new hard disk where it was explained a procedure based upon Ubuntu Live CD and ddrescue http://software.opensuse.org/ymp/ope...d/ddrescue.ymp

    I used the instructions detailed above and mixed/adapted with my specific case as opensuse-11.1 user.

    So I did the following:

    1. first I installed ddrescue from the "one-click-install" link above
    2. then I rebooted my notebook, plugging my new 250GB, still inside its USB.2.0 case with opensuse-11.1 installation DVD choosing the "single-mode" option
    3. I "******" my / partition with fsck.ext3 -f /dev/sda4
    4. I ran /bin/dd_rescue -v /dev/sda /dev/sdb
    5. I wait almost 1 and half hour waiting ddrescue to finish the job
    6. Then I shutdown the notebook and I replaced the old 80GB with the new one installing the older into the USB case in order to have a ready backup for eventual comparisons
    7. I rebooted the system which of course won't starts!
    8. So I rebooted again, using once more the opensuse-11.1 installation DVD now choosing "repair-system" option, which is very useful powerful and handy to correct every errors like boot loader (grub) and /etc/fstab
    9. When I have been able to see my old O.S. booting and running again from the new 250GB HDD, I really smiled full of happines
    10. Finally I shutdown again, rebooting the notebook with my Gparted live CD, used to resize the partitions.
    11. The final result has been worthwhile; I am not a "linux-guru" and it takes me almost 4 hours to finish the job, however now my disk looks like this:

    fdisk -l

    Disco /dev/sda: 250.0 GB, 250059350016 byte

    255 testine, 63 settori/tracce, 30401 cilindri
    Unit = cilindri di 16065 * 512 = 8225280 byte
    Identificativo disco: 0x0e9d9448

    Dispositivo Boot Start End Blocks Id System
    /dev/sda1 1 7054 56661223+ 7 HPFS/NTFS
    /dev/sda2 * 7055 9093 16378267+ f W95 Esteso (LBA)
    /dev/sda3 9094 16764 61617307+ 83 Linux
    /dev/sda4 16765 30401 109539202+ 83 Linux
    /dev/sda5 7317 7355 313236 83 Linux
    /dev/sda6 7055 7316 2104452 82 Linux swap / Solaris
    /dev/sda7 7356 9093 13960453+ 83 Linux

    df -hk
    Filesystem blocchi di 1K Usati Disponib. Uso% Montato su
    /dev/sda3 60659972 6623808 51571472 12% /
    udev 1993252 760 1992492 1% /dev
    /dev/sda1 56661216 28082864 28578352 50% /windows/C
    /dev/sda5 303344 24810 262873 9% /boot
    /dev/sda4 107823248 8408456 95033224 9% /home
    /dev/sda7 13741236 165312 12877904 2% /data1

    hdparm -i /dev/sda

    /dev/sda:

    Model=WDC WD2500BEVS-22VAT0 , FwRev=11.01A11, SerialNo= WD-WXEX08TFF875
    Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
    RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
    BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
    CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=488397168
    IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
    PIO modes: pio0 pio3 pio4
    DMA modes: mdma0 mdma1 mdma2
    UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
    AdvancedPM=yes: unknown setting WriteCache=enabled
    Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6,7

    * signifies the current active mode

    Thanks to linux world to make such things happens!
    Marco Calistri (amdturion)
    opensuse 12.1 (Aspargus) - Kernel 3.1.10-1.9-desktop x86_64 Gnome 3.2.1
    Intel® Core™ i5-2410M CPU @ 2.30GHz × 4 - Intel® Sandybridge Mobile

  2. #2

    Default Re: Cloning and resizing disk (my approach)

    Thanks - This artical looks really helpful. I will try that as I need to replace a failing HD.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •