Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB-Stick: merkwürdiges Verhalten ...
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
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2616
Location: Konradsreuth (Germany)

PostPosted: Sat May 14, 2005 2:55 pm    Post subject: USB-Stick: merkwürdiges Verhalten ... Reply with quote

Hallo allerseits!

Ich hab mir gerade einen USB-Stick gekauft. Der funktioniert auch, aber er verhält sich merkwürdig:

in meiner /etc/fstab habe ich folgenden Eintrag:
Code:
/dev/sda1               /media/usb              auto            noauto,user             0 0

Über "mount /media/usb/" kann ich (als User) problemlos meine Digicam einhängen. Bei dem Stick funktioniert das aber komischerweise (zunächst) nicht:
Code:
tobias@gentoo / $ mount /media/usb/
mount: Gerätedatei /dev/sda1 existiert nicht

Auch als root nicht:
Code:
gentoo / # mount /media/usb/
mount: Gerätedatei /dev/sda1 existiert nicht

Wenn ich aber als root folgendes mache:
Code:
gentoo / # mount /dev/sda /media/usb/
mount: Sie müssen den Dateisystemtyp angeben

Dann geht's auf einmal:
Code:
tobias@gentoo / $ mount /media/usb/
tobias@gentoo / $ mount | grep "/dev/sda1"
/dev/sda1 on /media/usb type vfat (rw,noexec,nosuid,nodev,user=tobias)

Wenn ich den Stick dann rausziehe und wieder reinstecke, dann fängt das ganze von vorn an. Nachdem ich aber einmal als root "mount /dev/sda /media/usb/" gemacht habe, kann ich (als root und als user) problemlos den Stick ein- und aushängen ... aber nur solang er eingesteckt ist. Also scheinbar trägt udev erst dann sda1 in /dev/ ein, wenn einmal auf /dev/sda zugegriffen wurde ... aber über "mount -t vfat /dev/sda /media/usb" kann ich den Stick (als root) nicht einhängen.

Bis zu dem Zugriff auf /dev/sda sagt dmesg:
Code:
(...)
usb-storage: device scan complete

Danach (wenn ich dann den Stick "normal" einhägen kann):
Code:
(...)
usb-storage: device scan complete
SCSI device sda: 249856 512-byte hdwr sectors (128 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
SCSI device sda: 249856 512-byte hdwr sectors (128 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 sda: sda1
VFS: Can't find ext3 filesystem on dev sda.

Und dann gibt's auf einmal /dev/sda1 und alles geht ...

Woran kann denn das liegen?
Back to top
View user's profile Send private message
schrippe
Guru
Guru


Joined: 03 Mar 2004
Posts: 556
Location: Mülheim

PostPosted: Sat May 14, 2005 3:40 pm    Post subject: Reply with quote

ist da auch sicher ne partition sda1 drauf? cfdisk /dev/sda

hatte ich auch mal, zumindest so ähnlich. musste dann alle partitionen auf dem stick löschen und ne neue anlegen und die formatieren
mit mkfs.vfat -F32 /dev/sda1
_________________
for i in $(seq 1 565); do echo 'A$i: entweder rechts fahren oder rechts überholen dürfen!';done
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2616
Location: Konradsreuth (Germany)

PostPosted: Sat May 14, 2005 3:49 pm    Post subject: Reply with quote

Naja, also _nachdem_ ich einmal mit root versucht habe, /dev/sda einzuhängen, kann ich ja /dev/sda1 einhängen -- also gehe ich mal stark davon aus, daß da eine Partition /dev/sda1 drauf ist.

cfdisk sagt:
Code:
                                             cfdisk 2.12i

                                         Festplatte: /dev/sda
                                    Größe: 127926272 Bytes, 127 MB
                           Köpfe: 16   Sektoren pro Spur: 32   Zylinder: 488

     Name           Flags          Part. Typ    Dateisystemtyp        [Bezeichner]      Größe (MB)
 -----------------------------------------------------------------------------------------------------
     sda1           Boot            Primäre     FAT16                                       127,93    *
                                    Pri/Log     Freier Bereich                                0,01    *

Ich kann auch einfach "fdisk -l /dev/sda" eingeben -- und danach gibt's /dev/sda1 und ich kann den Stick einhängen ...
Back to top
View user's profile Send private message
mkr
Apprentice
Apprentice


Joined: 14 Dec 2003
Posts: 188

PostPosted: Sat May 14, 2005 7:08 pm    Post subject: Reply with quote

Eine Lösung kann ich leider nicht bieten, ich habe das gleiche Problem mit meinem USB-Stick. Auf den kann ich auch erst nach einem "cfdisk /dev/sda" zugreifen. (cfdisk verlasse ich jeweils ohne zu speichern wieder.)

Mein Stick kommt aus Korea, dmesg zeigt keinen Vendor an, als Model steht nur "USB DRIVE". Den Stick (silbern, 512MB) habe ich mal im MediaMarkt gekauft.

Das Problem tritt auf, seit ich den Stick habe (damals hatte ich IMHO Kernel 2.6.8, jetzt 2.6.11.6).
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2616
Location: Konradsreuth (Germany)

PostPosted: Sat May 14, 2005 8:36 pm    Post subject: Reply with quote

Es scheint, als ob Windows (also zumindest mein Windoof 98) ohnehin nicht auf /dev/sda1, sondern nur auf /dev/sda speichert. Ich hab jetzt einfach die Partition gelöscht, und den ganzen Datenträger formatiert. Also "mkfs.vfat -F 32 /dev/sda". Dann hänge ich den Stick mit "mount /dev/sda" ein. Das geht immer -- und es funktioniert sowohl mit Linux als auch mit Windows. Natürlich kann man dann nicht mehr von dem Stick booten, aber das will ich ohnehin nicht ;-)
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