You are not logged in.

#1 2008-10-29 20:28:30

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

expanding my /home partition

Hey, my /home partition has 7GBs left and my root has 87GBs. I want to use up some of roots free space or expand my home partition using some of the available 87GBs. Is that possible and if so, how do I do it?

Thanx

Offline

#2 2008-10-29 21:31:13

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: expanding my /home partition

How is your system setup? I'm presuming you have a separate /home and / partition - what file system(s) are you using? Do you have LVM setup?

Offline

#3 2008-10-29 21:59:00

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: expanding my /home partition

I think it's Reiser. It's been a while since I've installed it.
dmesg info:
ReiserFS: sda4: found reiserfs format "3.6" with standard journal               
ReiserFS: sda4: using ordered data mode                                         
ReiserFS: sda4: journal params: device sda4, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30           
ReiserFS: sda4: checking transaction log (sda4)                                 
ReiserFS: sda4: Using r5 hash to sort names

How would I get the info?

Offline

#4 2008-10-29 22:04:20

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: expanding my /home partition

Have a look in /etc/fstab

You should have something similar to the following among the other output:

/dev/sdb1        /        jfs        defaults    0 1
/dev/sdb2        /home    jfs        defaults    0 1

Look for the lines with / and /home in the 2nd column. Then the 3rd column is the file system type - in my case I use JFS. Let us know what it says there.

Offline

#5 2008-10-29 22:19:16

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: expanding my /home partition

/dev/sda3       /       reiserfs        defaults        0       1
/dev/sda3       /       reiserfs        defaults        0       1
/dev/sda3       /       reiserfs        defaults        0       1
/dev/sda1       /boot   ext2    defaults        0       1
/dev/sda1       /boot   ext2    defaults        0       1
/dev/sda1       /boot   ext2    defaults        0       1
/dev/sda4       /home   reiserfs        defaults        0       1
/dev/sda4       /home   reiserfs        defaults        0       1
/dev/sda4       /home   reiserfs        defaults        0       1

Offline

#6 2008-10-29 22:54:21

Lord Illidan
Member
From: Malta
Registered: 2007-10-25
Posts: 248

Re: expanding my /home partition

funkmuscle wrote:

/dev/sda3       /       reiserfs        defaults        0       1
/dev/sda3       /       reiserfs        defaults        0       1
/dev/sda3       /       reiserfs        defaults        0       1
/dev/sda1       /boot   ext2    defaults        0       1
/dev/sda1       /boot   ext2    defaults        0       1
/dev/sda1       /boot   ext2    defaults        0       1
/dev/sda4       /home   reiserfs        defaults        0       1
/dev/sda4       /home   reiserfs        defaults        0       1
/dev/sda4       /home   reiserfs        defaults        0       1

What's with the triple entries in your /etc/fstab?

Anyway, so your root is definitely using reiserfs..

Personally, I'd recommend getting the gparted live cd.

http://gparted.sourceforge.net/features.php

Offline

#7 2008-10-29 23:00:49

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: expanding my /home partition

good question about the 3 entries. that happened when I first installed it. didn't cause any problems so i ignored it.
I have gparted app, not the live cd, installed, can that do the trick?

Offline

#8 2008-10-29 23:12:24

Lord Illidan
Member
From: Malta
Registered: 2007-10-25
Posts: 248

Re: expanding my /home partition

funkmuscle wrote:

good question about the 3 entries. that happened when I first installed it. didn't cause any problems so i ignored it.
I have gparted app, not the live cd, installed, can that do the trick?

For gparted to do it's resizing magic on a partition, the partition can't be mounted in the first place - and good luck trying to umount your / partition. For that reason, I recommended the live cd.

Also, do a back up first!

Offline

#9 2008-10-30 00:02:03

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: expanding my /home partition

Lord Illidan wrote:

For gparted to do it's resizing magic on a partition, the partition can't be mounted in the first place - and good luck trying to umount your / partition. For that reason, I recommended the live cd.

Also, do a back up first!

That's about right - you'll need to use a LiveCD and do a backup! Everything should be smooth, but better safe than sorry smile

Offline

#10 2008-10-30 03:33:36

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: expanding my /home partition

thanx guys...will try it

Offline

#11 2008-10-30 13:35:48

Lord Illidan
Member
From: Malta
Registered: 2007-10-25
Posts: 248

Re: expanding my /home partition

funkmuscle wrote:

thanx guys...will try it

Note that you don't need gpartedLiveCd specifically..the Ubuntu live cd will do - it's what I use, myself. Any LiveCd with gparted on it is fair game.

Offline

#12 2008-10-30 15:02:12

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: expanding my /home partition

what about ArchLiveCD, does it have gparted on it?

and to backup the partition, I put it in a tarball file?

Last edited by funkmuscle (2008-10-30 15:03:17)

Offline

#13 2008-10-31 02:58:56

Kruppe
Member
Registered: 2008-09-28
Posts: 30

Re: expanding my /home partition

The live cd doesn't have gparted as far as i know, i usually use my spare ubuntu cd for gparted. As far as backing up your partition, there are a lot of differant ways to do that, a tarball would work i think.

Offline

#14 2008-10-31 03:15:53

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: expanding my /home partition

Whenever I have to do any messing around whatsoever with my partitions, I use the GParted LiveCD. I only backup any documents or important files; the rest can all be re-acquired, either through earlier DVD backups or by a re-install. Usually I just copy the folders over to my thumb drive, and they only take up a few hundred MB of space out of 4GB, so it's not too big of a deal to me.


[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#15 2008-10-31 10:17:50

Lord Illidan
Member
From: Malta
Registered: 2007-10-25
Posts: 248

Re: expanding my /home partition

elmer_42 wrote:

Whenever I have to do any messing around whatsoever with my partitions, I use the GParted LiveCD. I only backup any documents or important files; the rest can all be re-acquired, either through earlier DVD backups or by a re-install. Usually I just copy the folders over to my thumb drive, and they only take up a few hundred MB of space out of 4GB, so it's not too big of a deal to me.

+1..

Also backup your conf files.

Offline

#16 2008-10-31 11:49:42

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: expanding my /home partition

when y'all say backup my files, that's my home dir which I wanna expand right? Or do I backup the entire system?
I wanna do this over the weekend and I don't wanna mess it up.

Offline

#17 2008-10-31 13:56:42

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: expanding my /home partition

Backup any partitions you're going to muck with. If you're going to shrink partition A and expand partition B to take over some of the freed space, then back up both partition A and partition B.

And yes, it is possible to do a decent backup using only tar, but you'll need to make sure you get permissions and owner/groups and file modtimes preserved. Also I think you'll need to make sure you don't try to backup /dev, /sys, /proc, and so on. (Perhaps these are ignored automatically, I'm not sure.)

You can also use partimage (in community) to create a compressed image of the whole partition.

Last edited by Profjim (2008-10-31 14:01:31)

Offline

#18 2008-10-31 14:55:45

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: expanding my /home partition

partimage...nice, will look at that.

Offline

Board footer

Powered by FluxBB