You are not logged in.

#1 2016-03-07 06:20:07

ccerna1
Member
Registered: 2016-03-07
Posts: 26

Unable to see existing files on 2nd HD

Hello everyone.
I migrated from Manjaro a few days ago. Was able to install Arch on my ssd.
When I mounted my second drive I notice it mounted as folder...long story short i created another mount point finally showed up as drive.
But now I cant seemed to view or have access to my file. This was  the command I ran:

sudo mkdir /media/storagehdd
sudo mount /dev/sda1  /media/storagehdd

i also tried the standard syntax found on the wiki page

 # mkdir /mnt/mydir1
# mount /dev/sdXY /mnt/mydir1

this is my fstab file configuration:

 # /dev/sda1
UUID=330b807e-f43f-45dc-ab07-f83f3616ee3a	/media/backup 	ext4 rw,relatime,user,exec, data=ordered 0 0

this is what I see when i run blkid

 /dev/sda1: LABEL="Storage" UUID="330b807e-f43f-45dc-ab07-f83f3616ee3a" TYPE="ext4" PARTUUID="221a6dc7-9d3d-4daf-a6d0-969d0dbc9371"

from proc/mounts

 /dev/sda1 /media/backup ext4 rw,nosuid,nodev,relatime,data=ordered 0 0

i ran lsblk

 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
└─sda1   8:1    0 931.5G  0 part /media/backup
sdb      8:16   0 111.8G  0 disk 
├─sdb1   8:17   0    80G  0 part /home
├─sdb2   8:18   0  28.3G  0 part /
└─sdb3   8:19   0   3.5G  0 part [SWAP] 

finally

 ls -l /media/backup
total 0 

Any help you guys can provide is greatly appreciated and thank you.

Last edited by ccerna1 (2016-03-07 17:56:47)

Offline

#2 2016-03-07 06:44:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Unable to see existing files on 2nd HD

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code

You created the mountpoint at /media/storagehdd but the output of /proc/mounts shows /media/backup. Please run `mount -a` and then paste the output of `mount`.



Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-03-07 18:07:28

ccerna1
Member
Registered: 2016-03-07
Posts: 26

Re: Unable to see existing files on 2nd HD

Thank you Jason for following up.
You are correct the mountpoint is /media/backup.
Not sure why I entered that it was a long night trying to get this resolved before i posted on the forums.
Below is the code for proc/mounts:

sudo mount -a
mount: /etc/fstab: parse error: ignore entry at line 15 

**Line 15 is my drive that am trying to get working and show all my files.

Below is line 15 from fstab:

UUID=330b807e-f43f-45dc-ab07-f83f3616ee3a	/media/backup 	ext4 rw,relatime,user,exec, data=ordered 0 0 

Offline

#4 2016-03-07 18:24:55

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Unable to see existing files on 2nd HD

fstab fields are tab/space seperated

UUID=330b807e-f43f-45dc-ab07-f83f3616ee3a	/media/backup 	ext4 rw,relatime,user,exec, data=ordered 0 0 

is being split to

Field #    Expected Type       Value
1          fs_spec             UUID=330b807e-f43f-45dc-ab07-f83f3616ee3a
2          fs_file             /media/backup
3          fs_vfstype          ext4
4          fs_mntops           rw,relatime,user,exec,
5          fs_freq             data=ordered
6          fs_passno           0
7          ???????             0

There should be only six fields so the parse error

Offline

#5 2016-03-07 18:46:00

ccerna1
Member
Registered: 2016-03-07
Posts: 26

Re: Unable to see existing files on 2nd HD

Thank you for replying so you are saying that I need to tab after each entry for sda1 in the fstab? ok let me fix it and will report back!

Offline

#6 2016-03-07 18:49:40

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Unable to see existing files on 2nd HD

No, the problem is that there's a space in the fs_mntops field that shouldn't be there:

rw,relatime,user,exec, data=ordered

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#7 2016-03-07 18:56:43

ccerna1
Member
Registered: 2016-03-07
Posts: 26

Re: Unable to see existing files on 2nd HD

I re-ran blkid, and proc mounts and updated the fstab:

UUID=330b807e-f43f-45dc-ab07-f83f3616ee3a    /media/backup    ext4    rw,nosuid,nodev,relatime,data=ordered 0 0

Offline

#8 2016-03-07 19:05:57

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Unable to see existing files on 2nd HD

Running blkid just prints information and doesn't affect the system in any way. The file /proc/mounts is maintained by the system and shouldn't be manually modified. It just contains the same information that would be printed if you ran mount with no options. Are you trying to edit it or something?


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#9 2016-03-07 19:17:54

ccerna1
Member
Registered: 2016-03-07
Posts: 26

Re: Unable to see existing files on 2nd HD

wanted to make sure i had the correct text entered in the fstab entry is all. I remove the spaces but sadly the am not seeing my data. Is looking like I may have to count my files as lost.

Offline

#10 2016-03-07 20:01:15

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Unable to see existing files on 2nd HD

ccerna1 wrote:

I remove the spaces but sadly the am not seeing my data. Is looking like I may have to count my files as lost.

What did you do after you you had edited the fstab?  You have not mentioned using mount to explicitly mount it or rebooting so that the systemd generator would mount it,  so why would it be mounted?

Offline

#11 2016-03-07 20:22:44

ccerna1
Member
Registered: 2016-03-07
Posts: 26

Re: Unable to see existing files on 2nd HD

I proceeded and rebooted my machine. The hard drive was already mounted the issue was the files that were there before the upgrade to Arch are no longer showing up.

Offline

#12 2016-03-07 20:51:50

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Unable to see existing files on 2nd HD

If you don't even see 'lost+found' then at some point you must have recursively deleted everything from the volume as root.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#13 2016-03-07 22:08:55

ccerna1
Member
Registered: 2016-03-07
Posts: 26

Re: Unable to see existing files on 2nd HD

Jason and Alpha thank you for your help. It seems when I tried to mounted (created a new mount point) something hosed the data. After two days of this I just reformated the drive as much as it pains me. Thank you again for the help folks greatly appreciated.

Offline

Board footer

Powered by FluxBB