LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu 14.04 - All files lost after reboot (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-14-04-all-files-lost-after-reboot-4175585891/)

maldebron 07-30-2016 03:41 PM

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!

ButterflyMelissa 07-30-2016 04:54 PM

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

maldebron 07-30-2016 05:51 PM

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!

ButterflyMelissa 07-31-2016 03:32 AM

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

24x7servermanagement 07-31-2016 06:48 AM

Yes, upgrade wont fix current situation. First find all your data that you can, backup it up and then try to fix the issues.

TB0ne 07-31-2016 09:29 AM

Quote:

Originally Posted by maldebron (Post 5583444)
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? :)

TB0ne 07-31-2016 09:30 AM

Quote:

Originally Posted by 24x7servermanagement (Post 5583633)
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?

maldebron 07-31-2016 05:15 PM

Quote:

Originally Posted by ButterflyMelissa (Post 5583604)
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 (Post 5583670)

...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.) ;)

maldebron 07-31-2016 05:21 PM

Quote:

Originally Posted by TB0ne (Post 5583670)
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 :)

maldebron 07-31-2016 05:44 PM

Quote:

Originally Posted by TB0ne (Post 5583670)

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 :) :)

maldebron 07-31-2016 05:53 PM

Quote:

Originally Posted by maldebron (Post 5583862)

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

TB0ne 08-01-2016 07:34 AM

Quote:

Originally Posted by maldebron (Post 5583852)
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.....

chrism01 08-02-2016 02:34 AM

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)

TB0ne 08-02-2016 08:09 AM

Quote:

Originally Posted by chrism01 (Post 5584544)
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'....


All times are GMT -5. The time now is 02:51 PM.