Discussion:
does the linux support rootfs on vfat?
zhuzhenhua
2006-03-05 06:17:56 UTC
Permalink
if in my product based ide disk, i want to it to support the
u-disk(with vfat fs), and can i set the root fs as vfat too?
if use vfat as rootfs, what's disadvantage of the selection?


Best Regards

Zhuzhenhua
Jan-Benedict Glaw
2006-03-05 08:09:58 UTC
Permalink
Post by zhuzhenhua
if in my product based ide disk, i want to it to support the
u-disk(with vfat fs), and can i set the root fs as vfat too?
if use vfat as rootfs, what's disadvantage of the selection?
Well, most notably you won't have device nodes. Maybe a ram-backed
filesystem mounted to /dev/ could solve that, but you'd probably need
an initrd for that to do.

MfG, JBG
--
Jan-Benedict Glaw ***@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fÃŒr einen Freien Staat voll Freier BÃŒrger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Ralf Baechle
2006-03-05 11:22:47 UTC
Permalink
Post by Jan-Benedict Glaw
Post by zhuzhenhua
if in my product based ide disk, i want to it to support the
u-disk(with vfat fs), and can i set the root fs as vfat too?
if use vfat as rootfs, what's disadvantage of the selection?
Well, most notably you won't have device nodes. Maybe a ram-backed
filesystem mounted to /dev/ could solve that, but you'd probably need
an initrd for that to do.
It's anso case-insensitive which may cause some further troubles. It's
doesn't have proper inodes, no UNIX file modes, no UID / GID support (These
two can be kludges in awfully insufficient way through mount options), not
only lacks device special files but also no FIFO, no UNIX domain sockets,
no hard or soft links. It's simply a sorry excuse for a useful filesystem.

Ralf
Geoff Levand
2006-03-06 16:49:24 UTC
Permalink
Post by Ralf Baechle
Post by Jan-Benedict Glaw
Post by zhuzhenhua
if in my product based ide disk, i want to it to support the
u-disk(with vfat fs), and can i set the root fs as vfat too?
if use vfat as rootfs, what's disadvantage of the selection?
Well, most notably you won't have device nodes. Maybe a ram-backed
filesystem mounted to /dev/ could solve that, but you'd probably need
an initrd for that to do.
It's anso case-insensitive which may cause some further troubles. It's
doesn't have proper inodes, no UNIX file modes, no UID / GID support (These
two can be kludges in awfully insufficient way through mount options), not
only lacks device special files but also no FIFO, no UNIX domain sockets,
no hard or soft links. It's simply a sorry excuse for a useful filesystem.
It's attractive for a limited resource device that needs to have FAT support
for a removable flash memory card (for Windows PC interoperability). If you
can use FAT for the root fs, that reduces the system resource needs.

It doesn't make sense if his ide disk is non-removable though.

-Geoff
P. Christeas
2006-03-06 17:08:54 UTC
Permalink
Post by Geoff Levand
It's attractive for a limited resource device that needs to have FAT
support for a removable flash memory card (for Windows PC
interoperability). If you can use FAT for the root fs, that reduces the
system resource needs.
It doesn't make sense if his ide disk is non-removable though.
IMHO it is a bad idea alltogether. You are asking for trouble. The system
resource needs are rather increased [1] than decreased.
On the other hand, you would you need to trade files between the *root* fs of
the linux and Windoze? Usually we want to trade some user files (like photos,
music etc.), but not the system files. Would you trust Windoze ever not to
destroy something in those root files? Why don't you create a second, VFAT
partition and mount it somewhere?

[1] ext2 or whatever is optimized. FAT isn't so and you really want to run
Linux trivial files from an optimized system.

Stuart Longland
2006-03-06 12:36:56 UTC
Permalink
(Gah... I meant this to be sent publically, not just privately ;-)
Post by zhuzhenhua
if in my product based ide disk, i want to it to support the
u-disk(with vfat fs), and can i set the root fs as vfat too?
if use vfat as rootfs, what's disadvantage of the selection?
In theory, you could... BUT... FAT32 (and every other FAT variant) lacks:

- Ownership metadata (uid/gid fields)
- Permissions (mode: read/write/execute/sticky/suid/sgid)
- Links (both hard-links and symbolic links)
... probably character devices, block devices, pipes and other numerous
devices that 99.999999% of distributions rely on.

Now, there is UMSDOS, which uses additional special files to emulate
these on top of a standard MS-DOS filesystem ... mind you, it predates
VFAT by many years, and so I'm not sure what it's support is like for
long filenames. I also haven't seen it in the kernel File System menu
for some time now.

I'd recommend using an external initrd... or an initramfs-based kernel.
That way it's just one or two files, not one or two hundred. ;-)
--
Stuart Longland (aka Redhatter) .'''.
Gentoo Linux/MIPS Cobalt and Docs Developer '.'` :
. . . . . . . . . . . . . . . . . . . . . . .'.'
http://dev.gentoo.org/~redhatter :.'

International Asperger's Year (1906 ~ 2006)
http://dev.gentoo.org/~redhatter/iay
Geoff Levand
2006-03-06 16:41:28 UTC
Permalink
Post by zhuzhenhua
if in my product based ide disk, i want to it to support the
u-disk(with vfat fs), and can i set the root fs as vfat too?
if use vfat as rootfs, what's disadvantage of the selection?
See these threads, 'Posix file attribute support on VFAT', which
disscusses using VFAT for a root fs:

http://lkml.org/lkml/2005/8/8/76
http://lkml.org/lkml/2005/8/8/326

-Geoff
Loading...