Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Help w/ splitting ubuntu between two drives.

Reply  
Thread Tools
freebe's Avatar
Junior Member with 19 posts.
 
Join Date: Mar 2007
06-Dec-2007, 01:16 PM #1
Help w/ splitting ubuntu between two drives.
I have ubuntu on one drive. I'd like to move the /home directory to a 2nd hard drive. Don't think I'll have trouble setting up a partition for /home with Gparted, not sure what I need to do to get ubuntu to use it. I bet it can be done w/ fstab or maybe grub.

Last edited by freebe; 06-Dec-2007 at 02:46 PM..
freebe's Avatar
Junior Member with 19 posts.
 
Join Date: Mar 2007
06-Dec-2007, 03:57 PM #2
OK, found this. Does this sound correct:

http://ubuntu.wordpress.com/2006/01/...own-partition/
tomdkat's Avatar
Computer Specs
Distinguished Member with 7,127 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
06-Dec-2007, 04:30 PM #3
Looks like a good procedure to me. Please wait for someone else to confirm this BEFORE doing it.

Peace...
RobLinux's Avatar
Computer Specs
Member with 417 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
06-Dec-2007, 08:02 PM #4
You'll find it easier if you use "rsync -cSHax /home /mnt" then you can check it with "rsync -cSHaxv" and should see not see new files go over.

Looks reasonable though. If you set a label, when you make the file system (ppl say format parition sometimes), then after a reboot, you can write LABEL=<label> rather than those long winded UUID devices Ubuntu likes.
tomdkat's Avatar
Computer Specs
Distinguished Member with 7,127 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
06-Dec-2007, 08:38 PM #5
Do the rsync and then update fstab to mount /home to the new disk device?

Peace...
prunejuice's Avatar
Senior Member with 2,568 posts.
 
Join Date: Apr 2002
06-Dec-2007, 09:34 PM #6
Why do you want to do this?
RobLinux's Avatar
Computer Specs
Member with 417 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
07-Dec-2007, 05:48 AM #7
Quote:
Originally Posted by tomdkat
Do the rsync and then update fstab to mount /home to the new disk device?
Yes. But udev won't create it until the next boot. Have to use the device before, and actually even then sometimes the new partition table isn't available until a reboot.
freebe's Avatar
Junior Member with 19 posts.
 
Join Date: Mar 2007
09-Dec-2007, 11:32 PM #8
Ah, worked for me. I made a ext3 partition on sda3 & then followed the writeup. I had to use sudo in 3 more places. Here is my (slightly modified) list of commands:

$sudo mkdir /mnt/newhome
$sudo mount -t ext3 /dev/sda3 /mnt/newhome
$cd /home/
$sudo find . -depth -print0 | sudo cpio -–null -–sparse -pvd /mnt/newhome/
$sudo umount /mnt/newhome
$sudo mv /home /old_home
sudo mkdir /home
$sudo mount /dev/sda3 /home

Cursorily verify that everything works right. (it did)
Now, you have to tell Ubuntu to mount your new home when you boot. Add a line to the “/etc/fstab” file that looks like the following:
/dev/sda3 /home ext3 nodev,nosuid 0 2

Once all this is done, and everything works fine, you can delete the “/old_home” directory by using:
$sudo rm -r /old_home
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:16 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.