From: Andreas Haumer <andreas@xss.co.at>
To: axp-list@redhat.com
Subject: Re: Problem booting Samsung 164UX ("Ruffian") MB - SOLUTION!
Date: Sun, 11 Oct 1998 21:28:00 +0200 [thread overview]
Message-ID: <362106C0.7EEBD0C@xss.co.at> (raw)
In-Reply-To: 3620E7C4.47BC153F@xss.co.at
Hi guys!
I found the solution to my problem with booting the 164UX from
the hard-disk partition! :-))
I debugged the boot sectors from MSDOS floppy-disks and the MSDOS
boot partition at my UX ("od" is your friend... :-) and found some
strange differences. I then took a closer look at the sources of
mkdosfs, and guess what I found:
[...]
struct msdos_boot_sector
{
unsigned char boot_jump[3]; /* Boot strap short or near jump */
char system_id[8]; /* Name - can be used to special case
partition manager volumes */
unsigned char sector_size[2]; /* bytes per logical sector */
unsigned char cluster_size; /* sectors/cluster */
unsigned short reserved; /* reserved sectors */
unsigned char fats; /* number of FATs */
unsigned char dir_entries[2]; /* root directory entries */
unsigned char sectors[2]; /* number of sectors */
unsigned char media; /* media code (unused) */
unsigned short fat_length; /* sectors/FAT */
unsigned short secs_track; /* sectors per track */
unsigned short heads; /* number of heads */
unsigned long hidden; /* hidden sectors (unused) */
unsigned long total_sect; /* number of sectors (if sectors == 0) */
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unsigned char drive_number; /* BIOS drive number */
unsigned char RESERVED; /* Unused */
unsigned char ext_boot_sign; /* 0x29 if fields below exist (DOS
3.3+) */
unsigned char volume_id[4]; /* Volume ID number */
char volume_label[11]; /* Volume label */
char fs_type[8]; /* Typically FAT12 or FAT16 */
unsigned char boot_code[448]; /* Boot code (or message) */
unsigned short boot_sign; /* 0xAA55 */
};
[...]
Obviously, the author of this software never thought it would ever
be used on hardware where unsigned long > 4 bytes... :-))
I temporarily changed the "unsigned long" lines to "unsigned int",
and now the UX boots fine from a partition created with my modified
"mkdosfs"
That's the way free software works: don't whine, do it yourself... :-)
Many thanks to everyone! I'll see if I can clean up my patches to
mkdosfs and submit them to the author of that software, so that it
can be included in upcoming distributions.
- andreas
--
Andreas Haumer | email: andreas@xss.co.at | PGP key available
*x Software + Systeme | phone: +43.1.6001508 | on request.
Buchengasse 67/8 | +43.664.3004449 |
A-1100 Vienna, Austria | fax: +43.1.6001507 | AH327-RIPE
next prev parent reply other threads:[~1998-10-11 19:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-11 17:15 Problem booting Samsung 164UX ("Ruffian") MB Andreas Haumer
1998-10-11 17:33 ` furio ercolessi
1998-10-11 17:39 ` Paul Tomblin
1998-10-11 17:47 ` furio ercolessi
1998-10-11 17:50 ` Andreas Haumer
1998-10-11 19:01 ` Adrian Gartland
1998-10-13 1:34 ` Maurice Hilarius
1998-10-11 17:50 ` David Monro
1998-10-11 19:13 ` Michal Jaegermann
1998-10-11 19:44 ` Alan Young
1998-10-11 19:28 ` Andreas Haumer [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-10-11 19:36 Problem booting Samsung 164UX ("Ruffian") MB - SOLUTION! Greg Lindahl
1998-10-11 19:59 ` Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox