Move Home to 2nd drive

NoOp glgxg at sbcglobal.net
Wed Dec 12 18:47:09 UTC 2007


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