You are not logged in.
Pages: 1
I've recently bought a new laptop. I partitioned the hdd and cloned the arch installation from the old one (/, /var, /home and /boot partitions). The new partitions are physically bigger but, because of the clonning, the system sees the logical (filesystem) size, which matches old partitions size. How can I "resize" the filesystem so it uses the whole physical partition? Two of my partitions are ext4, one is ext2 and the last one is reiserfs.
Last edited by ux&lx (2009-02-18 09:55:24)
Offline
parted, GParted.
Offline
I'm not sure that parted will help with this or I don't know how, because I need to resize the filesystem not the partition...
Offline
You'll have to umount the filesystems to resize them. Use a live CD to do your /.
Use "resize2fs /dev/sdXY" to grow ext2/3/4 filesystems and "resize_reiserfs /dev/sdXY" for the ResierFS ones. It will automatically make them the right size for the partitions.
Offline
One should never copy/clone a 'live' filesystem! That is just a good, old rule.
Why is it a good rule? Well, the proc filesystem can easily take up a gig on a running system - on an 'idle' (ie no-running) system - its size is about zero! That is _one_ compelling reason - there are many others!
Use a live cd, mount the filesystem you want to use for the OS and then copy to the new - that way you never need to worry about playing around with partitions!
Just as an example - let us say you have '/' on sda1 and '/var' on sda2 and '/home' on sda3 and your second disk is much larger and you want to put it all under sdb1 - from the live cd, do the following:
mkdir /sda /sdb
mount /dev/sda1 /sda
mount /dev/sda2 /sda/var
mount /dev/sda3 /sda/home
mount /dev/sdb1 /sdb
(cd /sda && tar cf - .)|(cd /sdb && tar xvpf -)
Offline
Thank you ataraxia, that was what i needed. It solved the problem...
Offline
Pages: 1