LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2009, 12:24 PM   #1
Changes
Member
 
Registered: Oct 2008
Posts: 190

Rep: Reputation: 16
Unmounting /home


I want to copy my entire Linux install from a hard disk to a thumbdrive (so I can run my EeePC on flash memory), but I have to leave out /home because it's larger than the thumbdrive can hold and I don't require most of what's in it in the system disk (it'll stay on the hard drive to be accessed as needed).

So I logged in as root, planning to unmount /home (I put it on its own partition) and rsync root on the thumbdrive, but it won't let me unmount saying the device is busy. I tried fuser -u to see what's accessing /dev/sda3, but it returns nothing.

What now?
 
Old 12-05-2009, 12:32 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Try also:
Code:
lsof | grep \/home
If that doesn't help you solve it, you could apply the pragmatic approach:

(1) Remove /home from /etc/fstab.
(2) Reboot.
(3) Login as root.
(4) Rsync to your hearts content.
(5) Undo your changes to /etc/fstab.
(6) Reboot and pretend nothing happened.
 
Old 12-05-2009, 01:57 PM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

No need to umount /home. Just use the --exclude option to rsync, i.e. --exclude /home

Dave
 
Old 12-05-2009, 05:27 PM   #4
Changes
Member
 
Registered: Oct 2008
Posts: 190

Original Poster
Rep: Reputation: 16
Oh, perfect. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unmounting all nfs filesystems without unmounting local ones kaplan71 Linux - General 1 03-05-2009 11:00 AM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
Problem unmounting /home sekelsenmat Mandriva 4 02-10-2007 03:19 PM
Put a 2nd kanotix at hdb 3/,-4/home. 1st is at hdb8/,-9/home.#2 is using 1st's /home sleekmason Linux - General 3 12-09-2006 09:21 AM
Unmounting the cd? mrobi Linux - General 3 02-16-2003 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration