Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 1998 11:31:28 -0500
From:      Jonathan Lemon <jlemon@americantv.com>
To:        Martin Machacek <martin@eunet.cz>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: doscmd problem
Message-ID:  <19980428113128.00344@right.PCS>
In-Reply-To: <199804280931.CAA05134@hub.freebsd.org>; from Martin Machacek on Apr 04, 1998 at 11:30:50AM %2B0200
References:  <199804280931.CAA05134@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 04, 1998 at 11:30:50AM +0200, Martin Machacek wrote:
> I'm trying to make doscmd running on my FreeBSD 3.0 (cvsuped and world made on 
> March 20). I've very closely followed the example on the doscmd's manpage. 
> I've created minimalisitic /etc/doscmdrc saying:
> 
> X11_FONT=fixed
> assign A: /dev/rfd0.1440 1440
> assign A: /dev/rfd0.720 720
> assign hard /u/doscmd/disk_c 30
> 
> I've touched the /u/doscmd/disk_c file and made it world readable and 
> writable. I've also created bootable DOS floppy, put it in the floppy drive 
> (A) and started doscmd -b -x. I've received (on the terminal I've started the 
> doscmd) following messages:
> 
> martin@woody:/u/doscmd# doscmd -x -b
> Init: 0
> Unknown interrupt 15 function 4101
> Unknown interrupt 15 function 87ee
> 
> Finally the doscmd window came up showing DOS prompt. I've started fdisk from
> the floppy, selected 'Create DOS partition ...' and then 'Create Primary DOS 
> Partition'. After that fdisk said:
> 
> No space to create DOS partition
> 
> There is about 200MB free on the partition i which the /u/doscmd/disk_c file 
> resides. I've tried couple more tricks, like zeroing the /u/doscmd file to the 
> requested size, vnconfiging it and trying to access it through /dev/rvn0c. 
> None of them helped.

The file must already exist, with the correct size.  eg, for a type 30
disk, your disk_c file should be 55931904 bytes in length.

You did say you alredy zeroed the file to the correct size, but you may
want to check.  If this still fails, try giving a specific C/H/S value
for the disk, and creating the correct size, eg:

	assign C: /u/doscmd/disk_c 1600 8 8

	dd if=/dev/zero of=/u/doscmd/disk_c bs=1m count=50

I've had some weird results in the past with fdisk not liking certain H/S 
values, so perhaps that's the problem.
--
Jonathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980428113128.00344>