danlahl
Posts: 4
Joined: Mon Aug 10, 2015 6:09 am

No Directories on USB drive

Sun Sep 06, 2015 3:52 pm

Hi,

I have a RaspPi 2 and have a usb raid device connected (and have enabled Samba). The problem is I cannot see any directories on this RAID device through raspberry pi (using SSH and Putty). It is fine when I plug into a windows machine - all directories are there, but I cannot see the directories on this drive in Raspian using Putty.

Any thoughts on why RaspPi is not showing the directories on the USB RAID device (only showing 1 file at top level). Device is a Silverstone 2 drive enclosure wtih 2 TB on each drive.

thx for your help!

drgeoff
Posts: 10831
Joined: Wed Jan 25, 2012 6:39 pm

Re: No Directories on USB drive

Sun Sep 06, 2015 5:09 pm

Is the USB device hardware RAID or software RAID?
Quis custodiet ipsos custodes?

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: No Directories on USB drive

Sun Sep 06, 2015 5:28 pm

Are you sure it's mounted? You may be looking at the empty mount directory.
What does this command show?

Code: Select all

mount
and this command

Code: Select all

blkid

danlahl
Posts: 4
Joined: Mon Aug 10, 2015 6:09 am

Re: No Directories on USB drive

Mon Sep 07, 2015 4:36 am

yes, drive is mounted and blockid shows this for the drive

/dev/mmcblk0p1: LABEL="RECOVERY" UUID="4CF5-4260" TYPE="vfat"
/dev/mmcblk0p3: LABEL="SETTINGS" UUID="ac47c4a2-32dd-4367-9953-43fe303a9827" TYPE="ext4"
/dev/mmcblk0p5: SEC_TYPE="msdos" LABEL="boot" UUID="1142-CFAF" TYPE="vfat"
/dev/mmcblk0p6: LABEL="root" UUID="75bdb46d-557f-47b9-a6a6-a551da6100f0" TYPE="ext4"
/dev/sda1: LABEL="USB Win7 Server" UUID="1CBCF948BCF91D48" TYPE="ntfs"
danlahl@raspberrypi /NAS_drives/silverstone2tb $ dir
weaved-nixinstaller_1.2.13.bin

You can see this drive (SDA1) is a type "ntfs" and I had named the drive "USB Win7 Server". But only 1 file shows up on the drive, even though the other folders are visible when I plug this into a windows machine. The usb Raid device is HW-based from Silverstone. A copy of a 2 TB drive for the 2nd drive in the silverstone box.

thx for your help!

FM81
Posts: 518
Joined: Wed Apr 17, 2013 4:33 pm

Re: No Directories on USB drive

Mon Sep 07, 2015 6:38 am

What gives

Code: Select all

ls -ld /path/to/your/usb
? (Please replace '/path/to/your/usb' with the real path of your raspberry-mountpoint [which you didn't say to us].)

Greetings, FM_81
A: What does the command 'cat /dev/urandom', can you tell me please?
B: Yeah, that's very simple: It feeds your cat with radioactive material!

danlahl
Posts: 4
Joined: Mon Aug 10, 2015 6:09 am

Re: No Directories on USB drive

Mon Sep 07, 2015 4:08 pm

ok, here is what comes back from ls -ld

danlahl@raspberrypi ~ $ ls -ld /NAS_drives/silverstone2tb
drwxr-xr-x 2 root root 4096 Aug 13 10:10 /NAS_drives/silverstone2tb

>>>

So I just reran the mount command with the name of the drive:

sudo mount -t auto /dev/sdb1 /NAS_drives/silverstone2tb

And got it working. This is odd as I have setup the drive to automatically start ( via path) in /etc/samba/smb.conf. oh well, working now so no big deal.

thx for the help!

Return to “Troubleshooting”