You are not logged in.
Pages: 1
Hi,
I currently have separate /boot, swap, / and /home partitions. I'd like to no longer have a separate /home partition so I can use the fourth partition for Windows, but I'm not sure on all the steps of how to do this. What I'm planning is (using a livecd)
Move everything in sda4 to sda3/home, then remove the line for the /home partition from /etc/fstab.
I'm not sure how to go about moving everything between the partitions though. (~11G in /home, and plenty of space in the / partition). Will mv * do the job, or will hidden files etc be missed? Also, will this maintain permissions etc?
Thanks for any help.
Last edited by Sc9 (2010-08-03 18:00:53)
Offline
You can boot the live CD, mount both partitions, and copy date between the two. You're simply copying the entire home directory to the root directory:
# cp -r /path/to/home /path/to/root
Example:
# cp -r /mnt/home /mnt/root
Offline
You can boot the live CD, mount both partitions, and copy date between the two. You're simply copying the entire home directory to the root directory:
# cp -r /path/to/home /path/to/root
Example:
# cp -r /mnt/home /mnt/root
What about symlinks? :-)
Offline
I've seen somebody pass the -a switch to cp so it copies also the file's attributes.
I'd like to no longer have a separate /home partition so *I can use the fourth partition for Windows*
symlinks don't look like a good idea
Offline
I would still keep / and /home separate, but you could create the whole Linux install in an extended partition.
Although, going through all that might be a hassle, since linux is already installed and it would involve changing a lot of partitions and any mis-step could be disastrous.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Thanks, used cp -a and it worked.
Yeah, I'd ideally like them separate on an extended partition, but didn't fancy too much messing around.
Offline
Hi Sc9,
I guess I would use rsync to copy the home directory. Collecting the desired options from the manpage can be quite time-consuming, but a Google search will quickly reveal some working examples for your use case.
Kind regards,
jamesbond007.
Offline
Pages: 1