WhosRodney
March 27th, 2009, 02:22 PM
Hi all,
I'm going to need to need to move some of my partitions to new, larger disk and wanted to run it by you guys to see if you can point out any gotchas or flaws in my plan.
Here's what my current setup looks like:
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 16G 1.8G 14G 12% /
tmpfs 942M 0 942M 0% /lib/init/rw
varrun 942M 284K 942M 1% /var/run
varlock 942M 0 942M 0% /var/lock
udev 942M 2.7M 939M 1% /dev
tmpfs 942M 0 942M 0% /dev/shm
lrm 942M 2.4M 940M 1% /lib/modules/2.6.27-11-generic/volatile
/dev/sda9 20G 15G 4.0G 79% /mnt/oldhome
/dev/sda8 20G 5.6G 13G 31% /srv
/dev/sda7 18G 12G 4.6G 73% /var
/dev/sdb1 925G 29G 887G 4% /home
As you can see, we're running out of space on /dev/sda (it's only 80G). /dev/sdb is a 1TB drive and currently only houses /home, so I'd like to move all of the partitions on /dev/sda (except for /dev/sda9) to /dev/sdb.
All non-swap filesystems are ext3. I'm thinking the easiest way to do this is:
make a disk image of /dev/sda
copy /home on /dev/sdb to another computer
reformat /dev/sdb
install the disk image of /dev/sda on /dev/sdb
remove /mnt/oldhome from /dev/sdb
add /home to /dev/sdb and then copy the backup of the old /home to the new /home partition on /dev/sdb
Thoughts? Comments? Suggestions?
I'm going to need to need to move some of my partitions to new, larger disk and wanted to run it by you guys to see if you can point out any gotchas or flaws in my plan.
Here's what my current setup looks like:
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 16G 1.8G 14G 12% /
tmpfs 942M 0 942M 0% /lib/init/rw
varrun 942M 284K 942M 1% /var/run
varlock 942M 0 942M 0% /var/lock
udev 942M 2.7M 939M 1% /dev
tmpfs 942M 0 942M 0% /dev/shm
lrm 942M 2.4M 940M 1% /lib/modules/2.6.27-11-generic/volatile
/dev/sda9 20G 15G 4.0G 79% /mnt/oldhome
/dev/sda8 20G 5.6G 13G 31% /srv
/dev/sda7 18G 12G 4.6G 73% /var
/dev/sdb1 925G 29G 887G 4% /home
As you can see, we're running out of space on /dev/sda (it's only 80G). /dev/sdb is a 1TB drive and currently only houses /home, so I'd like to move all of the partitions on /dev/sda (except for /dev/sda9) to /dev/sdb.
All non-swap filesystems are ext3. I'm thinking the easiest way to do this is:
make a disk image of /dev/sda
copy /home on /dev/sdb to another computer
reformat /dev/sdb
install the disk image of /dev/sda on /dev/sdb
remove /mnt/oldhome from /dev/sdb
add /home to /dev/sdb and then copy the backup of the old /home to the new /home partition on /dev/sdb
Thoughts? Comments? Suggestions?