Re: Re-allocate /home on a diff partition
- From: Jan Gerrit Kootstra <jan.gerrit@xxxxxxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 19:51:45 +0200
arun.iit@xxxxxxxxx wrote:
My present harddisk partition info is as followsArun,
[user@dreamer]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 86G 2.4G 79G 3% /
/dev/sda7 20G 80M 19G 1% /BACKUP
/dev/sda1 104M 16M 83M 16% /boot
/dev/shm 1.1G 0 1.1G 0% /dev/shm
/dev/sda3 26G 111M 24G 1% /home
/dev/sda5 21G 7.1G 13G 37% /usr
------------------------------------------------------------------------
I plan to have a lot of users on this machine (around 10,000)
As you can see there isnt much empty space in /home partition.
I want to shift the /home folder under ' / '.
ie I want /home also on ' sda2 ' instead of sda3.
Hw do i go about doing that.
Are there any risks involved??
Thanks in advance.
Arun
How many user do you need? You only used 111M and are still left with 24G on /home.
So why do you want to shift /home to a directory under /.
A way to go is.
mkdir /home1
cp -Rav /home/* /home1>/root/copyaction
see if all files are copied
rm -rf /home
mv /home1 /home
vi /etc/fstab
remove the line refering to /dev/sda3
WARNING: if you do not check carefully for missing files before the rm -rf /home you loose data.
Kind regards,
Jan Gerrit Kootstra RHCE
.
- Follow-Ups:
- Re: Re-allocate /home on a diff partition
- From: arun . iit
- Re: Re-allocate /home on a diff partition
- From: Ivan Marsh
- Re: Re-allocate /home on a diff partition
- References:
- Re-allocate /home on a diff partition
- From: arun . iit
- Re-allocate /home on a diff partition
- Prev by Date: Re: Re-allocate /home on a diff partition
- Next by Date: Re: Re-allocate /home on a diff partition
- Previous by thread: Re: Re-allocate /home on a diff partition
- Next by thread: Re: Re-allocate /home on a diff partition
- Index(es):