SOLVED: I can't see my data

steveblakemore
Posts: 38
Joined: Tue Jan 19, 2010 11:41 am
Location: Spain

SOLVED: I can't see my data

Postby steveblakemore » Sun Jun 11, 2017 9:40 am

Hi,

I added a 3TB hard drive to my new Amahi 10 server. It had about 2TB of files on it. I added it using the Disk Wizard, and didn't format it but just gave it a label. I think I chose the ext4 option. But I don't see any files on the disk when I use the ls command in a ssh terminal. I tried adding a share to the disk and it created the sharename folder, but no files visible. When looking at the Add page of the Disk Wizard, I can still see 2TB in use.
I am not sure now what file system the disk was formatted with, although it was part of my old Amahi 9 server. I think I may have formatted it with NTFS, would that give the symptoms I described? If so, what should I do? Is it safe to unmount it, then mount it as an NTFS disk using the Disk Wizard?

I would like to be able to get at the data. I have a backup, but to restore from that would mean trashing my new server and reinstalling Windows on it, a long process.

Thanks for your help, :)
Steve

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: I can't see my data

Postby bigfoot65 » Sun Jun 11, 2017 10:57 am

Unmount the drive first.

You need to determine the file system for the drive.

Code: Select all

df -Th
Then try mounting it using the correct file system based on the output.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

steveblakemore
Posts: 38
Joined: Tue Jan 19, 2010 11:41 am
Location: Spain

Re: I can't see my data

Postby steveblakemore » Sun Jun 11, 2017 12:17 pm

Hi, I don't think it's mounted. When I do umount /dev/sde or /dev/sde1 it tells me it's not mounted.

Here's the output from your command:
  • [steve@localhost ~]$ sudo df -Th
    [sudo] password for steve:
    Filesystem Type Size Used Avail Use% Mounted on
    devtmpfs devtmpfs 968M 0 968M 0% /dev
    tmpfs tmpfs 976M 0 976M 0% /dev/shm
    tmpfs tmpfs 976M 856K 976M 1% /run
    tmpfs tmpfs 976M 0 976M 0% /sys/fs/cgroup
    /dev/sda4 xfs 38G 1.9G 36G 6% /
    tmpfs tmpfs 976M 40K 976M 1% /tmp
    /dev/sda2 ext4 976M 72M 838M 8% /boot
    /dev/sda5 xfs 19G 52M 19G 1% /home
    /dev/sda1 vfat 200M 9.4M 191M 5% /boot/efi
    none tmpfs 4.0M 0 4.0M 0% /var/spool/greyhole/mem
    tmpfs tmpfs 196M 0 196M 0% /run/user/1000
As you can see, sde isn't there, neither is sdb, sdc, or sdd. I'm using greyhole, but the disk I can't view is sde, which isn't in the pool.
Thanks
Steve

steveblakemore
Posts: 38
Joined: Tue Jan 19, 2010 11:41 am
Location: Spain

Re: I can't see my data

Postby steveblakemore » Sun Jun 11, 2017 12:31 pm

OK, so I rebooted, and the drives seemed to be mounted this time.

Here's the output. I unmounted it and then ran df -Th, but it didn't show me what filesystem it was.
  • [steve@localhost ~]$ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    devtmpfs devtmpfs 968M 0 968M 0% /dev
    tmpfs tmpfs 976M 0 976M 0% /dev/shm
    tmpfs tmpfs 976M 852K 976M 1% /run
    tmpfs tmpfs 976M 0 976M 0% /sys/fs/cgroup
    /dev/sda4 xfs 38G 2.0G 36G 6% /
    /dev/sdb1 ext4 916G 77M 870G 1% /var/hda/files/drives/HDD1
    /dev/sda5 xfs 19G 52M 19G 1% /home
    /dev/sda2 ext4 976M 72M 838M 8% /boot
    tmpfs tmpfs 976M 24K 976M 1% /tmp
    /dev/sda1 vfat 200M 9.4M 191M 5% /boot/efi
    /dev/sdc1 ext4 916G 77M 870G 1% /var/hda/files/drives/HDD2
    /dev/sdd1 ext4 916G 77M 870G 1% /var/hda/files/drives/HDD3
    /dev/sde1 ext4 2.7T 2.1T 504G 81% /var/hda/files/drives/HDD4
    none tmpfs 4.0M 0 4.0M 0% /var/spool/greyhole/mem
    tmpfs tmpfs 196M 0 196M 0% /run/user/1000
    [steve@localhost ~]$ umount /dev/sde1
    umount: /var/hda/files/drives/HDD4: umount failed: Operation not permitted
    [steve@localhost ~]$ sudo umount /dev/sde1
    [sudo] password for steve:
    [steve@localhost ~]$ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    devtmpfs devtmpfs 968M 0 968M 0% /dev
    tmpfs tmpfs 976M 0 976M 0% /dev/shm
    tmpfs tmpfs 976M 856K 976M 1% /run
    tmpfs tmpfs 976M 0 976M 0% /sys/fs/cgroup
    /dev/sda4 xfs 38G 2.0G 36G 6% /
    /dev/sdb1 ext4 916G 77M 870G 1% /var/hda/files/drives/HDD1
    /dev/sda5 xfs 19G 52M 19G 1% /home
    /dev/sda2 ext4 976M 72M 838M 8% /boot
    tmpfs tmpfs 976M 24K 976M 1% /tmp
    /dev/sda1 vfat 200M 9.4M 191M 5% /boot/efi
    /dev/sdc1 ext4 916G 77M 870G 1% /var/hda/files/drives/HDD2
    /dev/sdd1 ext4 916G 77M 870G 1% /var/hda/files/drives/HDD3
    none tmpfs 4.0M 0 4.0M 0% /var/spool/greyhole/mem
    tmpfs tmpfs 196M 0 196M 0% /run/user/1000
    [steve@localhost ~]$
Steve

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: I can't see my data

Postby bigfoot65 » Sun Jun 11, 2017 12:43 pm

You have to unmount the drive at it's mount point:

Code: Select all

sudo umount /var/hda/files/drives/HDD4
Then try running the command to see if it identifies the file system.

BTW all commands when dealing with drive mounting and unmounting have to be done with elevated privileges.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

steveblakemore
Posts: 38
Joined: Tue Jan 19, 2010 11:41 am
Location: Spain

Re: I can't see my data

Postby steveblakemore » Sun Jun 11, 2017 2:09 pm

Hi,

So I shut my new server down, took the drive out and put it back into my old server and booted that up. It WAS ext4, not ntfs or anything else, and it turns out that the problem was the share name. In my old server it had been shared out of location:
/var/hda/files/drives/drive1/wsse1copy
On the new server I decided to use:
/var/hda/files/drives/HDD4/WSSE1Copy
But that didn't work, because Linux is case sensitive and WSSE1Copy is completely different to wsse1copy.
So I used:
/var/hda/files/drives/HDD4/wsse1copy as the share location.

Now I can see all of my data!

Thank you for your help, it's very much appreciated. :D

Steve

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: I can't see my data

Postby bigfoot65 » Sun Jun 11, 2017 3:12 pm

Glad you sorted it out.

Marking this one solved.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 16 guests