Mailinglist Archive: opensuse (4165 mails)
| < Previous | Next > |
Re: [SLE] What size is your /home dir?
- From: John LeMay <jlemay@xxxxxxxx>
- Date: Sun, 27 Apr 2003 20:34:19 -0400
- Message-id: <3EAC770B.4080001@xxxxxxxx>
Question 2, what would be the repercussions of adding a /home to a
system that already exists?
This shouldn't be too hard, especially since root's home is not in /home, it's /root.
- Login as root and setup the new partition that will be /home.
- Mount the new partition as /tmphome or something unique
- cd to the current /home and "cp -a * /tmphome"
- Edit your /etc/fstab to mount the new partition as /home upon reboot
- mv the current /home to /oldhome so it will still be accessible post reboot - just in case
- mkdir /home and chmod it appropriately so you have a mount point for the new partition post reboot
- reboot
Double check the cp options - I did this off the top of my head and you may need another switch or two to grab everything. If all goes well, you can later rm -rf /oldhome to reclaim that disk space back into /.
--
John LeMay
KC2KTH
Senior Enterprise Consultant
NJMC | http://www.njmc.com | Phone 732-557-4848
Specializing in Microsoft and Unix based solutions
| < Previous | Next > |