g35
Posts: 3
Joined: Sat Oct 12, 2019 4:12 am

Raspbian - USB drive not showing up under Eject menu in top right

Sat Oct 12, 2019 4:23 am

I'm very new to Linux, Raspberry Pi, command line, all that stuff.

The first time I plugged in my USB hard drive, I plugged it in and it showed up on the desktop. When I wanted to unplug it, I used the Eject icon in the top right and then unplugged it. Seemed simple.

I'm not sure what I did wrong now, but I was following this tutorial: https://medium.com/@aallan/adding-an-ex ... 321efce86a)

I finished the part of that tutorial where you edit fstab.

Now when I plug in the hard drive, it's not showing up on the desktop. I mount it using the command

Code: Select all

sudo mount /dev/sda1 /mnt/usb
and when I use command df, it shows up in the list, but not on the desktop (though I can access the files in /mnt/usb).

What do I need to do to get the hard drive to show on the desktop, and under the Eject button when I plug it in?

Another question I have is when I use the eject button, do I also need to use the command line to unmount it using command umount?

Thank you.

Here are my outputs:

dmesg:

Code: Select all

[ 1609.577418] usb 1-1.4: new high-speed USB device number 6 using dwc_otg
[ 1609.709060] usb 1-1.4: New USB device found, idVendor=0bc2, idProduct=ab24, bcdDevice= 1.00
[ 1609.709076] usb 1-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1609.709086] usb 1-1.4: Product: BUP Slim BK
[ 1609.709095] usb 1-1.4: Manufacturer: Seagate
[ 1609.709104] usb 1-1.4: SerialNumber: NA9E0NPW
[ 1609.709938] usb 1-1.4: The driver for the USB controller dwc_otg_hcd does not support scatter-gather which is
[ 1609.709950] usb 1-1.4: required by the UAS driver. Please try an other USB controller if you wish to use UAS.
[ 1609.709962] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 1609.713448] scsi host0: usb-storage 1-1.4:1.0
[ 1610.778468] scsi 0:0:0:0: Direct-Access     Seagate  BUP Slim BK      0304 PQ: 0 ANSI: 6
[ 1610.779483] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1610.781571] sd 0:0:0:0: [sda] Spinning up disk...
[ 1611.817541] ...ready
[ 1613.898751] sd 0:0:0:0: [sda] 3907029167 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 1613.931746] sd 0:0:0:0: [sda] Write Protect is off
[ 1613.931763] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
[ 1613.932270] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1613.972483]  sda: sda1
[ 1613.976516] sd 0:0:0:0: [sda] Attached SCSI disk

lsusb -v:

Code: Select all

Bus 001 Device 006: ID 0bc2:ab24 Seagate RSS LLC Backup Plus Portable Drive
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bc2 Seagate RSS LLC
  idProduct          0xab24 Backup Plus Portable Drive
  bcdDevice            1.00
  iManufacturer           2 
  iProduct                3 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0055
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Data-out pipe (0x04)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
        Command pipe (0x01)

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         1 
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0xec00 SMSC9512/9514 Fast Ethernet Adapter
  bcdDevice            2.00
  iManufacturer           0 
  iProduct                0 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0027
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol    255 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               4

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         2 TT per port
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0x9514 SMC9514 Hub
  bcdDevice            2.00
  iManufacturer           0 
  iProduct                0 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      1 Single TT
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      2 TT per port
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            4.19
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12

uname -a:

Code: Select all

Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux

klricks
Posts: 6609
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Raspbian - USB drive not showing up under Eject menu in top right

Sat Oct 12, 2019 6:28 pm

You can drag & drop any folder from file-manager to the desktop.

Normally one would not fstab a drive that was intended to be used as removable media (hot swap)... Just let the automount feature do its job.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

g35
Posts: 3
Joined: Sat Oct 12, 2019 4:12 am

Re: Raspbian - USB drive not showing up under Eject menu in top right

Fri Oct 18, 2019 12:25 am

klricks wrote:
Sat Oct 12, 2019 6:28 pm
You can drag & drop any folder from file-manager to the desktop.

Normally one would not fstab a drive that was intended to be used as removable media (hot swap)... Just let the automount feature do its job.
Thanks for your help. I will let automout do its job next time.

I figured out the issue too, I needed to make my mount point /media/pi/whatever, this allows Raspbian to automatically show the drive on the desktop.

User avatar
HawaiianPi
Posts: 4720
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Raspbian - USB drive not showing up under Eject menu in top right

Fri Oct 18, 2019 12:35 am

g35 wrote:
Fri Oct 18, 2019 12:25 am
I figured out the issue too, I needed to make my mount point /media/pi/whatever, this allows Raspbian to automatically show the drive on the desktop.
Yes, that's where the file manager automounts removable drives (/media/{username}/{drivename}), and drives manually mounted in the same fashion will also show on the desktop. However, if you manually mount it, you will have to manually unmount it.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

LTolledo
Posts: 2004
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Raspbian - USB drive not showing up under Eject menu in top right

Fri Oct 18, 2019 1:41 am

if you mounted the USB drive in /mnt it will not show up in desktop
I did tried an "old" advice by HawaiianPi and it worked

open terminal
type in

Code: Select all

cd /home/pi/Desktop
ln -s /mnt/usb
after than a folder will appear on your desktop....
clicking it will show the contents of the folder (if mounted) or an empty folder (if not mounted)

applied this to my RPi4B-4G Buster with full desktop accessing my NAS drives...

not tried it with removable drives locally plugged to the RPi4B....
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Return to “Troubleshooting”