mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Mar. 22 2006,20:03 |
|
I'd recommend doing one directory first, and then if you have no troubles with it, go ahead and use the same process to do the others.
Let's say we use /home as an example, since it will not kill your system if something goes wrong. For this example, I'll assume /home is being moved to hda2.
Log into DSL as root, preferably without the graphical system running. Mount the target partition:
Code Sample | mount /dev/hda2 |
Move the contents of /home onto the target partition. If you prefer to cp instead of mv, make sure the file ownerships and permissions are left intact. It's probably safer to copy, since you can fall back to the original if something goes wrong. If it succeeds, you can then remove the original files (IMPORTANT: /home MUST BE UMOUNTED before deleting these files, or you will end up removing the contents of your new home!).
Code Sample | mv /home/* /mnt/hda2/ | or Code Sample | cp -pr /home/* /mnt/hda2/ |
Edit /etc/fstab, adding a line for /home...something like this:
Code Sample | /dev/hda2 /home <filesystem_type> <options> 0 0 |
Edit your bootloader, adding "nofstab" to it's kernel optons. I'm not 100% sure this is what I think it is, sorry to say....my assumption is that it prevents fstab from being automatically created when you boot.
If anyone sees something wrong with this, or knows a more stable way to do it, please post here. Thanks.
EDIT: The instructions above will work only if hda2 is used only for home. You can put other dirs on the same partition, but it will require a couple extra steps, and I'm not confident about posting any more about this at the moment...in fact, i'm beginning to wonder if i gave you accurate information so far. Please bear with me while i think it trough a bit more.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|