LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2016, 04:41 PM   #1
maldebron
LQ Newbie
 
Registered: Jan 2015
Posts: 13

Rep: Reputation: Disabled
Exclamation Ubuntu 14.04 - All files lost after reboot


Hi! I'm running Ubuntu 14.04 on an Acer Apire E11. I needed a VPN set up on my laptop for work (& the guy who did it wasn't very experienced with Linux), and after rebooting I lost all access to my personal files (all programs are fine though). Here is the general message I get when trying to access any docs/downloads/pics/vids/etc. (Basically me/* is non-existent. But Trash is fine... it's the only place I have any non-system/program-related files. Well, there and Home, where the files for the VPN are.)

Quote:
Unhandled error message: Error when getting information for file '/home/me/Documents': No such file or directory
When I check my HD memory usage, it's evident that the data wasn't wiped... it's here somewhere. I'm afraid that a path was accidentally deleted and I don't know what (if anything) I can do about it.

Pleasepleaseplease tell me I haven't lost everything!!!

Thank you!
 
Old 07-30-2016, 05:54 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Owkay....
There are more FUN ways to wake up
What I'd try is boot up with a live DVD/CD, mount the partition and see what's (still) there...
See if you can somehow get an external device in the mix and start to copy stuff...
I suspect the install of the VPN "kidnapped" the home folder as its own...
First off, see if you can get to some data. Fedora has great Live discs, Manjaro's live disc too: great, of course, Ubuntu too...
To mount (the hard way), in the console (root access needed, but, on a Live, I suspect you get that anyhow)
Code:
ls
fdisk -l
mount /media /dev/[some disc]
cd media
ls
(info, first "ls" is to see if there is a folder you can mount on, usually there's a "media" or such...)
Example
Code:
ls
boot/  home/   opt/   run/  tmp/  
dev/   media/  proc/  srv/  usr/  
etc/   mnt/    root/  sys/  var/  
fdisk -l
Device     Boot     Start        End    Sectors   Size Id Type
/dev/sda1  *           63    8193149    8193087   3.9G 83 Linux
/dev/sda2         8193150   40965749   32772600  15.6G 82 Linux swap / Solaris
/dev/sda3        40965750  204812684  163846935  78.1G 83 Linux
/dev/sda4       204812685 1953520064 1748707380 833.9G 83 Linux

/dev/sdb        (yada yada yada)
mount /media /dev/sdb
cd /media
(give or take some glitches, almost midnight here)
or, from that point, launch the graphical explorer that's ofered...
Good luck
Melissa

Last edited by ButterflyMelissa; 07-30-2016 at 05:58 PM.
 
Old 07-30-2016, 06:51 PM   #3
maldebron
LQ Newbie
 
Registered: Jan 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank you! No idea if I'll manage but so grateful for the hope!
It's late here as well, so I'm going to get some sleep before tackling this project but I have a few questions
- Ubuntu just came out with an upgrade (16.04); would upgrading from 14.04 "re-take" my home folder?
- Is there a way I could uninstall/remove the VPN or "take back" my home folder? (I couldn't care less what happens to the VPN - I just want my thiiiiiings!)
Again, thanks for the help!
 
Old 07-31-2016, 04:32 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Ubuntu just came out with an upgrade (16.04); would upgrading from 14.04 "re-take" my home folder?
No garantees there. Best try to back up what you can and then try to repair...
If you need a step by step, let me know, dont worry, this happens to the best of us....that's why I have an external drive and I use grsync to make the backups...before I unstall/upgrade...
Be wachin' ya...
Melissa
 
Old 07-31-2016, 07:48 AM   #5
24x7servermanagement
Member
 
Registered: Jul 2016
Location: India
Distribution: CentOS, Redhat, Ubuntu and Debian
Posts: 49

Rep: Reputation: Disabled
Yes, upgrade wont fix current situation. First find all your data that you can, backup it up and then try to fix the issues.
 
Old 07-31-2016, 10:29 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by maldebron View Post
Hi! I'm running Ubuntu 14.04 on an Acer Apire E11. I needed a VPN set up on my laptop for work (& the guy who did it wasn't very experienced with Linux), and after rebooting I lost all access to my personal files (all programs are fine though). Here is the general message I get when trying to access any docs/downloads/pics/vids/etc. (Basically me/* is non-existent. But Trash is fine... it's the only place I have any non-system/program-related files. Well, there and Home, where the files for the VPN are.)

When I check my HD memory usage, it's evident that the data wasn't wiped... it's here somewhere. I'm afraid that a path was accidentally deleted and I don't know what (if anything) I can do about it.
It *COULD* very well be something much simpler, based on what you posted. Question: did you connect to VPN *FIRST*, before noticing your files were gone??? Because if so...your VPN connection may have mounted your home directory on top of your existing folder. That is, the empty one on the VPN server mounted on top of the REAL one on your local drive. For example, if I have /home/mystuff with a pile of data in it, and I type in "mount /dev/sdb1 /home/mystuff", it'll use that mount-point (because it EXISTS), and dutifully redirect me to whatever that other device is. So when I go to /home/mystuff, I'll see the wrong info.

Type in "mount", and see what you get first, before running any live/recovery systems. Since you say the disk space is still occupied, the above scenario would make that true. Or, just boot in single-user mode, with no networking, and THEN look for your data.
Quote:
Pleasepleaseplease tell me I haven't lost everything!!!
...and THIS is why you make backups, right?
 
Old 07-31-2016, 10:30 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by 24x7servermanagement View Post
Yes, upgrade wont fix current situation. First find all your data that you can, backup it up and then try to fix the issues.
Please stop with posts like this. You only re-state(d) what others say, to try to get your spam-signature visible. As the "chief technical officer" for a company, shouldn't you know better?
 
Old 07-31-2016, 06:15 PM   #8
maldebron
LQ Newbie
 
Registered: Jan 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ButterflyMelissa View Post
No garantees there. Best try to back up what you can and then try to repair...
If you need a step by step, let me know, dont worry, this happens to the best of us....that's why I have an external drive and I use grsync to make the backups...before I unstall/upgrade...
Be wachin' ya...
Melissa
I might need that step-by-step, although I don't know if I'm even there yet... I've been trying to get a live-boot of Ubuntu (Desktop) on USB and I keep getting error messages (using pendrivelinux's live-usb install and the ubuntu startup disk creator). I would say "f- it" and try to boot anyway, but I don't want to risk anything. Do you know if there's a certain flavour (Lubuntu? Xubuntu?) that would be easier to work with for this? (Full disclosure: I'm using a Kingston 8GB USB and I read a thread about this brand causing some problems, but I don't know if it's still an issue or not...)


Quote:
Originally Posted by TB0ne View Post

...and THIS is why you make backups, right?
hahaha...you can't imagine how much I hate myself right now...I totally deserve to sit in the town square holding a sign with "IDIOT" written on it but I can promise you this: NEVER AGAIN! 0/10 Do.Not.Recommend.(Not.Making.Backups.)
 
Old 07-31-2016, 06:21 PM   #9
maldebron
LQ Newbie
 
Registered: Jan 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Question: did you connect to VPN *FIRST*, before noticing your files were gone???
Sorry! I just realized that I didn't answer your question in my previous post. I was connected to the VPN but it was behaving strangely: I don't know how to explain it, but I hadn't connected to it, but still had access to it... Neither I nor the guy who set it up had any clue what was going on. I then suggested I reboot, thinking it would "straighten out" whatever was going on. It was after this reboot that I saw all my files had disappeared.
I'll try out your suggestion and let you know. Thanks for the advice
 
Old 07-31-2016, 06:44 PM   #10
maldebron
LQ Newbie
 
Registered: Jan 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post

Type in "mount", and see what you get first, before running any live/recovery systems. Since you say the disk space is still occupied, the above scenario would make that true. Or, just boot in single-user mode, with no networking, and THEN look for your data.
Here's what I got when I typed in "mount". I really don't know my way around code, but the only references I see to anything that looks similar to what you're suggesting is the third to last line, that references media/maldebron... but would be happy to hear your take on it:

Code:
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /boot/efi type vfat (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=maldebron)
/dev/sdb1 on /media/maldebron/2E6C-EBBE type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
/home/maldebron/ubuntu-16.04.1-desktop-amd64.iso on /tmp/tmplvvoka76 type iso9660 (ro)
As for single-user booting with no networking, I don't understand... I'm the only user, when I reboot I'm simply prompted for my password and that's it... is there a key I can hit during boot that could take me "outside" my account?

Thanks again for the help
 
Old 07-31-2016, 06:53 PM   #11
maldebron
LQ Newbie
 
Registered: Jan 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Red face

Quote:
Originally Posted by maldebron View Post

Code:
/dev/sdb1 on /media/maldebron/2E6C-EBBE type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
/home/maldebron/ubuntu-16.04.1-desktop-amd64.iso on /tmp/tmplvvoka76 type iso9660 (ro)
I'm being stupid and need to get to bed; that last bit is just the USB I've been trying to make bootable. I'm officially done for the day
 
Old 08-01-2016, 08:34 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by maldebron View Post
Sorry! I just realized that I didn't answer your question in my previous post. I was connected to the VPN but it was behaving strangely: I don't know how to explain it, but I hadn't connected to it, but still had access to it... Neither I nor the guy who set it up had any clue what was going on. I then suggested I reboot, thinking it would "straighten out" whatever was going on. It was after this reboot that I saw all my files had disappeared.
I'll try out your suggestion and let you know. Thanks for the advice
No worries...ALL of us have been there. Usually more than once.

Try disconnecting the network TOTALLY, turning off Wifi, etc., and see if you can see your files. But something is telling here in what you posted about the "mount" command. Where are the files you're looking for? (the whole path). Because I don't see /home mounted ANYWHERE.....
 
Old 08-02-2016, 03:34 AM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
I agree the last 2 lines of o/p look like the rescue usb.
This line may be the one
Code:
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
You wouldn't necessarily have /home as a mnt pt (I don't), so start from there ...
('/' is the 'root' of the Linux filesystem)
 
Old 08-02-2016, 09:09 AM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by chrism01 View Post
I agree the last 2 lines of o/p look like the rescue usb.
This line may be the one
Code:
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
You wouldn't necessarily have /home as a mnt pt (I don't), so start from there ...
('/' is the 'root' of the Linux filesystem)
Really?? I typically always build my systems with /home elsewhere, so when/if I have to nuke the OS, I can format the one partition, and not have to shovel over all my data from backups. But that's just me...always more than one way to do it.

The thing that strikes me about this, is that the OP says the disk space is still used, but files not visible...after VPN activity. To me, that sounds like a mount-point has been 'stolen'....
 
  


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
why is the files lost when I reboot linux on VMware JimOrJoe Linux - Newbie 11 06-03-2016 06:45 PM
Config changes lost after reboot- Fedora or Ubuntu SteveFromAZ Linux - Newbie 2 03-16-2012 09:47 AM
Files are lost over reboot junmuz Linux - Embedded & Single-board computer 7 06-06-2011 11:30 PM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 07:45 AM
lost hd upon reboot gehwokka Linux - Hardware 4 06-04-2003 03:49 AM


All times are GMT -5. The time now is 02:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration