Re: [RFC] mount can figure out fstype automatically

From: Ceri Davies <ceri_at_submonkey.net>
Date: Tue, 11 Jul 2006 16:04:01 +0100
On Tue, Jul 11, 2006 at 09:54:00AM -0400, John Baldwin wrote:
> On Tuesday 11 July 2006 09:27, Ceri Davies wrote:
> > 
> > Assuming that there is a valid partition type.  I don't really know what
> > this makes, but there's a valid FAT filesystem on it:
> > 
> > % truncate -s 1440k floppy
> > % sudo mdconfig -a -f floppy 
> > md1
> > % sudo newfs_msdos -f 1440 /dev/md1
> > /dev/md1: 2847 sectors in 2847 FAT12 clusters (512 bytes/cluster)
> > bps=512 spc=1 res=1 nft=2 rde=224 sec=2880 mid=0xf0 spf=9 spt=18 hds=2 hid=0
> > % sudo mount -t msdos /dev/md1 /mnt
> > % df -h /mnt
> > Filesystem    Size    Used   Avail Capacity  Mounted on
> > /dev/md1      1.4M    1.0K    1.4M     0%    /mnt
> > {ceri_at_shrike}-{~} % fdisk /dev/md1
> > ******* Working on device /dev/md1 *******
> > parameters extracted from in-core disklabel are:
> > cylinders=0 heads=255 sectors/track=63 (16065 blks/cyl)
> > 
> > parameters to be used for BIOS calculations are:
> > cylinders=0 heads=255 sectors/track=63 (16065 blks/cyl)
> > 
> > Media sector size is 512
> > Warning: BIOS sector numbering starts with sector 1
> > Information from DOS bootblock is:
> > The data for partition 1 is:
> > <UNUSED>
> > The data for partition 2 is:
> > <UNUSED>
> > The data for partition 3 is:
> > <UNUSED>
> > The data for partition 4 is:
> > <UNUSED>
> > 
> > Ceri
> 
> Dos floppies don't have an MBR (so fdisk on them is meaningless).

That agrees with observation :)  Thanks!

Ceri
-- 
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere

Received on Tue Jul 11 2006 - 13:04:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC