You are not logged in.
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
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?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
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.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
/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
/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.
Offline
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
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
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
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
thanx guys...will try it
Offline
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
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
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
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
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
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
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
partimage...nice, will look at that.
Offline