LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-13-2013, 10:42 PM   #1
Googlerez
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
Accidentally mounted a partition on my whole user account


Hi there,

I accidentally mounted /sda1 to /home/myUser/ by this command:

sudo mount /sda1 /home/myUser/

Well I accidentally hit enter as I wanted to type a subfolder is there any way, I can get back my account myUser files?

Thanks
 
Old 01-13-2013, 10:51 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Code:
sudo umount /dev/sda1
When you mount a filesystem on a directory(mountpoint) the contents of that directory become "hidden" until you unmount the filesystem.
 
Old 01-13-2013, 11:06 PM   #3
Googlerez
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your reply kbp!

I tried both sudo umount /dev/sda1 and sudo umount /home/myUser/, in both cases, it says:

device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

I guess, as it's the account's home page, there's no way to release /home/myUser/ ?

I haven't dared to restart my computer, in hope I can get my files back. Please help.

Last edited by Googlerez; 01-13-2013 at 11:08 PM.
 
Old 01-13-2013, 11:11 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
A restart may be your only option, your files are not actually gone or damaged - you may lose any unsaved changes though.
 
Old 01-13-2013, 11:55 PM   #5
Googlerez
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you very much. Tonight was one of the best nights in my life. A seeming nightmare ended happily. omG, I love happy endings!
The issue is solved.
 
  


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
MEPIS User Assistant puts my user account on wrong partition newbiesforever MEPIS 1 07-24-2010 01:19 PM
[SOLVED] Think I may have accidentally mounted a partition skylights Linux - Newbie 4 06-28-2010 07:27 PM
All music in windows partition want to play it in my user account Jedi_Jay87 Linux - Newbie 7 06-18-2006 06:57 AM
chmod to access win partition from user account danieljames SUSE / openSUSE 14 01-09-2006 05:45 PM
Trouble accessing mounted filesystem from user account. DarkXtar Slackware 6 04-29-2003 11:27 PM


All times are GMT -5. The time now is 01:08 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration