mount über fstab geht nicht mehr !

sono

sono

Sack Flöhe Hüter
Morgen.

Ich kann meine platten nicht mehr per mount /dev/hdc mounten.
Aufeinmal bekomme ich nur noch die Meldungen :

solap:/home# mount /dev/sda1
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
solap:/home# mount /dev/sda1
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems

Egal was in der fstab steht. !!

Ich kann allerdings noch mounten wenn ich den mountort angebe aber dann sind die platten für user nicht mal lesbar und ich kann nur als root darauf zugreife ! X(
 
Die ist so wie immer die ging die ganze zeit aber ich poste sie trotzdem mal .

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1/dev/hda3 none swap sw 0 0
/dev/hda5 /home/winsys ntfs ro,auto,dmask=0222,fmask=0333
0 0
/dev/hda6 /home/winhome vfat auto,dmask=0000,fmask=0000
0 0
/dev/hdc /media/cdrom0 iso9660 ro,user=sono,auto 0 0

#Externe Platten Die 200er am oberen Steckplatz

/dev/sda1 /home/ntfs200 ntfs usesr,ro,dmask=0222,fmask=0333
0 0
/dev/sda2 /home/fat200 vfat users,dmask=0000,fmask=0000
0 0
/dev/sdb1 /home/fat160 vfat users,dmask=0000,fmask=0000
0 0
 
Code:
/dev/sda1 /home/ntfs200 ntfs [B]usesr[/B],ro,dmask=0222,fmask=0333
0 0

Ist das ein Schreibfehler oder steht das so wirklich in der fstab???
 
sono schrieb:
Die ist so wie immer die ging die ganze zeit aber ich poste sie trotzdem mal .

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1/dev/hda3 none swap sw 0 0
/dev/hda5 /home/winsys ntfs ro,auto,dmask=0222,fmask=0333
0 0
/dev/hda6 /home/winhome vfat auto,dmask=0000,fmask=0000
0 0
/dev/hdc /media/cdrom0 iso9660 ro,user=sono,auto 0 0

#Externe Platten Die 200er am oberen Steckplatz

/dev/sda1 /home/ntfs200 ntfs usesr,ro,dmask=0222,fmask=0333
0 0
/dev/sda2 /home/fat200 vfat users,dmask=0000,fmask=0000
0 0
/dev/sdb1 /home/fat160 vfat users,dmask=0000,fmask=0000
0 0

Ist das rote ein tippfehler, oder wirklich so in deiner fstab?
users = bedeutet, dass alle user diese hdd umounten dürfen.
ich würde mal folgendes in deiner fstab ändern:

/dev/sda1 /home/ntfs200 ntfs users,ro,umask=0222,noexec,nls=utf8 0 0
/dev/sda2 /home/fat200 vfat rw,users,umask=0000,quiet 0 0
/dev/sdb1 /home/fat160 vfat rw,users,umask=0000,quiet 0 0

Überall wo du dmask und fmask gleich setzt, kannst du gleich umask verwenden.
Das ist aber nicht der Fehler, sondern eher das fehlende rw bzw der Dreher und der fehlende Zeilenumbruch in /dev/hda2
Hoffe das sind die Fehler und du kannst es damit beheben.
Was sagt denn
fdisk - l
Gruß Wolfgang
 
Ok das eine Stand echt falsch in der fstab.

Und danke für den tipp wie ich das besser machen kann. Hab das direkt mal in meine fstab übertragen.

Nur leider bekomme ich immernoch diesebe fehlermeldung beim mounten.
Irgendwas muss beim letzen dist-upgrade schief gelaufen sein.
 
Nächstes Porblem, ich bekomme immer die Meldung ich müsste Superuser sein um meine Laufwerke mounten zu dürfen .

Aber ich hab doch users stehen , da passt doch was nicht .
 
Versuche mal die uid zu setzen.

/dev/sda2 /home/fat200 vfat auto,rw,users,uid=deineuserid 0 0
/dev/sdb1 /home/fat160 vfat auto,rw,users,uid=deineuserid 0 0

Mit dieser Einstellung mounten meine Festplatten ohne Probleme.
 
Hallo

Du musst natürlich root sein, um mounten zu können.
Das users bezieht sich auf die Erlaubnis die Partition zu umounten
man mount
...
Normally, only the superuser can mount file systems. However,
any user can mount the iso9660 file system found on his CDROM using the
For more details, see fstab(5). Only the user that mounted a filesys-
tem can unmount it again. If any user should be able to unmount, then
lar to the user option, with the restriction that the user must be the
login script makes the console user owner of this device. The group
option is similar, with the restriction that the user must be member of
ing with the loop device will be less convenient, and using the "user"
The auto type may be useful for user-mounted floppies. Creating
group Allow an ordinary (i.e., non-root) user to mount the file
nosuid Do not allow set-user-identifier or set-group-identifier....


Hast du mal versucht die Partitionen als root aus der shell zu mounten?
Beispiel die /home/fat200 ist nicht gemauntet und du willst das zu Fuß machen:
su
dann als root:

mount /dev/sda2 /home/fat200 -tvfat -orw,users,umask=0000,quiet
Welche Partitionen gemountet sind bekommst du mit:
mount -l raus.
Die gesamte fstab neu einlesen mit
mount -a
Es lohnt sich mal in die man mount zu sehen ;)

