LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2017, 07:19 PM   #1
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Rep: Reputation: Disabled
edited fstab to get one drive to automount at start up but then errors


on all the other drives.

example, added the last line to fstab

Code:
# /etc/fstab: static file system information.
#
# 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).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb8 during installation
UUID=14fc12a3-680f-4da7-84a4-c9f3664faa3d /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdb5 during installation
UUID=0db1fb5a-0727-4347-bfa7-a551d8db6632 /home           ext4    defaults        0       2
# swap was on /dev/sdb6 during installation
UUID=388b3c4a-93a3-473c-89ec-77e8688e5845 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
#automount for minidlna
UUID=1ca42e1a-c943-4755-b8e5-a9a6e91f4ed6 /media/scott           ext4    defaults        0       2
Then run sudo mount -a
It showed up as a mount under /media/scott ok.

Then on the files page, all the volumes which are drives give me this error.
in the screenshot
I just want to be ale to automount a drive and not have problems with the file manager
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-10-12 20-14-26.png
Views:	22
Size:	188.5 KB
ID:	26094  
 
Old 10-12-2017, 07:51 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I assume you have double-checked the UUID number.

It's a shot in the dark, but try changing "defaults" to "rw,user,auto."

If it works, great. If not and if the error message changes, we may make some progress.

Also, what is the output of ls -l /media/scott.
 
Old 10-12-2017, 09:17 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Some info. https://liquidat.wordpress.com/2013/...-need-to-know/
 
Old 10-13-2017, 12:24 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
please try to mount that drive in another location.
not under /media.
maybe under /mnt.
might also solve your other thread.
 
Old 10-13-2017, 12:58 PM   #5
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
I figured out some things.
I wanted 2 of the drives to automount at boot. I have total of 4 drives in the PC.
I got the 2 drives to automount, here is the code for fstab for me.

Plus, simply saving the fstab file causes it to mount or dismount when making changes in fstab. No need to run mount command. You can verify that by leaving the file manager window open to watch it.
Code:
#automount for minidlna
UUID=1ca42e1a-c943-4755-b8e5-a9a6e91f4ed6 /media/bob           ext4    defaults        0       2
UUID=263e8967-7eef-4dbd-8eb0-0ab1fcd1c41e /media/scott           ext4    defaults        0       2
And it also works ok with nautilus file manager. I dont know what caused those weird error messages on all those volumes.

I gave up trying to use uuid in the paths to the drives for Kaffeine and ME-TV and minidlna for the TV recordings.
With the drives automounted, at least on a boot up, minidlna server shares out the recorded files ok.

I had to make a /media/bob folder, I have 2 drives to automount and I could not think of another way to do that.
Would making a folder like, /media/scott/drive1 and /media/scott/drive2 have worked? Both drives can't go to the same mount point, like /media/scott.

Here are the scanned folders, I left one with a uuid which I dont use, just as an example of what not to do, plus this can be cleaned up too.
Code:
# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)
#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
#media_dir=/var/lib/minidlna
media_dir=/home/scott/Music
#media_dir=/home/scott/Kaffeine-recordings
media_dir=V,/media/bob/kaffeine-TV-recordings
media_dir=V,/media/scott
media_dir=/media/scott/0C3655E6635050E4

Last edited by sdowney717; 10-13-2017 at 01:06 PM.
 
Old 10-13-2017, 01:14 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
on my system, the /media folder is a special folder used by system utilities (fuse and others, i guess).
i would not use it to set up a mount.
 
Old 10-13-2017, 01:32 PM   #7
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
on my system, the /media folder is a special folder used by system utilities (fuse and others, i guess).
i would not use it to set up a mount.
I just followed examples of what I found on google searching, to use /media foder.
So can you use any folder. even make one in your home folder?
Like /home/scott/drive1
 
Old 10-13-2017, 03:08 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
The old way to mount was to create a sub-directory first then mount to that sub-directory. Permissions would have to be modified if the user doesn't have file based permissions.
 
  


Reply



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
edited /etc/fstab now the desktop doesn't come up Birdman48 Linux - General 6 08-21-2014 09:44 PM
[SOLVED] Edited crypttab and fstab, now system doesn't start. 1937 Linux - Newbie 3 05-04-2012 02:02 PM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
just edited fstab and quick question cjae Linux - Newbie 1 08-12-2005 01:24 PM
I edited my fstab for ntfs, I can open the drive, but no files xephyr Linux - Newbie 7 10-26-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 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