View previous topic :: View next topic |
Author |
Message |
carrett Apprentice
Joined: 22 Mar 2003 Posts: 273
|
Posted: Sat May 10, 2003 9:52 pm Post subject: resize reiserfs, the process seems sketchy |
|
|
i have a huge reiserfs root partition:
Code: | carrett@duder carrett $ df -h /dev/root
Filesystem Size Used Avail Use% Mounted on
/dev/root 76G 13G 64G 17% /
|
i want to back up my mp3s and movies so i can fiddle around with OSs without fear. how do i shrink this partition to the 13GB it's actually using then create a new one 64GB big, move all my data to it and not lose anything?
i tried this before with resize_reiserfs and cfdisk, but for some reason it couldn't mount my root partition after i did cfdisk. it seems like there's too much approximation of parition sizes involved...which way should i be rounding? is there a linux GUI that makes this nice and easy like partition magic? that would be a noble project.
anyway, a step by step n00b description of how to do this would be incredibly helpful. thanks. _________________ I'm against picketing, but I don't know how to show it. |
|
Back to top |
|
|
sklettke Guru
Joined: 05 Nov 2002 Posts: 352 Location: Madison, WI
|
Posted: Sat May 10, 2003 11:32 pm Post subject: |
|
|
I'm trying to do basically the same thing. Once I have time (i'm studying for finals right now) I'm going to compile this http://www.gnu.org/software/parted/parted.html and use this gui http://qtparted.sourceforge.net/. I haven't experimented with it yet, but it seems to do exactly what we want.
Scott _________________ Jab.ID: scottk@jabber.org
Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+) |
|
Back to top |
|
|
carrett Apprentice
Joined: 22 Mar 2003 Posts: 273
|
Posted: Sun May 11, 2003 12:14 am Post subject: |
|
|
i tried it, and it totally fucked it up.
if you're using reiserfs, the thing to use is resize_reiserfs...my question is more about specific numbers....
the problem i got before was when i resized the partition using resize_reiserfs i had to cfdisk afterwards to make the new space i made for myself usable...but that made my root partition (which i'd just shrunk) unbootable.
wack. _________________ I'm against picketing, but I don't know how to show it. |
|
Back to top |
|
|
carrett Apprentice
Joined: 22 Mar 2003 Posts: 273
|
Posted: Sun May 11, 2003 12:54 am Post subject: sweet! |
|
|
ok, i got it working, but now i want to make it so i can write to the new partition...what options do i have to put in /etc/fstab??
here's the current setup:
/dev/hda4 /home/carrett/ reiserfs noatime 0 0
but, i'd like to be able to write to it...also, how do i make it mount at boottime? _________________ I'm against picketing, but I don't know how to show it. |
|
Back to top |
|
|
sklettke Guru
Joined: 05 Nov 2002 Posts: 352 Location: Madison, WI
|
Posted: Sun May 11, 2003 1:10 am Post subject: |
|
|
I believe that you could add "auto" after the noatime to mount it at boot. And if it doesn't read-write automatically for you try adding "rw." I haven't gotten this far yet to try it, though.
Scott _________________ Jab.ID: scottk@jabber.org
Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+) |
|
Back to top |
|
|
carrett Apprentice
Joined: 22 Mar 2003 Posts: 273
|
Posted: Sun May 11, 2003 1:17 am Post subject: |
|
|
sorry, i meant i want to write to the partition as non-root. how do i do that??
i can do it as root. _________________ I'm against picketing, but I don't know how to show it. |
|
Back to top |
|
|
carrett Apprentice
Joined: 22 Mar 2003 Posts: 273
|
Posted: Sun May 11, 2003 9:09 am Post subject: |
|
|
for reference:
from my /etc/fstab:
Code: | /dev/hda4 /home/carrett reiserfs noatime,auto,rw,users 0 0 |
what option(s) do i need to add? i thought for sure users and rw would cover it.... _________________ I'm against picketing, but I don't know how to show it. |
|
Back to top |
|
|
carrett Apprentice
Joined: 22 Mar 2003 Posts: 273
|
Posted: Sun May 11, 2003 9:41 am Post subject: |
|
|
file this under stupid:
it was a permissions problem (at the mount point). doh. _________________ I'm against picketing, but I don't know how to show it. |
|
Back to top |
|
|
|