Click to See Complete Forum and Search --> : Filesystem question:


Joshie the CK
04-03-2001, 12:47 AM
Still working out this filesystem... It's awesome, but I don't quite fully understand yet..

Okay, added a new 3gig drive.. Mounted to /mount1 and /mount2 (names changed obviously. :D)

Now here's the question..
Say I want to increase the space on my /home partition, or my /usr partition...
Or say I want to give a user their own partition. (/home/joshie)
How?

Do I have to create the mount, but at a different point, and then copy all the files to it, then change it's mount point?
I suppose that WOULD work wouldn't it?
Kinda?
Or is there a better way?

ph34r
04-03-2001, 10:33 AM
That exactly what you need to do. Lets say you want to move /home to /mount2.

cp -a /home/* /mount2
<wait a while>
rm -r /home/*

edit /etc/fstab to mount the proper new /home

mount /home

and you should be set. Don't do this while users are logged in... you may want to boot to single user mode to do it, if you aren't the only user on the system...

Joshie the CK
04-03-2001, 11:37 AM
Okay, that's what I thought.
Thanks for the help..
/me wanders off to look for 20GB hard drives... :D

posterboy
04-03-2001, 05:40 PM
I understand you are a bit of a newbie, and that's where we all are when encountering new things. That's the lifeblood of Linux, it's all new stuff, all the time. After a bit, you might want to investigate the LVM utilities. Easy to read about on the net, do a search for Linux LVM. This trick allows the "live" up and down sizing of virtual drives. I am very impressed with it, stable, works as advertised, and ends forever the issue of "How big do I need /usr, /home, /whatever to be?" HTH, Ray