Problem with fstab [SOLVED]

Kernels & Hardware, configuring network, installing services

Problem with fstab [SOLVED]

Postby ckosloff » 2017-10-23 12:41

I wanted to avoid the repetition of entering root password for mounting my internal storage drive.
So i decided to edit fstab, I copied from output of blkid, here is the line:
/dev/sdb1: LABEL="Data" UUID="3477a04f-d073-46d9-8c7e-237012714900" TYPE="ext4"
computer starts OK but it is still asking for password.
Last edited by ckosloff on 2017-10-29 12:17, edited 1 time in total.
User avatar
ckosloff
 
Posts: 300
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: Problem with fstab

Postby 4D696B65 » 2017-10-23 13:24

/dev/sdb1: LABEL="Data" UUID="3477a04f-d073-46d9-8c7e-237012714900" TYPE="ext4"
Is not a properly formatted fstab line.
User avatar
4D696B65
 
Posts: 2018
Joined: 2009-06-28 06:09

Re: Problem with fstab

Postby ckosloff » 2017-10-23 14:33

So what is the proper formatting, please?
User avatar
ckosloff
 
Posts: 300
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: Problem with fstab

Postby MALsPa » 2017-10-23 15:43

See: https://wiki.debian.org/fstab

And, maybe this will help, although it's a different situation... My line in fstab for a storage partition on my hard drive looks like this:

Code: Select all
/dev/sda5     /mnt/sda5     ext3     defaults     0     2
MALsPa
 
Posts: 618
Joined: 2007-12-07 19:20
Location: albuquerque


Re: Problem with fstab

Postby andre@home » 2017-10-29 06:40

This works great at my place (Debian 8 )
Code: Select all
UUID=xxxxxxxxx-b1e4-4190-b263-yyyyyyyyyyyy /data/webdav1   ext4, user,auto     0       0
andre@home
 
Posts: 275
Joined: 2011-10-02 08:00

Re: Problem with fstab

Postby ckosloff » 2017-10-29 12:17

Thanks for all answers.
I looked in another computer for an fstab that works and solved.
first the UUID, then the mount point (easier to identify if there is a label). then follow the columns in the file itself i.e. type(ext4) , then defaults , 0, 2.
Thank you
User avatar
ckosloff
 
Posts: 300
Joined: 2011-12-29 15:08
Location: South Florida, USA


Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable