[RFC] mount can figure out fstype automatically
Ceri Davies
ceri at submonkey.net
Tue Jul 11 15:04:03 UTC 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20060711/9e715538/attachment.pgp
More information about the freebsd-arch
mailing list