All of lore.kernel.org
 help / color / mirror / Atom feed
* does the linux support rootfs on vfat?
@ 2006-03-05  6:17 zhuzhenhua
  2006-03-05  8:09 ` Jan-Benedict Glaw
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: zhuzhenhua @ 2006-03-05  6:17 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: does the linux support rootfs on vfat?
  2006-03-05  6:17 does the linux support rootfs on vfat? zhuzhenhua
@ 2006-03-05  8:09 ` Jan-Benedict Glaw
  2006-03-05 11:22   ` Ralf Baechle
  2006-03-06 12:36 ` Stuart Longland
  2006-03-06 16:41 ` Geoff Levand
  2 siblings, 1 reply; 7+ messages in thread
From: Jan-Benedict Glaw @ 2006-03-05  8:09 UTC (permalink / raw)
  To: zhuzhenhua; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

On Sun, 2006-03-05 14:17:56 +0800, zhuzhenhua <zzh.hust@gmail.com> wrote:
> 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       jbglaw@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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: does the linux support rootfs on vfat?
  2006-03-05  8:09 ` Jan-Benedict Glaw
@ 2006-03-05 11:22   ` Ralf Baechle
  2006-03-06 16:49     ` Geoff Levand
  0 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2006-03-05 11:22 UTC (permalink / raw)
  To: zhuzhenhua, linux-mips

On Sun, Mar 05, 2006 at 09:09:58AM +0100, Jan-Benedict Glaw wrote:

> On Sun, 2006-03-05 14:17:56 +0800, zhuzhenhua <zzh.hust@gmail.com> wrote:
> > 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: does the linux support rootfs on vfat?
  2006-03-05  6:17 does the linux support rootfs on vfat? zhuzhenhua
  2006-03-05  8:09 ` Jan-Benedict Glaw
@ 2006-03-06 12:36 ` Stuart Longland
  2006-03-06 16:41 ` Geoff Levand
  2 siblings, 0 replies; 7+ messages in thread
From: Stuart Longland @ 2006-03-06 12:36 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]

(Gah... I meant this to be sent publically, not just privately ;-)

zhuzhenhua wrote:
> 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: does the linux support rootfs on vfat?
  2006-03-05  6:17 does the linux support rootfs on vfat? zhuzhenhua
  2006-03-05  8:09 ` Jan-Benedict Glaw
  2006-03-06 12:36 ` Stuart Longland
@ 2006-03-06 16:41 ` Geoff Levand
  2 siblings, 0 replies; 7+ messages in thread
From: Geoff Levand @ 2006-03-06 16:41 UTC (permalink / raw)
  To: zhuzhenhua; +Cc: linux-mips, Hiroyuki Machida

zhuzhenhua wrote:
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: does the linux support rootfs on vfat?
  2006-03-05 11:22   ` Ralf Baechle
@ 2006-03-06 16:49     ` Geoff Levand
  2006-03-06 17:08       ` P. Christeas
  0 siblings, 1 reply; 7+ messages in thread
From: Geoff Levand @ 2006-03-06 16:49 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: zhuzhenhua, linux-mips

Ralf Baechle wrote:
> On Sun, Mar 05, 2006 at 09:09:58AM +0100, Jan-Benedict Glaw wrote:
> 
>> On Sun, 2006-03-05 14:17:56 +0800, zhuzhenhua <zzh.hust@gmail.com> wrote:
>> > 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: does the linux support rootfs on vfat?
  2006-03-06 16:49     ` Geoff Levand
@ 2006-03-06 17:08       ` P. Christeas
  0 siblings, 0 replies; 7+ messages in thread
From: P. Christeas @ 2006-03-06 17:08 UTC (permalink / raw)
  To: Geoff Levand; +Cc: linux-mips

On Monday 06 March 2006 6:49 pm, you wrote:
> 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-06 17:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-05  6:17 does the linux support rootfs on vfat? zhuzhenhua
2006-03-05  8:09 ` Jan-Benedict Glaw
2006-03-05 11:22   ` Ralf Baechle
2006-03-06 16:49     ` Geoff Levand
2006-03-06 17:08       ` P. Christeas
2006-03-06 12:36 ` Stuart Longland
2006-03-06 16:41 ` Geoff Levand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.