exfat USB SSD will not mount at boot

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
atman42

exfat USB SSD will not mount at boot

Post by atman42 »

Hello,

My 1TB Samsung SSD formatted exfat is recognized and automatically mounted when I plug it into a USB port. After the drive is mounted I can unmount it and mount it again using the Disks utility. I can do the same in terminal from the command line using sudo. However, when I reboot, the drive is not mounted. It does not show up in the Disks utility. I can execute "sudo mount -a" but the drive does not mount. If I unplug the drive from the USB port and then plug it back in, it is automatically mounted.

I've tried to mount it by UUID and by LABEL with fstab entries. The mount point specified in fstab "/media/drive1" is used when I plug the drive into a USB port and the drive mounts automatically. I also have the "mount at boot" checkbox checked in the Disks utility.

I'd appreciate advice from anyone that can help me get the drive to mount at boot time.

Output from inxi:

Code: Select all

System:    Host: alex-MSI-Cubi Kernel: 4.15.0-43-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1) Distro: Linux Mint 19 Tara
Machine:   Device: desktop System: MICRO-STAR product: MS-B09611 serial: N/A
           Mobo: MICRO-STAR model: MS-B0961 v: 1.0 serial: N/A
           UEFI [Legacy]: American Megatrends v: EB096IMS V1.2 date: 03/30/2015
CPU:       Dual core Intel Pentium 3805U (-MCP-) arch: Broadwell rev.4 cache: 2048 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 7582
           clock speeds: max: 1900 MHz 1: 873 MHz 2: 808 MHz
Graphics:  Card: Intel HD Graphics bus-ID: 00:02.0
           Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Mesa DRI Intel Broadwell GT1 version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Intel Wildcat Point-LP High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Broadwell-U Audio Controller driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-43-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 02:00.0
           IF: enp2s0 state: down mac: <filter>
           Card-2: Intel Wireless 3160 driver: iwlwifi bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 1250.3GB (11.2% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB temp: 0C
           ID-2: USB /dev/sdb model: nal_USB_3.0 size: 1000.2GB temp: 0C
Partition: ID-1: / size: 229G used: 19G (9%) fs: ext4 dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 185 Uptime: 57 min Memory: 683.7/7859.5MB Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

/etc/fstab file:
# /etc/fstab: static file system information.
#

Code: Select all

# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# / was on /dev/sda1 during installation
#
# <file system> <mount point>   <type>  <options>                                   <dump>  <pass>
UUID=a16d7793-f746-40b4-b446-773241981c33 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw                0       0
UUID=5C07-AF30 /media/drive1 auto rw,nosuid,nodev,noatime,nofail,x-systemd.device-timeout=3,x-gvfs-show 0 0
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ClixTrix

Re: exfat USB SSD will not mount at boot

Post by ClixTrix »

Try a mount point in fstab of /mnt/drive1 instead of /media/drive1.

Edit: Since it's a FAT partition, also try vfat in place of auto.

Edit2: I'm also suspicious of x-gvfs-show not being syntactically correct for that type of drive. Check terminal with command dmesg, and look through the log for errors on that mount.

https://askubuntu.com/questions/594197/ ... sing-value
phd21
Level 20
Level 20
Posts: 10104
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: exfat USB SSD will not mount at boot

Post by phd21 »

Hi atman42,

Welcome to the wonderful world of Linux Mint and its excellent forum!

See this post below:

NTFS Partition does not activate even with automount, until clicking drive in file manager - Linux Mint Forums
viewtopic.php?f=208&t=278971&p=1535140#p1535140

Hope this helps ...
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
ClixTrix

Re: exfat USB SSD will not mount at boot

Post by ClixTrix »

Well, I decided to try this with my Mint 19.1 Cinnamon test system and a SanDisk Cruzer Glide 16GB USB flash drive.

Steps:

1. Formatted the drive with USB Stick Formatter as FAT32.

2. Using DISKS and the Mount Options for the drive....
- Turned Off User Session Defaults
- Selected/checked "Mount at System Startup" and "Show in User Interface" (last was already checked)
- Selected UUID on options list for "Idenify As"
- Used /mnt/drive1 for the "Mount Point" (although media also worked)
- Left the the Filesystem Type as default Auto
- Left the options list as is as nosuid,nodev,nofail,x-gvfs-show

Here's what DISKS built as fstab entry:

UUID=5A21-D44A /mnt/drive1 auto nosuid,nodev,nofail,x-gvfs-show 0 0

With both warm and cold boots of the test system, the drive mounted. However, when I attempted to copy a file to the drive, I found it was mounted as root.

Workaround for the root permissions problem is documented here (note it's for NTFS). I used the uid=1000,gid=1000, and that worked. There are other options I didn't try...

https://askubuntu.com/questions/43570/c ... ot-to-user

Edit:

Was curious if the use of exfat was involved with the problem and found this article.

https://customerhelp.co.za/linux/ubuntu ... nting.html
atman42

Re: exfat USB SSD will not mount at boot

Post by atman42 »

After many hours of experimenting with different fstab entries I've determined that mounting specification in fstab is not the problem. I am able to mount a flash drive at boot with or without an entry in fstab. The USB SSD in an external drive case will only mount if I plug it in after booting. I started looking at dmesg output and determined that the USB SSD is not being detected during boot. Since it does not get detected, it cannot be mounted. The following info was captured from dmesg for the USB SSD and for comparison also from the USB flash drive.

dmesg shows the following devices detected if I boot with Sandisk USB flash already inserted:

[ 1.216128] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.217979] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.223840] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.704805] usb 2-1: New USB device found, idVendor=0781, idProduct=5580
[ 1.708280] usb 1-1: New USB device found, idVendor=8087, idProduct=8001
[ 1.981906] usb 2-2: New USB device found, idVendor=062a, idProduct=4106
[ 2.258387] usb 2-3: New USB device found, idVendor=12c9, idProduct=1023
[ 2.533297] usb 2-6: New USB device found, idVendor=8087, idProduct=07dc

NOTE: vendor ID 0781 is SanDisk Corp. product ID 5580 is SDCZ80 Flash Drive

dmesg shows the following device detected if I plug in the USB Flash after booting:

[ +0.148942] usb 2-1: New USB device found, idVendor=0781, idProduct=5580


dmesg shows the following devices detected if I boot with USB SSD already inserted:

$ grep "New USB device found" dmesg_SSD_not_detected_at_boot.txt
[ 1.216129] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.217978] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.223785] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.705632] usb 2-2: New USB device found, idVendor=062a, idProduct=4106
[ 1.896318] usb 1-1: New USB device found, idVendor=8087, idProduct=8001
[ 1.981940] usb 2-3: New USB device found, idVendor=12c9, idProduct=1023
[ 2.257420] usb 2-6: New USB device found, idVendor=8087, idProduct=07dc

NOTE: One less USB device was detected at boot (missing the SSD drive)


dmesg shows the following device detected if I plug in the USB SSD after booting:

[ +0.193156] usb 2-1: New USB device found, idVendor=0080, idProduct=a001

NOTE: The Samsung SSD is detected after I plug it in and icon appears on desktop. The SSD is installed inside an Orico 2169U3 hard disk enclosure. The vendor/product ID 0080:a001 does not show up in any database that Ive been able to find. However, the drive gets mounted as sdb1 at /media/alex/MEDIA (MEDIA is the LABEL of the SSD drive) and is usable.

Any idea why the SSD in the external USB case is detected if I boot first then plug it in but is NOT detected during boot?
Locked

Return to “Hardware Support”