Re: Curiosita'
--- MaXeR <maxer@knio.it> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday 22 March 2005 08:40, Walter Valenti wrote:
> > Hola,
> > ho notato una stranezza.
> > Se monto la penna USB con l'opzione per il filesystem "auto" viene
> > riconosciuta come "ms-dos" anzichè come "vfat", con conseguente
> > accorciamento dei nomi dei file. Montandola direttamente come "vfat" è
> > tutto a posto.
> >
>
> dal man di mount:
> - --------
> The auto type may be useful for user-mounted floppies. Creating a
> file /etc/filesystems can be useful to change the probe order (e.g., to try
> vfat before msdos or ext3 before ext2) or if you use a kernel module
> autoloader. Warning: the probing uses a heuristic (the presence of
> appropriate `magic'), and could recognize the wrong filesystem type, possibly
>
> with catastrophic consequences. If your data is valuable, don't ask
> mount to guess.
> [...]
> If no -t option is given, or
> if the auto type is specified, the superblock is probed for the
> filesystem type (adfs, bfs, cramfs, ext, ext2, ext3, hfs, hpfs,
> iso9660, jfs, minix, ntfs, qnx4, reiserfs, romfs, udf, ufs,
> vxfs, xfs, xiafs are supported). If this probe fails, mount
> will try to read the file /etc/filesystems, or, if that does not
> exist, /proc/filesystems. All of the filesystem types listed
> there will be tried, except for those that are labeled "nodev"
> (e.g., devpts, proc and nfs). If /etc/filesystems ends in a
> line with a single * only, mount will read /proc/filesystems
> afterwards.
> - --------
>
>
> per farti una idea di come funziona, dai una occhiata a /proc/filesystems (da
>
> cui puoi ispirarti per fare il tuo /etc/filesystems personale)!
>
Be effettivamente in /proc/filesystem ms-dos viene prima di vfat.
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev eventpollfs
nodev devpts
cramfs
nodev ramfs
nodev devfs
nodev mqueue
ext3
ext2
nodev usbfs
msdos
vfat
Più tardi prova a creare il file in etc con l'ordine invertito.
Walter
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica? Scaricalo ora!
http://it.messenger.yahoo.it
Reply to: