RE: [Freedos-kernel] Installing FreeDOS on a FAT32 partition >1024 Cyl...

2004-02-05 Thread Martin Bogomolni

Before I get flamed... (caught my typo too late.  -sigh-)

MiB (Mibibyte/Mebibyte) == 2^20 bytes 

KiB (Kibibyte/Kebibyte) == 2^10 bytes

-Martin


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Installing FreeDOS on a FAT32 partition >1024 Cyl...

2004-02-05 Thread Martin Bogomolni

Bart, 

Thanks.  I'll create and submit a patch to mkdosfs that will warn the end user
and prevent creating FAT32 partitions under 32MiB.  

Martin


-- Original Message ---
From: Bart Oldeman <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thu, 5 Feb 2004 15:51:27 + (GMT)
Subject: Re: [Freedos-kernel] Installing FreeDOS on a FAT32 partition >1024 
Cyl...

> On Thu, 5 Feb 2004, Martin Bogomolni wrote:
> 
> > dd if=/dev/zero of=/dev/hda bs=512 count=63 (kill trk0)
> > fdisk the system to make a 16MiB partition on /dev/hda1, filesystem type 0x0b
> > mkdosfs -F32 /dev/hda1
> 
> this is the problem: 16MiB FAT32 partitions are not allowed -- the minimal
> partition size for FAT32 is 64*1024*512 (minus a bit) =~ 32MiB,
>  below that it's nonsensical.
> 
> If mkdosfs allows you to create them then that's a bug in mkdosfs.
> 
> Bart
> 
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> Freedos-kernel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freedos-kernel
--- End of Original Message ---



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


RE: [Freedos-kernel] Installing FreeDOS on a FAT32 partition >1024 Cyl...

2004-02-05 Thread Martin Bogomolni

Roberto : 

> > In Linux -->
> >
> > dd if=/dev/zero of=/dev/hda bs=512 count=63 (kill trk0)
> > fdisk the system to make a 16MiB partition on /dev/hda1,
> > filesystem type 0x0b
> 
> Are you creating a 16 _megabyte_ FAT32 partition?
> Or a 16 _gigabyte_ one?

MiB (MibiBytes = 1000 KibiBytes (a kibibyte is defined as 1024 bytes))
 
> > mkdosfs -F32 /dev/hda1
> 
> Though mkdosfs didn't refuse to make such a little FAT32 partition, standard
> DOS may refuse to create/use FAT32 partitions under 32.5 MiB (66600
> sectors), and by default uses FAT16 for partitions under 512MiB (1048576
> sectors).

Good to know.  I'll increase the size of the target partition to 64MiB, and
try again.

> > Install custom Boot Manager into the MBR of /dev/hda
> >
> > 
> >
> > In FreeDOS -->
> >
> > Downloaded the latest FreeDOS (2033) kernel32, and created a boot floppy
> > with it.
> > Boot the boot floppy.
> > At the prompt : sys c:
> 
> This destroyed your custom boot manager, replacing it with the 
> FreeDOS default one.

Nope, the custom boot manager is in place.  SYS.COM only replaces the
bootloader at the top of the volume, not the boot manager in the MBR in the
first three sectors of the primary boot disk.   
 
> > At this point sys claims that it is updating the volume boot record and
> > copies over kernel.sys and command.com.  HOWEVER, when this occurs it
> > reports that the filesystem is "FAT16" and the filesystem is then
> > corrupted.
> 
> Yes, SYS can suppose it's a FAT16 partition if it's too small.

Okay, will try with a bigger partition this time, formatted FAT32 via Win98
rescue floppy.

Thanks Roberto!

(For the kernel developers .. I'm still looking for a method to install one of
those "other" bootloaders that support booting FreeDOS kernel >1024 Cyl)




---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Installing FreeDOS on a FAT32 partition >1024 Cyl...

2004-02-05 Thread Bart Oldeman
On Thu, 5 Feb 2004, Martin Bogomolni wrote:

> dd if=/dev/zero of=/dev/hda bs=512 count=63 (kill trk0)
> fdisk the system to make a 16MiB partition on /dev/hda1, filesystem type 0x0b
> mkdosfs -F32 /dev/hda1

this is the problem: 16MiB FAT32 partitions are not allowed -- the minimal
partition size for FAT32 is 64*1024*512 (minus a bit) =~ 32MiB, below that
it's nonsensical.

If mkdosfs allows you to create them then that's a bug in mkdosfs.

Bart



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


RE: [Freedos-kernel] Installing FreeDOS on a FAT32 partition >1024 Cyl...

2004-02-05 Thread Roberto Mariottini
Hi,
First, this question is better asked in the developer list (if not in the
user list).
Anyway, comments embedded.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Martin
> Bogomolni
> Sent: Thursday, February 05, 2004 3:25 PM
> To: [EMAIL PROTECTED]
> Subject: [Freedos-kernel] Installing FreeDOS on a FAT32 partition >1024
Cyl...
>
[..]
> I am building an embedded FreeDOS based system,

Good to know.

> with a custom boot manager
> in the MBR area of the primary disk.  I have seen a boot loader
> (boot32ea.asm) that the author claims can boot a FreeDOS partition beyond
> the 8GiB/1024 Cyl limit.
>
> However, to start with I have been experimenting with installing
> FreeDOS on
> a FAT32 partition, and not having much luck.   The procedure I am
> using is :
>
> --
>
> In Linux -->
>
> dd if=/dev/zero of=/dev/hda bs=512 count=63 (kill trk0)
> fdisk the system to make a 16MiB partition on /dev/hda1,
> filesystem type 0x0b

Are you creating a 16 _megabyte_ FAT32 partition?
Or a 16 _gigabyte_ one?

> mkdosfs -F32 /dev/hda1

Though mkdosfs didn't refuse to make such a little FAT32 partition, standard
DOS may refuse to create/use FAT32 partitions under 32.5 MiB (66600
sectors), and by default uses FAT16 for partitions under 512MiB (1048576
sectors).

> Install custom Boot Manager into the MBR of /dev/hda
>
> 
>
> In FreeDOS -->
>
> Downloaded the latest FreeDOS (2033) kernel32, and created a boot floppy
> with it.
> Boot the boot floppy.
> At the prompt : sys c:

This destroyed your custom boot manager, replacing it with the FreeDOS
default one.

> At this point sys claims that it is updating the volume boot record and
> copies over kernel.sys and command.com.  HOWEVER, when this occurs it
> reports that the filesystem is "FAT16" and the filesystem is then
> corrupted.

Yes, SYS can suppose it's a FAT16 partition if it's too small.

> --
>
> So ..
>
> 1) How do I install FreeDOS w/ FAT32 support on a FAT32 partition?  (Do I
> need a different "SYS" utility?)

Try with a bigger partition (at least > 32.5 MiB, better if > 512 MiB).

> 2) I tried formatting /dev/hda1 (C:) with the 0.91o FORMAT
> utility, however
> it would only attempt a FAT16 format under FreeDOS (2033/Fat32).  What is
> needed in order to get the FreeDOS native "format" utility to produce a
> FAT32 filesystem?

A bigger partition.

Ciao.



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel