Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Re-allocate /home on a diff partition
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 12th June 04:08
External User
 
Posts: 1
Default Re-allocate /home on a diff partition



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
  Reply With Quote


  sponsored links


2 12th June 04:08
matthäus_banach
External User
 
Posts: 1
Default Re-allocate /home on a diff partition



Hi,

ever thought of logical Volumes via LVM?
I'm a fan of this technique as it allows you to easily span partitions
even across physical disks (so you don't waste as much space, as you do
by your fixed partition scheme).

Greetings,

Matthäus Banach

arun.iit@gmail.com schrieb:
  Reply With Quote
3 12th June 04:08
jan gerrit kootstra
External User
 
Posts: 1
Default Re-allocate /home on a diff partition


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
  Reply With Quote
4 12th June 04:08
ivan marsh
External User
 
Posts: 1
Default Re-allocate /home on a diff partition


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.
  Reply With Quote
5 12th June 04:08
External User
 
Posts: 1
Default Re-allocate /home on a diff partition


Jan,

Thanks!!!
I plan to give 5Mb to each user. So it will be quite a lot...
And there might be more users also.


Arun
  Reply With Quote
6 12th June 04:08
External User
 
Posts: 1
Default Re-allocate /home on a diff partition


Ivan,

Thanks!! I will not delete the partition as u pointed out!!!

Arun
  Reply With Quote
7 12th June 14:03
External User
 
Posts: 1
Default Re-allocate /home on a diff partition


Matthaus,

Thanks for that info...
But I have only one harddisk.
And I dont want disturb the other partitions.

Arun
  Reply With Quote
8 12th June 14:03
jan gerrit kootstra
External User
 
Posts: 1
Default Re-allocate /home on a diff partition


Ivan,


Good point.


Kind regards,


Jan Gerrit Kootstra RHCE
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666