mrorange
asked on
Moving Home folder
Hi,
Ok im very new to linux.. so this will probally be a easy question...
My home folder was on a small partition on mt system, it filled up very quickly...
I would like to move it to a larger partition without affecting anything...
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 36G 6.7G 27G 20% /
/dev/hda3 387M 9.3M 357M 3% /home
none 251M 0 251M 0% /dev/shm
AFS 8.6G 0 8.6G 0% /afs
[drivers@localhost drivers]$
I would like to put my home directory onto /dev/hda1. any advice would be appreciated.
Cheers
Ok im very new to linux.. so this will probally be a easy question...
My home folder was on a small partition on mt system, it filled up very quickly...
I would like to move it to a larger partition without affecting anything...
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 36G 6.7G 27G 20% /
/dev/hda3 387M 9.3M 357M 3% /home
none 251M 0 251M 0% /dev/shm
AFS 8.6G 0 8.6G 0% /afs
[drivers@localhost drivers]$
I would like to put my home directory onto /dev/hda1. any advice would be appreciated.
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am at the stage of removing the lines you suggested from my fstab file.
This is what it contains...
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,user,owner,kudzu,ro 0 0
/dev/hde1 /mnt/camera auto noauto,owner,kudzu 0 0
Which line should i be editing, and out of curiosity how does this put the home directory onto the HDA1
Cheers
This is what it contains...
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,user,owner,kudzu,ro
/dev/hde1 /mnt/camera auto noauto,owner,kudzu 0 0
Which line should i be editing, and out of curiosity how does this put the home directory onto the HDA1
Cheers
ASKER
When i rebooted the line that I deleted in fstab was not recreated, i presume the mount -a mounts everything in the fstab file...
:-S
:-S
yes, mount -a does mount everything in /etc/fstab
ASKER
Ok, so by following the suggestion from Rabit i have still not been able to change my Home directory..
So any other ideas how I mount the home directory on on my HDa1
Cheers
So any other ideas how I mount the home directory on on my HDa1
Cheers
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry, pasted the wrong line, comment out this line from /etc/fstab
LABEL=/home /home ext3 defaults 1 2
put a # in front of that, so
#LABEL=/home /home ext3 defaults 1 2
LABEL=/home /home ext3 defaults 1 2
put a # in front of that, so
#LABEL=/home /home ext3 defaults 1 2
thats what i told too
but what is the problem at the moment??
you don't have to mount any more we now made a directroy on the / (root partition) that is /dev/hda1
so everything should work now.
tell me more what the problem is
greetz mr_rabit
but what is the problem at the moment??
you don't have to mount any more we now made a directroy on the / (root partition) that is /dev/hda1
so everything should work now.
tell me more what the problem is
greetz mr_rabit
ASKER
Thanks guys, it all work great now... i guess i just need a little clarification there...
Cheers again...
Regards,
Dan
Cheers again...
Regards,
Dan
or simply edit the /etc/passwd file to reflect the new path, then use mv to move the files