Maxim Kovgan wrote:
On Wed, 2 Mar 2005, Daniel Feiglin wrote:


Hello folks!

I just got a 256MB USB keydisk. After poking arount fstab(5) aand
mount(8), with attention to the tmpfs and usbfs entries, I got exactly
nowhere. After a bit more nosing around the manualsand the 'net, I
added the following line to fstab,

(One line)
/dev/sda /media/usb vfat
rw,user,auto,umask=0000,codepage=1255,iocharset=iso8859-8 0 0

based on an entry for one of my fat32 partitions. (The user option makes
it mountable and dismountable by anyone).

I could then do (u)mount /media/usb

which worked perfectly and I could even see the thing quite happily from
a Win2K Samba client.

What I would like to do, is have it auto mount and dismount like a CD
ROM or a floppy disk. For the latter, the fstab entry is

/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0

I guess I need something like

/dev/sda /media/usb subfs fs=<Umm, what?>,procuid,nodev,nosuid,sync 0 0


1. usually /dev/sda is not mountable.

Odd. I found that the two ports were /dev/sda and sdb. In the HW info section of YaST, it showed /dev/sda as being (somehow) the same as /dev/sga2 which is definitely not useful here (I tried it).


you can discover which partition to mount with fdisk:
fdisk -l /dev/sda
will show you partition table.

- which comes out very strange:

Disk /dev/sda: 261 MB, 261881856 bytes
9 heads, 56 sectors/track, 1014 cylinders
Units = cylinders of 504 * 512 = 258048 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   ?     3709864     4044566    84344761   69  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(68, 13, 10) logical=(3709863, 7, 22)
Partition 1 has different physical/logical endings:
     phys=(288, 115, 43) logical=(4044565, 2, 15)
Partition 1 does not end on cylinder boundary.

there will be written which filesystem is used.
I've had flashdisks with fat12,
fat [a.k.a. FAT16] and
vfat [a.k.a. FAT32]

after you know it, you have answer for all your questions.
NOTE: you're on the right track.

Yeah. I'll just keeep battling on ...

:)

Max.


Thanks.

Environment: SuSE 9.2 patched upto date.

Any ideas?

Daniel

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]






================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to