Re: Re-allocate /home on a diff partition



Ivan Marsh wrote:
On Mon, 27 Mar 2006 19:51:45 +0200, Jan Gerrit Kootstra wrote:


arun.iit@xxxxxxxxx wrote:

My present harddisk partition info is as follows

[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


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


I would prefer to umount the /home partition rather than deleting it so
you can make sure everything is working without a chance of losing data.


Ivan,


Good point.


Kind regards,


Jan Gerrit Kootstra RHCE
.



Relevant Pages

  • Re: create /swap in an existing system
    ... Ivan Marsh wrote: ... There were problems while installation, when I tried to create the /swap ... parttition. ... Therefore I've created only the "/" partition. ...
    (linux.redhat)
  • Re: Why partition a Lunux system?
    ... "Ivan Marsh" wrote in message ... I didn't have a beard when I partitioned all my Linux boxes. ... I had to partition a Win box yesterday - is that due to the fact I've ... Posted via Mailgate.ORG Server - http://www.Mailgate.ORG ...
    (linux.redhat)
  • Re: Re-allocate /home on a diff partition
    ... As you can see there isnt much empty space in /home partition. ... The USA Patriot Act is the most unpatriotic act in American history. ...
    (linux.redhat)
  • Re: Anti-Linux ad
    ... Ivan Marsh wrote in alt.os.linux: ... Not to windows users it isnt. ... Will Rogers never met you. ...
    (alt.os.linux)