Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Best way for automounting external USB drive(s) (no replies)

$
0
0
Hi again - I started a new thread since - really the initial issue is SOLVED!!
https://forum.doozan.com/read.php?3,95949,95949#msg-95949

Thanks for all your help.

To refresh - I have a PogoPlug Pro running Linux debian 4.4.54-oxnas

Now moving on to my current question and learning experience. I am trying to find a way to automatically mount some of my normal USB hard drives. I'd like to get it to be able to auto start and mount upon powerup - like able to run right through a power outage when the power comes back.

I have 1 everyday external hard drive. Then I have 3 other drives that I would like to be able to plug in when I need that data - power cycle and have them auto mounted. I have created directories for them all under /media/ and configured that inside smb.conf as well.

As Bodhi suggested (Thanks!) I installed autofs

Then added this to auto.misc
hammer          -fstype=vfat,rw,uid=1000    :UUID="14F6-3A66"


"hammer" is my everyday drive and I just started with that one.

Then added this line in auto.master
/media  /etc/auto.misc


I also updated fstab to boot the root filesystem by UUID
# <file system>        <dir>         <type>    <options>             <dump> <pass>
UUID=8783521b-738e-4ddf-81a7-c262e09af0e4              /             ext3      noatime,errors=remount-ro              0
      1


But now I get a boot loop/failure - not sure the real terminology - but the PogoPlug light goes Green, then blinking green followed by slow blink amber… then seems to repeat like it is in a boot loop…

Still reading up but any pointers are greatly appreciated!!

Viewing all articles
Browse latest Browse all 3247

Trending Articles