Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Please correct my fstab [SOLVED]

Need help with peripherals or devices?
Post Reply
Message
Author
User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Please correct my fstab [SOLVED]

#1 Post by ckosloff »

#

Code: Select all

 /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/sda1 during installation
UUID=d3d3d099-2fc0-4c08-ad45-ac11b626f0f8 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda3 during installation
UUID=1d101b5b-ac69-4afa-a86d-6f538edd9461 /home           ext4    defaults        0       2
# swap was on /dev/sda2 during installation
UUID=5130e73e-6a69-4612-bdd2-5eba05cdb008 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
UUID="3477a04f-d073-46d9-8c7e-237012714900" 		  ext4    defaults	0	0
This is my fstab, the last entry refers to an additional hardrive sdb1, which used to mount seamlessly until I had to reinstall system, now it requests root password.
Computer boots OK, the UUID i got from command blkid, but something is missing in that entry.
Please help.
Last edited by ckosloff on 2019-07-20 12:39, edited 1 time in total.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: Please correct my fstab

#2 Post by cds60601 »

Looks like the line is missing a mount point.
Supercalifragilisticexpialidocious

User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: Please correct my fstab

#3 Post by ckosloff »

This drive has label Data, should I add /Data?

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: Please correct my fstab

#4 Post by cds60601 »

The mount point is up to you. You will notice that other line show a mount point such as /home, / and so on

Here is a nice readup

https://wiki.archlinux.org/index.php/Fstab
Supercalifragilisticexpialidocious

User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: Please correct my fstab

#5 Post by ckosloff »

# /etc/fstab: static file system information.

Code: Select all

#
# 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/sda1 during installation
UUID=d3d3d099-2fc0-4c08-ad45-ac11b626f0f8 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda3 during installation
UUID=1d101b5b-ac69-4afa-a86d-6f538edd9461 /home           ext4    defaults        0       2
# swap was on /dev/sda2 during installation
UUID=5130e73e-6a69-4612-bdd2-5eba05cdb008 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
UUID="3477a04f-d073-46d9-8c7e-237012714900" 		  ext4    defaults	0	0
/dev/sdb1     /media/ckosloff/Data
It worked, this is my new fstab.
I got mount point by mounting after root password and then right-cliking on address bar in Dolphin file manager, select Edit, which revealed the actual mount point.
Thank you.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Please correct my fstab

#6 Post by Head_on_a_Stick »

ckosloff wrote:I got mount point by mounting after root password and then right-cliking on address bar in Dolphin file manager, select Edit, which revealed the actual mount point.
You have used a mount point employed by udisks2 for auto-mounting so you should probably choose a different one. And maybe fill in the other fields as well:

Code: Select all

grep sdb1 /proc/self/mounts
Using /dev/sdb1 in /etc/fstab is unwise because the block devices are assigned dynamically and so change from one boot to the next, this is why the other entries use UUIDs instead.
deadbang

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: Please correct my fstab [SOLVED]

#7 Post by cds60601 »

I agree with HoaS. The mount point should come after your uuid for that drive. Note the lines above for / and /home

So your line would look something like this

UUID=3477a04f-d073-46d9-8c7e-237012714900 /media/ckosloff/Data ext4 defaults 0 0
Supercalifragilisticexpialidocious

User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: Please correct my fstab [SOLVED]

#8 Post by ckosloff »

I corrected fstab once again according to latest suggestions and of course it worked.
It is indeed the correct way to do it and it reproduces the syntax used by system upon install.
Thanks for all the help.

Post Reply