Code: Select all
fdisk -l /dev/sda
Disk /dev/sda: 41.2 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders, total 80418240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8e3bad33
Device Boot Start End Blocks Id System
/dev/sda1 * 63 144584 72261 83 Linux
/dev/sda2 144585 3309389 1582402+ 82 Linux swap / Solaris
/dev/sda3 3309390 52484354 24587482+ 83 Linux
/dev/sda4 52484355 80405324 13960485 5 Extended
/dev/sda5 52484418 53223344 369463+ 83 Linux
/dev/sda6 53223408 74204234 10490413+ 83 Linux
/dev/sda7 74204298 80405324 3100513+ 83 Linux
Right now, I want to try to clone and resize the partitions using command-line tools on a LiveCD, before giving up and trying to use Clonezilla. Though, I am currently uncertain about a few things, hence why I am typing this post. I have read that just outright dd'ing one drive to the other would make it only possible to resize the last partition. I wish to resize sda3(/) and each logical partition within the extended one. /boot and swap will remain the same. I guess my questions would be as followed:
1. Would it be possible to dd each partition individually and resize them before moving onto the next?
2. Would I have to pre-partition the target drive before cloning?
3. My First attempt to copy the MBR to the target drive
Code: Select all
dd if=/dev/sda of=/dev/sdb bs=512 count=1
fdisk -l /dev/sdb
4. Would I have to do anything different with resizing an extended partion and its logical partitions?
Sorry for the multiple questions in this one post. This road block has left me with only ideas of what to do, and I am trying to get some feed back as to whether or not I am on the right track. I kind of regret making my partition scheme like this, especially when /usr and /var started filling up. It is the first of my two Gentoo installations, and I felt like experimenting at the time.


