LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-14-2020, 07:11 PM   #1
bmxakias
Member
 
Registered: Jan 2016
Posts: 254

Rep: Reputation: Disabled
Question Can't auto mount a usb stick on restart


Hello

I have a usb stick that has exfat file system...

I am on Centos 7 and i already installed the exfat-fuse and exfat-utils and the drive is working great...

What i try to do for the auto mounting after restart is:

Code:
blkid
Then i got the correct (100%) UUID and i add to /etc/fstab :

Code:
UUID=12345678 /home/usbstick exfat defaults,auto,rw 0 0
but after restart the usb stick was not mounted and not even listed on the /dev/sd*

i unplug it and plug it back and it was ok....

But i want to avoid that...

Any ideas for the correct mount parameters or on what to do please?

I am login as root for all the above...

I was thinking also to use a simple bash script @reboot to run the mount command as that way the parameters are not needed but it will no work as the usb stick is not there and i have to reinsert it.

I tested also on another port but nothing...

Thank you

Last edited by bmxakias; 03-14-2020 at 07:13 PM.
 
Old 03-15-2020, 11:48 AM   #2
Gad
Member
 
Registered: May 2013
Distribution: Debian, FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
Try the following format. I use it to auto mount a separate partition on my HDD

# Data Partition
/dev/sda1 /media/%username%/Data ntfs user,errors=remount-ro 0 1

%username% will be the name of your user account
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop USB stick to mount automatically and mount it manually. gardenair Linux - Hardware 1 01-26-2011 10:04 PM
User auto mount USB stick (with ext3 partition) tonyfreeman Linux - Hardware 5 11-09-2008 02:12 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
How do you auto mount a USB memory stick ? KiwiPingu Linux - Newbie 1 07-29-2004 05:44 PM
Auto-login and auto-restart... TankerKevo Red Hat 2 10-04-2003 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration