LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2013, 10:46 PM   #1
sideburns05
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
auto mount network drives at start up


Hello all, I am having some trouble mounting 2 hard drives that i have attached to a WD TV. I have figured out how to manually mount them but i want them to mount at start up.
From what I gather this is done by editing the /etc/fstab. I have tried this and now have a problem at start up that asks if i want skip and resume start up.
Here is the fstab


UUID=1e09be8c 7edf-4075-bfd9-50c6241af506 / ext4 errors=remount-ro 0 1
UUID=fd6f8556-0698-4a18-a16a-e1aa8dbce849 none swap sw 0 0
//192.168.1.110/my_passport-1 /home/josh/my_passport-1 -o guest,rw
//192.168.1.110/my_passport /home/josh/may_passport -o guest,rw

Thanks in advance, and sorry if this question is beating a dead horse.
I forgot to mention that it said there is an error in line one. Not sure where though cause I didn't edit that as far I know.

Okay I've got it so the drives show up under devices but when I click on either one an error shows up saying only root can mount the drive

Last edited by sideburns05; 01-31-2013 at 11:09 PM.
 
Old 01-31-2013, 11:04 PM   #2
vl23
Member
 
Registered: Mar 2009
Posts: 125

Rep: Reputation: 8
Check out the man page for fstab, there is a number of things you are doing wrong.
 
Old 01-31-2013, 11:53 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
OK, let's go one-by-one:
Code:
UUID=1e09be8c 7edf-4075-bfd9-50c6241af506 / ext4 errors=remount-ro 0 1
You have probably accidentally edited this, but the UUID can't be correct, since it never contains spaces. To find out the correct UUID use the command
Code:
blockid
as root.

Code:
//192.168.1.110/my_passport-1 /home/josh/my_passport-1 -o guest,rw
 //192.168.1.110/my_passport /home/josh/may_passport -o guest,rw
These two do not work, because they are not in the correct format for the fstab file. The correct order looks like this:
Code:
WHAT_TO_MOUNT   WHERE_TO_MOUNT   FILESYSTEM   OPTIONS   DUMPFLAG   DUMPORDER
You can neglect the DUMPFLAG and DUMPORDER parts for network filesystems and just set them to 0.
I assume that your network shares are Samba or Windows shares, so the proper filesystem to use is cifs. Knowing this your entries in fstab should look like these:
Code:
//192.168.1.110/my_passport-1   /home/josh/my_passport-1   cifs   guest,rw   0   0
//192.168.1.110/my_passport     /home/josh/may_passport    cifs   guest,rw   0   0
 
Old 02-01-2013, 12:42 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, last 2 are dump-freq & fsck-order, in that order (sic).
 
Old 02-01-2013, 06:00 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by chrism01 View Post
Actually, last 2 are dump-freq & fsck-order, in that order (sic).
I never use those two, as I just never use dump. I got that info from the man-page of fstab and seem to have somehow mixed that up. Of course you are correct.
 
Old 02-01-2013, 06:41 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
No worries; never use them myself either (rarely have to add a new disk).
 
Old 02-01-2013, 07:53 AM   #7
sideburns05
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the inpu. I'll will try that when I get home and let you know
 
Old 08-13-2015, 06:31 AM   #8
moshebagelfresser
Member
 
Registered: Sep 2005
Location: Rishon Le Ziyyon Israel
Posts: 198

Rep: Reputation: 21
Press S to skip mounting or do it manually

I had this problem after formatting C:\ With Windows XP to install Windows 7, I had the problem of not being able to boot into Windows 7 at Grub and press S to skip mounting when booting to Linux Mint 17.2. To solve the problem of having to press S to skip mounting.

What I did was first I created a copy of /etc/fstab opening as Sudo and saved it where I could access it.

Secondly, as I have ntfs-config installed I deleted the duplicate reference to DISK C. On booting into Linux Mint, nfs-config informed it had found a new drive. I ticked the box and it was automatically mounted. Checking with the original copy of the fstab, most importantly I deleted the extra line. What really helped me was seeing in linuxquestion.org someone wrote every partition has a unique UUID and Linux distributions pick up on this as Disk Labels change.

Next, I opened Grub-Customizer, if you don't have it installed, install it! In Grub-Customizer I saw that it had a custom script for C instead of showing Windows 7 on SDB1 and os.probe. I created a new entry and it found the Windows 7 on SDB1 and duly had the line os.probe. I deleted the custom script, reset the default booting order I wanted: Success no delay in booting into either Linux Mint 17.2 or Windows Boot Loader.

Last edited by moshebagelfresser; 08-13-2015 at 06:33 AM.
 
  


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
How to auto mount USB drives in terminal sdfi Debian 2 11-04-2011 08:37 PM
Using OpenSuSE 11.3...how do I auto-mount my two optical drives? cbjhawks SUSE / openSUSE 1 03-21-2011 08:21 AM
auto mount removable drives mallyooh Slackware 6 05-09-2006 09:39 PM
removable drives don't auto mount paintitmatt Ubuntu 2 04-15-2005 01:14 PM
using autofs to auto mount my usb drives DesertWolf0132 Slackware 8 07-30-2004 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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