Re: newfs_msdos onto an image file

2006-01-15 Thread Daniel O'Connor
On Sunday 15 January 2006 23:44, Andrea Campi wrote: > Just a wild guess: have you tried using fdisk? Pretending it is a floppy > is probably working because real floppies don't have a partition table, > whereas all kind of HDs in the DOS world have them. > > Try creating just a single slice to cov

Re: newfs_msdos onto an image file

2006-01-15 Thread Brian Candler
On Sun, Jan 15, 2006 at 02:14:05PM +0100, Andrea Campi wrote: > On Sun, Jan 15, 2006 at 12:49:51PM +, Brian Candler wrote: > > Furthermore, why do I still have to pretend that the device is a 1440K > > floppy disk? If I remove -f 1440 I get: > > > > # newfs_msdos -h 64 -u 32 -s 256000 -a 125 -

Re: newfs_msdos onto an image file

2006-01-15 Thread Andrea Campi
On Sun, Jan 15, 2006 at 12:49:51PM +, Brian Candler wrote: > Furthermore, why do I still have to pretend that the device is a 1440K > floppy disk? If I remove -f 1440 I get: > > # newfs_msdos -h 64 -u 32 -s 256000 -a 125 -F 16 -b 4096 -c 8 /dev/md0 > newfs_msdos: Cannot get number of sectors,

Re: newfs_msdos onto an image file

2006-01-15 Thread Brian Candler
On Sun, Jan 15, 2006 at 12:34:46PM +, Brian Candler wrote: > I am trying to prepare an MS-DOS disk image file (for later dd to a USB > device) but am having difficulties getting newfs_msdos to work in this way. > This is under 5.4-RELEASE. P.S. it seems that the total disk size given by -s is

newfs_msdos onto an image file

2006-01-15 Thread Brian Candler
I am trying to prepare an MS-DOS disk image file (for later dd to a USB device) but am having difficulties getting newfs_msdos to work in this way. This is under 5.4-RELEASE. Firstly, newfs_msdos seems to insist on a block-special device; it won't talk to a disk file. OK, no problem, I'll fake it