Re: Re-allocate /home on a diff partition



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.


--
The USA Patriot Act is the most unpatriotic act in American history.

.



Relevant Pages

  • Re: Re-allocate /home on a diff partition
    ... Ivan Marsh wrote: ... As you can see there isnt much empty space in /home partition. ...
    (linux.redhat)
  • Re: Installing Linux on Windows dual boot machine
    ... thousands of possible business related activities that are made easier ... > the empty space, making its own partitions. ... choice to leave the last partition empty. ... If the installer gives you the option, it's always better to manually set ...
    (alt.os.linux)
  • Re: Exchange 2003 eating up diskspace
    ... I definetly wouldn't enable circular logging. ... equipped with a 120 GB redundant disk array. ... >> Exchange is the only software installed on this partition. ... >> the are something here thats eats up the empty space on ...
    (microsoft.public.exchange.admin)
  • Re: Resizing an NTFS partition........
    ... the the Espresso installer) works very badly indeed. ... mount the partitions, or any partition on the same device. ... patented by evil MS who doesn't release the specifications, boo hoo hoo ... then Install dapper on the empty space created. ...
    (Ubuntu)
  • Re: Re-formatting XP problem
    ... <10b If the hard drive or partition has a previous installation of XP you ... choose to delete the partition by pressing "D". ... then be prompted to create a new partition in the empty space. ... Will there be any use to try the re-install again, ...
    (microsoft.public.windowsxp.help_and_support)