Gruß Wolfgang
 
kommt zwischen -t und vfat nicht noch ein leer zeichen genauso bei -o ???

~wurmus~
 
OK das mit den mountoptionen kenne ich , das ich gar nicht das Problem.

Ich weiß nur das es gehen kann / muss das man auch als user aus der shell mounten kann.
Das mit dem umount is neu erklärt aber einiges .

die uid und gid hatte ich sogar bis gestern drin, das hat am mountverhalten bei mir allerdings nicht viel bewirkt.

Ich weiß dass es ein tool gibt das angeblich wenn installiert dem user das recht gibt zu mounten. das hatte ich drauf aber dann ging aufeinmal gar nichts mehr so mit dem mounten , dann hab ichs wieder gekillt.

Vermute auch dass das das Ursprüngliche Problem von heute morgen war.
 
was sagen bei dir 'ls -l /dev/hdc' bzw. 'ls -l /dev/sda1'
... und das filesystem muss bekannt sein ... cat /proc/filesystems ... wenn das modul nicht geladen ist (oder wenn es im kernel nicht fest einkompiliert ist) geht's nicht.
 
wurmus schrieb:
kommt zwischen -t und vfat nicht noch ein leer zeichen genauso bei -o ???

~wurmus~

:) Da ist ein solches vorhanden, wenn du mal genau nachschaust. ;)

Zum Rest der Frage.
Schau dir mal die Optionen an
man mount
...
...
For more details, see fstab(5). Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount, then use users instead of user in the fstab line. The owner option is similar to the user option, with the restriction that the user must be the owner of the special file. This may be useful e.g. for /dev/fd if a login script makes the console user owner of this device. The group option is similar, with the restriction that the user must be member of the group of the special file.
....

nouser
Forbid an ordinary (i.e., non-root) user to mount the file system. This is the default.
owner
Allow an ordinary (i.e., non-root) user to mount the file system if he is the owner of the device. This option implies the options nosuid and nodev (unless overridden by subsequent options, as in the option line owner,dev,suid)....


Gruß Wolfgang
 
so schauts in meiner fstab aus (und funkt auch das der user mounten kann)

/dev/hdb5 /mnt/hdb5 vfat rw,noauto,user 0 0

also user statt users...
 
For more details, see fstab(5). Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount, then use users instead of user in the fstab line. The owner option is similar to the user option, with the restriction that the user must be the owner of the special file. This may be useful e.g. for /dev/fd if a login script makes the console user owner of this device. The group option is similar, with the restriction that the user must be member of the group of the special file.
....

nouser
Forbid an ordinary (i.e., non-root) user to mount the file system. This is the default.
owner
Allow an ordinary (i.e., non-root) user to mount the file system if he is the owner of the device. This option implies the options nosuid and nodev (unless overridden by subsequent options, as in the option line owner,dev,suid)....

Also sollte man doch als user mounten können .
Und ich hab noch die ganze Zeit überlegt was ich auf meinem Server anderst habe wiel ich da nämlich als user mounten kann.

und da hab ich dieselbe fstab. also einen identischen aufbau.
 
Grober Denkfehler:

versuch mal

mount /home/ntfs2000

Also nicht das Device, sondern den Mount-Point
 
sono@solap:~$ mount /home/fat160
mount: must be superuser to use mount
sono@solap:~$ mount /home/fat160
mount: must be superuser to use mount
sono@solap:~$ mount /home/fat160
mount: must be superuser to use mount
sono@solap:~$ mount /home/fat200
mount: must be superuser to use mount
sono@solap:~$ mount /home/ntfs200/
mount: must be superuser to use mount
sono@solap:~$ mount /home/fat160/
mount: must be superuser to use mount
sono@solap:~$
 
Zweite Möglichkeit, könnte dieses hier sein:
...
When the proc filesystem is mounted (say at /proc), the files /etc/mtab and /proc/mounts have very similar con-
tents. The former has somewhat more information, such as the mount options used, but is not necessarily up-to-
date (cf. the -n option below). It is possible to replace /etc/mtab by a symbolic link to /proc/mounts, and
especially when you have very large numbers of mounts things will be much faster with that symlink, but some
information is lost that way, and in particular working with the loop device will be less convenient, and using
the "user" option will fail.
...

Schau mal nach, ob /etc/mtab eine reguläre Datei oder ein Link ist.
Was noch eine Mögliche Lösung ist:
Erstelle ein Startscript, welches die entsprechenden user als owner ( chown) der entsprechenden Gerätedateien macht.
Spätestens dann sollte die Option owner funktionieren.

Gruß Wolfgang

PS Ach ja , wir sind doch hier im Debian/Ubuntu. Hab ich da was falsch verstanden, dass es keine SyZe ist? :D :think:
 
Folgende Zeile für eine VFAT-Partition tuts bei mir:

/dev/hdaX /hierhin vfat user,noauto,exec,umask=022 0 0

Welcher Gruppe gehören /dev/sda*?
Bist Du in der Gruppe?
Wem gehört der mount-Punkt?
Welche Berechtigungen sind für fstab und mtab gesetzt?
Ist das Modul vfat geladen oder die Unterstützung im Kernel?
 

Ähnliche Themen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Raid-1 einrichten

Medien mounten

squashfs 4.0 mounten

Akonadi startet nicht mehr

Zurück
Oben