Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
/dev/sdb
to your system.
Funny enough, these discettes are partioned in a way that the primary partition
with ID 4 is used for the filesystem (I.e. in our example this is /dev/sdb4
).
Nobody would expect this. However, you can use this situation to perform a
simple "automatic" detection of the filesystem type.
The following predefinition is used :
The partitions on the ZIP discette are created with fdisk (or with YaST). It is not necessary to reboot after the creation of the partitions on the ZIP discette. Then the Linux-filesystem ext2 is created using the following command :
mke2fs /dev/sdb1A distinction according to the position of the partitions has the advantage, that it is possible to create and specify different mountpoints for the two filesystems. An automatic mount of the correct filesystem is then possible there.
To achieve this the following entry in /etc/fstab
is necessary :
/dev/sdb1 /zip ext2 rw,user,noauto,exec /dev/sdb4 /dzip msdos rw,user,noauto,exec,umask=000
You still have to create the mountpoints :
mkdir /zip mkdir /dzipThen you can simply say
mount /zipor
mount /dzip
If a discette is prepared according to the rules given above, performing
the mount-command will reveal whether it is a MSDOS- or a Linux-discette :
If an error occurs, it is the wrong filesystem ... B-|
It is then also possible to determine from the mountpoint, which filesystem
was mounted.
Keywords: ZIP-DRIVE, PPA, DISCETTE, PARTITIONING, FORMATTING, MKFS, MKE2FS
Feedback welcome: Send Mail to rb@suse.de (Please give the following subject: SDB-maddin_zip
)
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch