Posts: 156
caprea
Joined: 08 Jan 2014
#1
Hello,have been looking in forums for some days but don't find answer.
I can't mount my usb-flashes anymore.If I try with mount devices in antix cc or space-fm I get this error message

[mntent]: line 81 in / etc/fstab is bad
[mntent]: line 82 in / etc/fstab is bad
[mntent]: line 83 in / etc/fstab is bad
[mntent]: line 84 in / etc/fstab is bad
[mntent]: line 85 in / etc/fstab is bad; rest of file ignored
mount: can't find /dev/sdc in / etc/fstab or / etc/mtab


This is my fstab

# Pluggable devices are handled by uDev, they are not in fstab
UUID=e2d45790-5b00-4430-b47f-b9d8619d60d6 / auto defaults,noatime 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
UUID=f4f70f3f-84b8-42bc-9d76-32af2606d4e4 /media/sda1 ext4 noauto,users,exec,relatime 0 0
UUID=eb0d3053-9b21-456d-9159-bf487ba9dd51 swap swap sw,pri=1 0 0
UUID=20b7c6dc-a90b-4bcb-a18b-a31430a68bf6 /media/sda7 ext4 noauto,users,exec,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/cdrom1 /media/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr1 /media/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
noauto,exec,users,ro 0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
# Added by antiX
/dev/sda5 /media/sda5 ext4 noauto,exec,relatime,users 0 0
# Added by antiX
/dev/sda6 swap swap defaults 0 0
# Added by antiX
/dev/sda1 /media/sda1 ext4 noauto,exec,relatime,users 0 0
# Added by antiX
/dev/sda7 /media/sda7 ext4 noauto,exec,relatime,users 0 0
# Added by antiX
/dev/sdc /media/sdc vfat noauto,uid=1000,gid=users,dmask=002,fmask=113,relatime,users 0 0
# Added by antiX
/dev/cdrom /media/cdrom iso9660 noauto,exec,users,ro 0 0
# Added by antiX
/dev/cdrom1 /media/cdrom1 iso9660 noauto,exec,users,ro 0 0
# Added by antiX
/dev/cdrom2 /media/cdrom2 iso9660 noauto,exec,users,ro 0 0
# Added by antiX
/dev/cdrom3 /media/cdrom3 iso9660 noauto,exec,users,ro 0 0
# Added by antiX
/dev/dvd1 /media/dvd1 udf noauto,exec,users,ro 0 0
# Added by antiX
/dev/dvdrw1 /media/dvdrw1 udf noauto,exec,users,rw 0 0
# Added by antiX
/dev/sr0 /media/sr0 auto noauto,exec,users,ro 0 0
# Added by antiX
/dev/sr1 /media/sr1 auto noauto,exec,users,ro 0 0
# Added by antiX
/dev/sr2 /media/sr2 auto noauto,exec,users,ro 0 0
# Added by antiX
/dev/cdrw /media/cdrw iso9660 noauto,exec,users,rw 0 0
# Added by antiX
/dev/cdrw1 /media/cdrw1 iso9660 noauto,exec,users,rw 0 0
# Added by antiX
/dev/fd0 /media/fd0 auto noauto,exec,users,rw 0 0

What to do?
Thanks
Last edited by caprea on 14 Mar 2014, 01:22, edited 1 time in total.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Not sure how your fstab got like that, but remove everything below:

/dev/sr1 /media/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0

You might need to rename or remove etc/udev/rules,d/90-fstab-automount.rules.live

(90-fstab-automount.rules.live is the correct name, if you have anything different, rename/remove it)
Posts: 156
caprea
Joined: 08 Jan 2014
#3
Removing everything after the above line solved the problem.
But still have one question.
If I open etc/udev/rules,d/ I get 5 folders.
70-persistent-cd.rules
70-persistent-net.rules
90-fstab-automount.rules
90-fstab-automount.rules.live
90-usb-semiauto.rules

Is this o.k. ?
Thanks
Posts: 1,062
Dave
Joined: 20 Jan 2010
#4
Remove this one:
90-fstab-automount.rules
as you have a duplicate already disabled
so as root:
rm /_etc/udev/rules.d/90-fstab-automount.rules

and disable this one:
90-usb-semiauto.rules

so as root:
mv /_etc/udev/rules.d/90-usb-semiauto.rules /_etc/udev/rules.d/90-usb-semiauto.rules.unused

Keep in mind that you will need to remove the"_" as that is to get around a forum bug
Posts: 156
caprea
Joined: 08 Jan 2014
#5
First command worked ,but second I've got this

Code: Select all

root@freya:/home/helga# mv / etc/udev/rules.d/90-usb-semiauto.rules/ etc/udev/rules.d/90-usb-semiauto.rules.unused
mv: Fehlender Zieldatei‐Operand hinter „/ etc/udev/rules.d/90-usb-semiauto.rules/ etc/udev/rules.d/90-usb-semiauto.rules.unused“
„mv --help“ gibt weitere Informationen.
root@freya:/home/helga# 
Thank you for help.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
No spaces between / and etc
Posts: 156
caprea
Joined: 08 Jan 2014
#7
This I didn't forget .There was one space too little after the second"rules".
Now everything workes fine.
Have to say thank you again for the help of this community.