Jump to content

[SOLVED]: Odroid-C4 can not mount external USB drive via fstab on boot?


Go to solution Solved by rin,

Recommended Posts

Posted (edited)

I successfully flashed the "Armbian_24.11.1_Odroidc4_noble_current_6.6.60-kisak.img" on my emmc, and everything boots, runs, and updates fine...

 

 My 2TB USB3.0 seagate HD, /dev/sda, is seen fine in "dmesg", as well as "lsblk" and "blkid", but when I add my UUID, ..., in /etc/fstab it fails to mount at boot.
see below line in /etc/fstab for above /dev/sda1 :
 

UUID=<output-of-bklid-for-sda1>   /media/USB01   ext4   defaults   0   1

To test the above /etc/fstab mount I ran:

sudo findmnt --verify


(which completes successfully)
Also, if I run:

sudo mount -a


(it manually automounts /dev/sda1 -> /media/USB01 successfully).

 

But, whenever i reboot, it does not come up mounted.?

-this is driving me crazy. ;)

Do I also need udisks2 ?, or autofs>, and/or, manually edit udev*?, and/or "systemd-mount" to get this thing to mount on every boot. ?  
 

Edited by rin
make the title more clear
  • rin changed the title to Odroid-C4 can not mount external USB drive via fstab.?
Posted (edited)

Hi @c0rnelius

Sorry for not being more clear in my Title|Subject, (which I since edited a bit), and thanks for reply, and yes, I tried auto,nofail, ... (in /etc/fstab), and a few other combo's but they didn't work. -It would not consistently mount at boot.  I will post what finally  worked for me in a bit.

 

Edited by rin
exaplanation
  • Solution
Posted (edited)

Automounting, (even permanently on reboot), a portable/external USB-Drive is not as simple as adding a line in /etc/fstab,-like you would do for any internal sata/hdd/ssd/nvme/...
I initially tried installing "autofs" and "udisks2", and fiddling with that and "/etc/fstab", ... and I could get it to automount with the system up, and it would survive the first reboot, but it would NOT mount-at-boot after other consecutive reboots.?!

 

Instead, I ended up re-flashing "Armbian_24.11.1_Odroidc4_noble_current_6.6.60-kisak.img" on my emmc, and followed basically this below guide:
https://unix.stackexchange.com/questions/765721/trying-to-automatically-mount-a-usb-drive-on-debian-bookworm-when-connected
(see "1 Answer" in above link).

-I commented out|removed the "UUID=<output-of-bklid-for-sda1>   /media/USB01 ..." line in my /etc/fstab, since the "systemd-mount" command, triggered by the new udev rule, is now doing the heavy lifting.
The important thing is, I needed my USB-drive to survive reboots and to automount on boot, but before my network comes up, which it now does.

 I'm not exactly sure why this all works, and I still need to fine tune some "systemd-mount" options, ...

 

That said, years ago, on my x86_64-ubuntu-desktop, with "usbmount", lol, I remember simply having to add a line in my /etc/fstab and my USB-drive would automount on boot.

anyway, it appears systemd is everywhere these days, including mounting.
;)

I'll mark this as SOLVED.

Edited by rin
added info
  • rin changed the title to [SOLVED]: Odroid-C4 can not mount external USB drive via fstab on boot?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines