finding lost disk files

Asked by Hal Hackney

This is a DIFFERENT type of lost files problem. I think it is related to modified mounting instructions.
I was trying to install PLEX server on my Ubuntu 16.04.3 system. It would not "see" two external disks I had that my FILES system could see. I asked for help from the PLEX community and received instructions on how to make these files visible to the Plex server.
The modified mount command for /etc/fstab is this.
After doing
# df
Filesystem...../dev/sdb1 288304096 29413684 244222348 11% /run/media/hal/??don't remember???

I then did
# blkid /dev/sdb1

/dev/sdb1: LABEL="??don't remember?" UUID="27158e21-1ede-4a73-a0eb-47d9f4689e83" TYPE="ext4" PARTUUID="000520ae-01"

I then made a new mount point on my system drive "/disks"

I then edited /etc/fstab and added two lines to mount the two disks so that Plex could "see" them. The lines currently are:
UUID=27158e21-1ede-4a73-a0eb-47d9f4689e83 /disks/Photos ext4 defaults,auto,rw,nofail 0 1

and

UUID=ab041a72-cd37-4e46-a357-592a5b2389f2 /disks/Music ext4 defaults,auto,rw,nofail 0 1

That's the way they are now
initially the lines were totally different and unfortunately, I don't have access to them anymore. Their labels were NOT Music and Photos. They were a series of numbers and letters about 20 digits or more. And, my problem here is that on the disks now labelled as Photos were several other folders containing important data that I am unable to access now.

So, how do I get back to the previous "vanilla" mount so that I can see all other folders on this disk?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you run:

sudo blkid; mount; cat -n /etc/fstab; lsb_release -a; uname -a

What is the output please?

Revision history for this message
Hal Hackney (bmwtriker) said :
#2

here’s the output you requested.
attached text file. Thanks for taking a look. Currentlyt, I’m using Photo_rec to find any deleted photos. I didn’t delete the ones I’m missing, but just to do something while waiting.
Hal

Hal Hackney
<email address hidden>

> On Feb 19, 2018, at 2:52 PM, actionparsnip <email address hidden> wrote:
>
> Your question #664632 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/664632
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> If you run:
>
> sudo blkid; mount; cat -n /etc/fstab; lsb_release -a; uname -a
>
> What is the output please?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/664632
>
> You received this question notification because you asked the question.

Revision history for this message
Hal Hackney (bmwtriker) said :
#3

hal@Hplex:~$ sudo blkid
[sudo] password for hal:
/dev/sda1: UUID="7a745fe4-7f72-4cc6-ae48-a911caba40e4" TYPE="ext4" PARTUUID="0af1e7bd-01"
/dev/sda5: UUID="bc8f1bce-cb56-4e23-89a9-9306c2d97b8c" TYPE="swap" PARTUUID="0af1e7bd-05"
/dev/sdc1: LABEL="Music" UUID="ab041a72-cd37-4e46-a357-592a5b2389f2" TYPE="ext4" PARTUUID="000c9e08-01"
/dev/sdb1: LABEL="Photos" UUID="27158e21-1ede-4a73-a0eb-47d9f4689e83" TYPE="ext4" PARTUUID="000520ae-01"
hal@Hplex:~$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1993176k,nr_inodes=498294,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=403888k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=11622)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/sdc1 on /home/hal/Music type ext4 (rw,relatime,data=ordered)
/dev/sdb1 on /home/hal/Pictures type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=403888k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
hal@Hplex:~$ cat -n /etc/fstab
     1 # /etc/fstab: static file system information.
     2 #
     3 # Use 'blkid' to print the universally unique identifier for a
     4 # device; this may be used with UUID= as a more robust way to name devices
     5 # that works even if disks are added and removed. See fstab(5).
     6 #
     7 # <file system> <mount point> <type> <options> <dump> <pass>
     8 # / was on /dev/sda1 during installation
     9 UUID=7a745fe4-7f72-4cc6-ae48-a911caba40e4 / ext4 errors=remount-ro 0 1
    10 # swap was on /dev/sda5 during installation
    11 UUID=bc8f1bce-cb56-4e23-89a9-9306c2d97b8c none swap sw 0 0
    12 # New Mount points for PLEX use.
    13 # Mount Photos (ext4) at /disks/Photos for Plex
    14 UUID=27158e21-1ede-4a73-a0eb-47d9f4689e83 /home/hal/Pictures ext4 defaults,auto,rw,nofail 0 1
    15
    16 # Mount Music (ext4) at /disks/Music for Plex
    17 UUID=ab041a72-cd37-4e46-a357-592a5b2389f2 /home/hal/Music ext4 defaults,auto,rw,nofail 0 1
hal@Hplex:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
hal@Hplex:~$ uname -a
Linux Hplex 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
hal@Hplex:~$

Revision history for this message
Chris Guiver (guiverc) said :
#4

Your initial question mentions /disks/ as your mount-point. The last '/etc/fstab' you showed listed the mount-point in /home/hal/Pictures (or Music) and not /disks/Pictures. I'd suggest trying the /disks/ as you can have issues using a /home/$USER/ directory for mounting

Revision history for this message
Chris Guiver (guiverc) said :
#5

(also any files in side your $HOME (directory) folders named Pictures or Music would be hidden by the mounted volumes. This shadow-effect can confuse users...)

Revision history for this message
Hal Hackney (bmwtriker) said :
#6

I only switched to this last config to see if it would work as well. Everything remained the same.

This did fix the Plex server problem, but somehow, I lost significant content, i.e. several folders.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

On which device were these "lost folders" located?

Revision history for this message
Hal Hackney (bmwtriker) said :
#8

/dev/sdb1 The Pictures/Photos disk.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#9

Then they should still be there unless they have been deleted.
Mount /dev/sdb1 somewhere and examine the directory tree below the mount point.

Revision history for this message
Hal Hackney (bmwtriker) said :
#10

The files were NOT deleted. However, I AM mounting /dev/sdb1 at the mount point /disks. There are NO folders there. Only the Photos that I had moved from the previous Photo_rec run. Basically, I have to repeat the process again. UGH!

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

what is the output of the command

df -h

with the /dev/sdb1 disk mounted somewhere?