SMB USB External Hard Drive Not Visible to Windows 7 Since September Update

Hi

I have two external hard drives that I have attached to a Pi2 and I was able to read and write to from Windows 7. Since the September update I am not able to see either of them from Windows 7.

OSMC is able to see the disks and TVHeadend is happily recording files to it. KODI running on a few different devices including windows is able to map the drive and I am able to view recordings on them all.

I saw in one post that I may need to run NTFSFIX which I did and I get the following

osmc@osmc:~$ ntfsfix /dev/sda
Mounting volume… NTFS signature is missing.
FAILED
Attempting to correct errors… NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
Unrecoverable error
Volume is corrupt. You should run chkdsk.

I ran chkdsk and it said that there is nothing wrong with the drive.

Is anyone else having this problem and if so is there a solution?

Thank you very much

Keith

Does sudo fsck.ntfs /dev/sda help?

Sam

Hi Sam

I am afraid the command isn’t found

osmc@osmc:~$ sudo fsck.ntfs /dev/sda
sudo: fsck.ntfs: command not found

Keith

Can you plug the drive into a Windows PC and run chkdsk on it, be sure to “safely remove” the drive before unplugging it

Please post the output of the following two commands:

sudo journalctl | paste-log
sudo net usershare info | paste-log

Hi

I already did that and CHKDSK said there was nothing wrong with the disk

Keith

HI DBMandrake

Here are the responses

osmc@osmc:~$ sudo journalctl | paste-log
http://paste.osmc.io/enugekehal
osmc@osmc:~$ sudo net usershare info | paste-log
http://paste.osmc.io/ahoqaxakit

Keith

Hi Keith,

I can’t really see anything wrong in your logs.

The logs show two drives - sda is a ST3000DM001 which has a reserved (hidden partition) and a second partition sda2 that is mounting at /media/PiDisk1 at 19:52:41 in your log.

A second drive sdb is being mounted at /media/500gHDD at 21:35:41 in your log. (I assume this was plugged in later)

Both drives are getting samba shares created as expected using net usershare add:

Sep 29 19:52:41 osmc sudo[1120]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/net usershare add PiDisk1 /media/PiDisk1 Auto-mount Volume osmc\osmc:f

Sep 29 21:35:41 osmc sudo[3973]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/net usershare add 500gHDD /media/500gHDD Auto-mount Volume osmc\osmc:f

At 21:54:24 one of the drives is unplugged so it’s samba share is automatically removed:

Sep 29 21:54:24 osmc kernel: usb 1-1.2.3: USB disconnect, device number 19
Sep 29 21:54:31 osmc kernel: usb 1-1.2.3: new high-speed USB device number 21 using dwc_otg
Sep 29 21:54:31 osmc kernel: usb 1-1.2.3: New USB device found, idVendor=04e8, idProduct=6860
Sep 29 21:54:31 osmc kernel: usb 1-1.2.3: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Sep 29 21:54:31 osmc kernel: usb 1-1.2.3: Product: SAMSUNG_Android
Sep 29 21:54:31 osmc kernel: usb 1-1.2.3: Manufacturer: SAMSUNG
Sep 29 21:54:31 osmc kernel: usb 1-1.2.3: SerialNumber: 4df196c90b749f65
Sep 29 21:54:33 osmc kernel: usb 1-1.2.3: USB disconnect, device number 21
Sep 29 21:54:33 osmc kernel: usb 1-1.2.3: new high-speed USB device number 22 using dwc_otg
Sep 29 21:54:33 osmc kernel: usb 1-1.2.3: New USB device found, idVendor=04e8, idProduct=6860
Sep 29 21:54:33 osmc kernel: usb 1-1.2.3: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Sep 29 21:54:33 osmc kernel: usb 1-1.2.3: Product: SAMSUNG_Android
Sep 29 21:54:33 osmc kernel: usb 1-1.2.3: Manufacturer: SAMSUNG
Sep 29 21:54:33 osmc kernel: usb 1-1.2.3: SerialNumber: 4df196c90b749f65
Sep 29 21:57:02 osmc kernel: usb 1-1.2.4: USB disconnect, device number 20
Sep 29 21:57:02 osmc udisks-glue[354]: Device file /dev/sdb1 unmounted from /media/500gHDD
Sep 29 21:57:02 osmc udisks-glue[354]: Device file /dev/sdb1 removed
Sep 29 21:57:02 osmc sudo[4560]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/net usershare delete 500gHDD
Sep 29 21:57:02 osmc sudo[4560]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 29 21:57:02 osmc udisks-glue[354]: Device file /dev/sdb removed
Sep 29 21:57:02 osmc ntfs-3g[3965]: Unmounting /dev/sdb1 (500gHDD)
Sep 29 21:57:03 osmc sudo[4560]: pam_unix(sudo:session): session closed for user root
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: USB disconnect, device number 22
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: new high-speed USB device number 23 using dwc_otg
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: new high-speed USB device number 24 using dwc_otg
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: New USB device found, idVendor=04e8, idProduct=6860
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: Product: SAMSUNG_Android
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: Manufacturer: SAMSUNG
Sep 29 21:57:05 osmc kernel: usb 1-1.2.3: SerialNumber: 4df196c90b749f65

In fact it looks like multiple devices including a Samsung phone were disconnected at that point - did you unplug an entire USB hub ?

So I can’t really see anything wrong here assuming the latter disconnection was intentional. When you connect to the Pi using Windows explorer you should be seeing an “osmc” share which goes to the osmc home directory on the SD card, but you should also see shares called PiDisk1 and 500gHDD.

I would try browsing to the Pi from another computer if you have access to one.

Hi DBMandrake

Thank you very much for looking at this.

Originally I had the 500gHDD drive as the only drive attached to the Pi. I recently bought the PiDisk1 as a replacement and I have that as the only attached drive. When I found that I couldn’t see it from Windows I tried reattaching the old disk to see if I could see that. I couldn’t see either of them.
The Samsung phone was attached to the Pi purely for charging purposes. Both the phone and 500gHDD drive were removed once they had finished charging and I had determined I couldn’t see the disk.

The current state is that from two PCs all I get is the osmc share and I don’t get the share for PiDisk1

Is there anything else that I can try

Thank you very much for your time

Keith

Can’t really think of much I’m afraid. Have you tried doing a full file system scan on the drive when connected to a windows PC ? Right click on the drive, choose properties, tools, Error-checking, check now, tick automatically fix filesystem errors, then click start.

When done make sure you safely remove the drive before unplugging, then plug it back into your Pi. If that doesn’t help then I’m out of ideas.