[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] drive letters (was: Kernal questions)



Martin-Eric Racine <q-funk@pp.fishpool.com> writes:

> Let's see how Linux handles this:
> 
> fsck repairs/verifies drive letters, but the drives are mounted as 
> filesystems.  For example, floppy is accessed as /floppy and cd as 
> /cdrom, but other drives are mounted
> 
> Is there any way we could implement something similar on MiNT?
> For instance, boot drive could be /boot, but also known to fsck.fat
> as drive C (or whichever drive we boot from).
> 
> Question:  
> how do system utilities (ie: fsck) know which drive letters
> use what kind of filesystems (ie: FAT, Minix, ext2) on Linux?

The file /etc/mtab contains something like this:

/dev/sda1 / ext2 rw 0 0
proc /proc proc rw 0 0
/dev/sda2 /usr ext2 rw 0 0
/dev/sdb2 /mnt ext2 rw 0 0

which is the mounted devices. The directory /proc is a special
directory with system information. The same information as above can
also be found if you read from /proc/mounts. I'm not sure which of the
two that are used by programs, though. Maybe both are.


Tomas - tomas[@.]nocrew.org