You are not logged in.

#1 2014-09-24 13:41:10

onslow77
Member
Registered: 2014-09-21
Posts: 279

[SOLVED] help with faulty fstab entry

Hello,

In my fstab i have this line:

# /dev/sdb2
UUID=1a357153-2c89-48ba-93ab-b483f55f0a64       /mys            ext4            rw,realtime,data=ordered        0 2

But on boot it makes the system halt and promting for go into maintanence mode. The directory /mys I have created as root, and then chown it to my normal user. I can mount the drive to the directory manual, but I would like it to be done atomatic at boot instead.

output of  # blkid for the faulty mount point is:

/dev/sdb2: UUID="1a357153-2c89-48ba-93ab-b483f55f0a64" TYPE="ext4" PARTUUID="56d402f0-a869-4167-ae31-5cb15845bd24"

The rest of my fstab look like this (faulty line commented out)

# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda2
UUID=0c2bf09f-6272-4548-898a-2e53a57cc3ce       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sda1
UUID=BF75-BDD9          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,$

# /dev/sda4
UUID=20df6ebb-a26b-46c3-9cbd-16a53d456177       /var            ext4            rw,relatime,data=ordered        0 2

# /dev/sda5
UUID=982ec0e5-4769-4c18-9c6a-7a6508aae967       /home           ext4            rw,relatime,data=ordered        0 2

# /dev/sda3
UUID=5c55a327-7260-4251-a5b8-acf54738443c       none            swap            defaults        0 0

# /dev/sdb2
# UUID=1a357153-2c89-48ba-93ab-b483f55f0a64       /mys            ext4            rw,realtime,data=ordered        0 2

# /dev/sdb1
UUID=08d02a30-685e-4849-a91a-e7c7c55d508b       none            swap            defaults        0 0

I dont understand what I have done wrong.

Regards
Martin

Last edited by onslow77 (2014-09-24 19:49:19)


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

#2 2014-09-24 13:56:54

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] help with faulty fstab entry

Try this:
- FS type: auto
- Options: defauls

This way it will (most probably) mount at boot. Then start changing back one thing at a time and see what you've done wrong.

Offline

#3 2014-09-24 13:59:00

KyleBytes
Member
Registered: 2014-08-15
Posts: 3

Re: [SOLVED] help with faulty fstab entry

Uncomment the /mys line from the fstab, and without rebooting the computer run "mount /mys" as root. That should automatically find the entry in fstab and the mount command will return an error if the mount fails. Hopefully that will give you some clues as to whats going on

Offline

#4 2014-09-24 14:05:30

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] help with faulty fstab entry

onslow77 wrote:

The directory /mys I have created as root, and then chown it to my normal user.

The empty directory should be owned by root; chown should be run after mounting the fs. Not sure if that's what you are implying or not.

That probably wouldn't cause the problem though. Did you check dmesg or journal for clues?

bstaletic wrote:

...
- Options: defauls

defaults not defauls

Last edited by alphaniner (2014-09-24 14:05:49)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2014-09-24 14:06:35

KyleBytes
Member
Registered: 2014-08-15
Posts: 3

Re: [SOLVED] help with faulty fstab entry

wait, found it! you have typed "realtime" instead of "relatime"

Offline

#6 2014-09-24 19:47:53

onslow77
Member
Registered: 2014-09-21
Posts: 279

Re: [SOLVED] help with faulty fstab entry

KyleBytes wrote:

wait, found it! you have typed "realtime" instead of "relatime"

Spot on, my disk mounts now just the way I whant -thank you very much KyleBytes. And also gratitude to alphaniner and bastaletic.

Regards
Martin


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

Board footer

Powered by FluxBB