Home on separate drive

NoOp glgxg at sbcglobal.net
Wed Apr 23 19:47:08 UTC 2008


On 04/23/2008 11:33 AM, Darryl Tidd wrote:
> Hey guys, I'm having some trouble, hope you can help.
> I have installed a second hard drive and I would like to move my /home 
> dir to it.  I have read some tutorials, but I am having trouble
> figuring it out. 
[snip]

Courtesy of Nils when I wanted to do the same:

> On 12/11/2007 11:09 PM, Nils Kassube wrote:
>> > NoOp wrote:
>>> >> Working on upgrading an very old system with a small hard drives. I did
>>> >> an upgrade from Feisty to Gusty. Prior to the upgrade the 1st (6Gb)
>>> >> drive had 2.2Gb free space on it. Afterwards it only has 1GB left (and
>>> >> that includes after removing fonts that I don't use, apt-get autoclean,
>>> >> apt-get autoremove, etc., etc.), so I added a second hard 7Gb hard
>>> >> drive.
>>> >>
>>> >> Second drive is in and working fine (ext3), now I'd like to move the
>>> >> Home directory to the 2nd hard drive so that I can free up space on the
>>> >> first drive. Any quick/easy command line suggestions on how to do this?
>> > 
>> > Mount your second drive to the /mnt directory. Then use the command
>> > 
>> > sudo cp -a /home/* /mnt
>> > 
>> > Now you have a copy of everything in your /home directory on the second 
>> > drive's root directory. Then edit (as root) /etc/fstab and add a line
>> > 
>> > somedrivespec /home ext3 defaults 0 2
> 
> somedrivespec /home ext3 defaults 0 0
> (/dev/sdb1  /home  ext3 defaults 0 0)
> worked. 0 2 gave me dmrc & no media errors.
> 
> Thanks! :-) Home now has 7.1G of user space and all is well again. :-)
> 
> 





More information about the ubuntu-users mailing list