Re: [RFC] mount can figure out fstype automatically
- From: Ceri Davies <ceri@xxxxxxxxxxxxx>
- 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@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
Attachment:
pgpeShtq4CLmk.pgp
Description: PGP signature
- References:
- [RFC] mount can figure out fstype automatically
- From: Craig Rodrigues
- Re: [RFC] mount can figure out fstype automatically
- From: Robert Watson
- Re: [RFC] mount can figure out fstype automatically
- From: Ceri Davies
- Re: [RFC] mount can figure out fstype automatically
- From: John Baldwin
- [RFC] mount can figure out fstype automatically
- Prev by Date: Re: [RFC] mount can figure out fstype automatically
- Next by Date: Re: vlans and cloning
- Previous by thread: Re: [RFC] mount can figure out fstype automatically
- Next by thread: Re: [RFC] mount can figure out fstype automatically
- Index(es):
Relevant Pages
- Re: Recovering a vfat partition
... I copied the first 512 bytes from the second partition at Primary Master ...
And now when I try to mount the image, ... bogus number of reserved sectors ...
Can't find a valid FAT filesystem on dev loop1. ... (comp.os.linux.hardware) - Re: [RFC] mount can figure out fstype automatically
... Assuming that there is a valid partition type. ... but there's a valid FAT
filesystem on it: ... BIOS sector numbering starts with sector 1 ... (freebsd-current) - rescue partition written to file
... I copied a mostly intact partition to a file and would like to fix it ... could
mount -o loop a non perfect partition. ... Nr AF Hd Sec Cyl Hd Sec Cyl Start Size
ID ... Can't find a valid FAT filesystem on dev loop0. ... (comp.os.linux.misc) - RE: Change Tracks Per Sector on system Partition
... mirroring system partitions of a cluster to an offsite SAN due to differing ...
We cannot physically read the file system boot sector usually at ... If your software mirror
a Windows NT/2000/2003 operating system partition ... another disk that is translated
as 32spt, ... (microsoft.public.windows.server.setup) - Re: OT File recovery Software
... > I guess some of you never used the fix MBR command? ... > The Master
Boot Record will be created when you create the first ... > partition on the hard
disk. ... > first sector on the disk. ... (alt.med.fibromyalgia)