Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Read-Only Filesystem bei Vfat-Partitionen!?!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Vecha
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2004
Posts: 80
Location: RT Germany

PostPosted: Mon Aug 16, 2004 6:27 pm    Post subject: Read-Only Filesystem bei Vfat-Partitionen!?! Reply with quote

Ich hab ein ganz großes Problem,

ich habe 5 FAT32-Partitionen, die ursprünglich (und immernoch) für WinXP gedacht waren.
wenn ich boote, werden alle Partitionen nach /data/windows gemeountet --> also /data/windows/D, /data/windows/F .. usw.

bisher hat alles wunderbar funktioniert, nur seit neuestem kann ich meistens nicht mehr Daten dort abspeichern ...

ich arbeite überwiegend mit dem konqueror, wobei ich auch schon gedacht hab, das liegt an dem - aber geht ja net, denk ich o_O
fehler beim konqueror:
Could not make folder /data/windows/F/Dokumente & Präsentationen/ ..blubb

in der shell sieht das dann so aus:
Code:
vecha@sternchen:/data/windows/F > mkdir test
mkdir: cannot create directory `test': Read-only file system

root@sternchen /data/windows/F> mkdir test
mkdir: cannot create directory `test': Read-only file system


wenn ich /data/windows/F dann unmounte und wieder mounte, gehts meistens wieder, allerdings lässt sich das oft nicht machen weil dann die Meldung kommt 'Device busy' wobei das eigentlich nicht der Fall ist :(
Code:
root@sternchen /data/windows> umount /data/windows/F/
umount: /data/windows/F: device is busy
umount: /data/windows/F: device is busy
root@sternchen /data/windows>


Meine fstab sieht so aus:
Code:
#EDIT

/dev/hdc5                       /                               ext3            noatime                                 0 0
/dev/hdc1                       /boot                           ext2            noauto,noatime                          1 2
/dev/hdc2                       none                            swap            sw                                      0 0

/dev/hdb                        /mnt/dvdrom                     iso9660         user,unhide,noauto                      0 0
/dev/sr0                        /mnt/cdrw                       iso9660         user,unhide,defaults,noauto,ro,exec     0 0
/dev/fd0                        /mnt/floppy                     auto            noauto,user                             0 0

none                            /proc                           proc            defaults                                0 0
none                            /proc/sys/fs/binfmt_misc        binfmt_misc     defaults                                0 0
none                            /dev/shm                        tmpfs           defaults                                0 0     

/dev/hdc4                       /data                           ext3            defaults                                0 0
/dev/hdd1                       /data/windows/C                 vfat            rw,uid=1000,gid=35,umask=007            0 0
/dev/hdd6                       /data/windows/E                 vfat            rw,uid=1000,gid=35,umask=007            0 0
/dev/hdd5                       /data/windows/D                 vfat            rw,uid=1000,gid=35,umask=007            0 0     
/dev/hdd7                       /data/windows/F                 vfat            rw,uid=1000,gid=35,umask=007            0 0
/dev/hdd8                       /data/windows/G                 vfat            rw,uid=1000,gid=35,umask=007            0 0

luna:/data                      /data/luna                      nfs             auto,timeo=30                           0 0
luna:/usr/portage/distfiles     /usr/portage/distfiles          nfs             auto,timeo=30                           0 0     

~                                                                                                                                     
~


ich bin echt ratlos, kann mir da bitte jemand helfen!? ich bin nur noch am rummounten *seufz*


Last edited by Vecha on Mon Aug 16, 2004 6:38 pm; edited 3 times in total
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Mon Aug 16, 2004 6:29 pm    Post subject: Reply with quote

Poste mal die Ausgabe von mount und deine /etc/fstab.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Aug 16, 2004 6:29 pm    Post subject: Reply with quote

wie mountest du die partitionenen? mit einträgen in /etc/fstab? wenn ja, dann poste doch mal den inhalt.

gruss

steve
Back to top
View user's profile Send private message
Vecha
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2004
Posts: 80
Location: RT Germany

PostPosted: Mon Aug 16, 2004 6:37 pm    Post subject: Reply with quote

Sorry, ich hatt net gesehn, dass schon jemand geantwortet hat ..

Hab meinen Eintrag noch editiert - jetzt müsst alles nötige drin stehn
Back to top
View user's profile Send private message
Jlagreen
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 211
Location: Baden-Württemberg, Germany

PostPosted: Mon Aug 16, 2004 6:42 pm    Post subject: Reply with quote

Hi,

kann dir zwar nicht direkt helfen, aber mit diesen optionen funzt es einwandfrei (hab es 1:1 aus dem forum) und da hast mit jedem user schreib-/lese-zugriff

in der fstab
Code:

/dev/hda5          /mnt/Downloads          vfat         auto,rw,umask=000,user     0 0

_________________
Aktuelle Sys:
Dektop System
--> GF6800LE @ 12p/6v @ 415/900
-- >Think Linux, use Gentoo
Back to top
View user's profile Send private message
Vecha
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2004
Posts: 80
Location: RT Germany

PostPosted: Mon Aug 16, 2004 6:57 pm    Post subject: Reply with quote

also das mit dem lese-schreib-zugriff werd ich probieren - müsst nur erstmal die platte ungemountet kriegen o_O


meine Mount-Ausgabe übrigens:
Code:
root@sternchen /data/windows> mount
/dev/hdc5 on / type ext3 (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdc4 on /data type ext3 (rw)
/dev/hdd1 on /data/windows/C type vfat (rw,uid=1000,gid=35,umask=007)
/dev/hdd6 on /data/windows/E type vfat (rw,uid=1000,gid=35,umask=007)
/dev/hdd5 on /data/windows/D type vfat (rw,uid=1000,gid=35,umask=007)
/dev/hdd8 on /data/windows/G type vfat (rw,uid=1000,gid=35,umask=007)
none on /proc/bus/usb type usbfs (rw)
luna:/usr/portage/distfiles on /usr/portage/distfiles type nfs (rw,timeo=30,addr=192.168.1.2)
luna:/data on /data/luna type nfs (rw,timeo=30,addr=192.168.1.2)
/dev/sr0 on /mnt/cdrw type iso9660 (ro,nosuid,nodev,unhide)
/dev/hdd7 on /data/windows/F type vfat (rw,uid=1000,gid=35,umask=007)
root@sternchen /data/windows>
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Mon Aug 16, 2004 7:23 pm    Post subject: Reply with quote

tipp:
mit lsof kannst du rauskriegen welcher prozess wo tätig ist. :)
ansonsten mit "umount -l /dev/bla"
Code:
-l     Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all  references  to
              the filesystem as soon as it is not busy anymore.  (Requires kernel 2.4.11 or later.)

_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel


Last edited by equinox0r on Mon Aug 16, 2004 7:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Vecha
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2004
Posts: 80
Location: RT Germany

PostPosted: Mon Aug 16, 2004 7:24 pm    Post subject: Reply with quote

So .. ich hab die fstab nun mal nur für die F-Partition umgeschrieben.

Meine aktuelle Mount-Ausgabe sieht jetzt so aus:
Code:
root@sternchen /data/windows> mount
/dev/hdc5 on / type ext3 (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdc4 on /data type ext3 (rw)
none on /proc/bus/usb type usbfs (rw)
luna:/usr/portage/distfiles on /usr/portage/distfiles type nfs (rw,timeo=30,addr=192.168.1.2)
luna:/data on /data/luna type nfs (rw,timeo=30,addr=192.168.1.2)
/dev/sr0 on /mnt/cdrw type iso9660 (ro,nosuid,nodev,unhide)
/dev/hdd7 on /data/windows/F type vfat (rw,noexec,nosuid,nodev,umask=000)
root@sternchen /data/windows>


Es hat leider überhaupt nichts gebracht :(
wenn ich frisch mounte, funktionierts und dann kaum dass ich irgendwie wieder (mit dem Konqueror) auf der Platte ein Verzeichnis erstellen will, kommt wieder der Fehler und in der Shell danach genauso:

Code:
root@sternchen /data/windows/F> mkdir test
mkdir: cannot create directory `test': Read-only file system
root@sternchen /data/windows/F> cd ..
root@sternchen /data/windows> umount F/   
umount: /data/windows/F: device is busy
umount: /data/windows/F: device is busy
root@sternchen /data/windows>


*seufz*
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Aug 16, 2004 7:30 pm    Post subject: Reply with quote

du hast "user" in den options vergessen!

gruss

steve
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2935
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Aug 16, 2004 7:35 pm    Post subject: Reply with quote

Wenn du die FAT Partitionen nicht selber mountest, dann kann der Benutzer auf sie niht schreiben. Also du Benutzer der die FAT Partition benutzen will, (zum Schreiben) muss selber mountieren.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Vecha
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2004
Posts: 80
Location: RT Germany

PostPosted: Mon Aug 16, 2004 7:40 pm    Post subject: Reply with quote

Code:
/dev/hdc5                       /                               ext3            noatime                                 0 0
/dev/hdc1                       /boot                           ext2            noauto,noatime                          1 2
/dev/hdc2                       none                            swap            sw                                      0 0

/dev/hdb                        /mnt/dvdrom                     iso9660         user,unhide,noauto                      0 0
/dev/sr0                        /mnt/cdrw                       iso9660         user,unhide,defaults,noauto,ro,exec     0 0
/dev/fd0                        /mnt/floppy                     auto            noauto,user                             0 0

none                            /proc                           proc            defaults                                0 0
none                            /proc/sys/fs/binfmt_misc        binfmt_misc     defaults                                0 0
none                            /dev/shm                        tmpfs           defaults                                0 0     

/dev/hdc4                       /data                           ext3            defaults                                0 0
/dev/hdd1                       /data/windows/C                 vfat            rw,uid=1000,gid=35,umask=007            0 0
/dev/hdd6                       /data/windows/E                 vfat            rw,uid=1000,gid=35,umask=007            0 0
/dev/hdd5                       /data/windows/D                 vfat            rw,uid=1000,gid=35,umask=007            0 0     

/dev/hdd7                       /data/windows/F                 vfat            auto,rw,umask=000,user                  0 0

#/dev/hdd7                      /data/windows/F                 vfat            rw,uid=1000,gid=35,umask=007            0 0
/dev/hdd8                       /data/windows/G                 vfat            rw,uid=1000,gid=35,umask=007            0 0

luna:/data                      /data/luna                      nfs             auto,timeo=30                           0 0
luna:/usr/portage/distfiles     /usr/portage/distfiles          nfs             auto,timeo=30                           0 0


So sieht die fstab derzeit aus ... das user steht drin hinter umask=000 :(

@pablo: ich bin noch ziemlich laie, was genau willst du mir sagen?
Soll ich die Partition jedesmal als User mounten!? geht das!??
das ist aber voll der Act ...
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Mon Aug 16, 2004 7:42 pm    Post subject: Reply with quote

ich glaub er will sagen, dass der user der auf die platte zugreifen möchte diese auch mounten muss...
durch die fstab wird eine partition von root gemounted, ich weiss aber nicht ob vfat partitionen sich wirklich daran stören ... *nicht weiter drüber nachdenk* ;)
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2935
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Aug 16, 2004 7:44 pm    Post subject: Reply with quote

Ich hatte früher 3 FAT Partitionen, heute habe ich keine, vielleicht ist es deshalb heute ein bisschen anderes.

Angenommen, ich hab den Benutzer rex

rex will in diese FAT Partition schreiben (d.h. Dateien ändern, löschen, anlegen) und das geht nur, wenn rex selber die Partition mountiert hab. Wenn ich als root diese Partition mountiert hätte, dann kann rex lesen, aber nicht schreiben.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Vecha
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2004
Posts: 80
Location: RT Germany

PostPosted: Mon Aug 16, 2004 7:49 pm    Post subject: Reply with quote

Hmm ..
das ist seltsam, da ich grundsätzlich als root mounte und dann gehts ja ne Weile.

ich hab eher das Gefühl dass das womöglich mit dem Konqueror zusammen hängt, weil ich in ner Shell direkt nach dem mounten auch DIRs erstellen kann.

Code:
root@sternchen /data/windows> umount F/
root@sternchen /data/windows> mount F/
root@sternchen /data/windows> exit
vecha@sternchen:/data/windows > cd F/
vecha@sternchen:/data/windows/F > mkdir test
vecha@sternchen:/data/windows/F >


Und kaum dass ich mit dem Konqueror auf die F-Platte geh und mein Verzeichnis erstellen will, sagt der halt wieder, dass es net geht ..

Außerdem gings ja bisher auch ohne Probleme, ich hab das mit dem Mounten in der fstab ja schon ne ganze Weile so und die Fehler sind einiges jünger ...
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Mon Aug 16, 2004 7:49 pm    Post subject: Reply with quote

Vecha wrote:
das ist aber voll der Act ...

probiers mal damit .. das trägst in deine ~/.profile oder ~/.bashrc ein:
Code:
mount | grep -q "/dev/hdd7" || mount -t vfat -o auto,rw,umask=000,user /dev/hdd7 /data/windows/F

das mountet immer dann wenn in der ausgabe von mount das device nicht gefunden wurde :)
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Mon Aug 16, 2004 10:39 pm    Post subject: Reply with quote

die sache mit der mountoption "user" .. die wird generell nicht angezeigt oder?
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
Wildhoney
n00b
n00b


Joined: 08 Mar 2003
Posts: 66
Location: Germany

PostPosted: Tue Aug 17, 2004 6:52 am    Post subject: Reply with quote

Mal ein schuss in Blaue, benutzt du einen 2.6.7 Kernel? da ist naemlich vfat broken, einfach kernel upgraden und dann sollte es das gewesen sein mit dem read only access.

Wild
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Tue Aug 17, 2004 1:45 pm    Post subject: Reply with quote

hm..

ich benutze auch einen 2.6.7er kernel, meine vfat partition macht aber keine mucken ...
ich werd meinen kernel aber vorsichtshalber updaten, @Vecha vielleicht hilfts dir ja :)
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
redflash
Apprentice
Apprentice


Joined: 17 Oct 2003
Posts: 213
Location: Germany

PostPosted: Wed Aug 18, 2004 1:25 pm    Post subject: Reply with quote

schau mal in /var/log/messages
Ich hatte unterm 2.6.7er kernel das problem, dass er nach kurzer zeit die vfat partition in read-only gewechselt hat weil er fehler im dateisystem gefunden hat.
wenn der 2.6.7er ein vfat fehler hat, dann dürfte es daran liegen. ich habe damals einfach auf ext3 gewechselt.
Back to top
View user's profile Send private message
moe
Veteran
Veteran


Joined: 28 Mar 2003
Posts: 1289
Location: Potsdam / Germany

PostPosted: Wed Aug 18, 2004 11:42 pm    Post subject: Reply with quote

Ich hatte gerade auch so ein Problem mit dem 2.6.8-rc3 Kernel, bei mir hat dmesg mir erzählt, dass ich beim Mounten codepage und iocharset angeben muss. Mit
Code:
mount -t vfat -o rw,codepage=850,iocharset=iso8859-1 /bla /bla
gings dann. Ist das jetzt neu und immer so?

Gruss Maurice
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Wed Aug 18, 2004 11:46 pm    Post subject: Reply with quote

ich glaub ich hab da was im changelog vom 2.6.8.1er kernel gelesen ... such da mal nach fat oder vfat .. wirst sicher fündig ;)
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Thu Aug 19, 2004 6:45 am    Post subject: Reply with quote

Du sagst, wenn du in der Shell mountest und dann Verzeichnisse erstellst etc., funktionierts, nur wenn du das via Konqueror machst, nicht? Du hast wahrscheinlich so ein Icon am Desktop, wenn du draufklickst, wird das Gerät eingebunden, ja? Vielleicht hast du in den Optionen zu diesem Icon "Nur lesen" angewählt?
my 2¢
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Vecha
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2004
Posts: 80
Location: RT Germany

PostPosted: Sun Sep 12, 2004 9:11 am    Post subject: Reply with quote

mit dem konqueror hat das nix zu tun - ich hab au keine icons aufm desktop ;) ..

nein, ich glaub, der fehler liegt tatsächlich an der hardware. ich hab ein fsck.vfat auf die platte gemacht und er hat haufenweise cluster-fehler gefunden, diese dann behoben und dann waren die probleme weg .. naja ne zeitlang zumindest :(
das problem taucht weiterhin immer wieder auf, aber nach nem filesystem-check ist's ne weile ruhig.

ich werd jetzt mal die ganzen daten woanders sichern und die platte nochmal platt machen - mal schauen was der dann meint.

danke für die hilfe@all :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum