You are not logged in.

#1 2009-02-17 21:11:32

ux&lx
Member
Registered: 2008-11-23
Posts: 101

[SOLVED]Question about several filesystems

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

#2 2009-02-17 21:19:40

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: [SOLVED]Question about several filesystems

parted, GParted.

Offline

#3 2009-02-17 21:54:14

ux&lx
Member
Registered: 2008-11-23
Posts: 101

Re: [SOLVED]Question about several filesystems

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

#4 2009-02-17 22:23:25

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED]Question about several filesystems

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

#5 2009-02-18 04:08:20

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [SOLVED]Question about several filesystems

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

#6 2009-02-18 09:55:10

ux&lx
Member
Registered: 2008-11-23
Posts: 101

Re: [SOLVED]Question about several filesystems

Thank you ataraxia, that was what i needed. It solved the problem...

Offline

Board footer

Powered by FluxBB