You are not logged in.

#1 2011-03-18 10:21:15

dandellion
Member
From: Belgrade
Registered: 2011-01-30
Posts: 9
Website

[SOLVED] bad line in /etc/fstab

I had a ntfs partition that was mounting just fine. Last night, I formated it to ext4 and changed the filesystem in the appropriate fstab line. Now it won't mount saying that it can't find the target folder.
Complete fstab is:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
/dev/sda2 / ext4 defaults 0 1
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /home ext3 defaults 0 1
/dev/sdb1 /muzika ext4 uid=1000 umask=0022 rw 0 0
# /dev/sda1 /blue ntfs-3g defaults 0 0

Error message is:

dandellion@umpah-pah:~$ sudo mount /muzika
[mntent]: line 10 in /etc/fstab is bad
mount: can't find /muzika in /etc/fstab or /etc/mtab

Needless to say, there is /muzika folder.

To get things really spicey if I type

dandellion@umpah-pah:~$ sudo mount /dev/sdb1 /muzika

it mounts OK.

Any ideas?

Last edited by dandellion (2011-03-18 11:36:18)

Offline

#2 2011-03-18 10:45:32

lives2evil
Member
From: GMT+7
Registered: 2010-03-21
Posts: 244

Re: [SOLVED] bad line in /etc/fstab

/dev/sdb1 /muzika ext4 uid=1000 umask=0022 rw 0 0

Try replace spaces between options with ','.

/dev/sdb1 /muzika ext4 uid=1000,umask=0022,rw 0 0

tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ

Offline

#3 2011-03-18 10:46:00

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: [SOLVED] bad line in /etc/fstab

you should probably use commas instead of spaces for mount options:
/dev/sdb1 /muzika ext4 uid=1000,umask=0022,rw 0 0

Edit: too slow tongue

Last edited by milomouse (2011-03-18 10:46:22)

Offline

#4 2011-03-18 11:01:16

dandellion
Member
From: Belgrade
Registered: 2011-01-30
Posts: 9
Website

Re: [SOLVED] bad line in /etc/fstab

Changed spaces with commas and got this:

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

dmesg | tail says:

[drm] nouveau 0000:02:00.0: DDC responded, but no EDID for VGA-1
[drm] nouveau 0000:02:00.0: Load detected on output C
i2c i2c-5: sendbytes: error -110
[drm] nouveau 0000:02:00.0: DDC responded, but no EDID for VGA-1
[drm] nouveau 0000:02:00.0: Load detected on output C
[drm] nouveau 0000:02:00.0: DDC responded, but no EDID for VGA-1
[drm] nouveau 0000:02:00.0: Load detected on output C
[drm] nouveau 0000:02:00.0: DDC responded, but no EDID for VGA-1
[drm] nouveau 0000:02:00.0: Load detected on output C
EXT4-fs (sdb1): Unrecognized mount option "uid=1000" or missing value

Offline

#5 2011-03-18 11:17:59

lives2evil
Member
From: GMT+7
Registered: 2010-03-21
Posts: 244

Re: [SOLVED] bad line in /etc/fstab

uid=1000 options is supposed to use with ntfs or fat partition.
ext4 have no such option.


tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ

Offline

#6 2011-03-18 11:24:11

dandellion
Member
From: Belgrade
Registered: 2011-01-30
Posts: 9
Website

Re: [SOLVED] bad line in /etc/fstab

Yup, that's it!
Thanks.

Offline

#7 2011-03-18 11:33:51

pablokal
Member
From: Nijmegen, Holland
Registered: 2010-03-07
Posts: 96
Website

Re: [SOLVED] bad line in /etc/fstab

deleted

Last edited by pablokal (2011-03-18 11:38:01)


GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/

Offline

Board footer

Powered by FluxBB