From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24827 invoked from network); 11 Oct 1998 19:34:12 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 11 Oct 1998 19:34:12 -0000 Received: from camus.xss.co.at (camus.xss.co.at [194.152.162.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA12430 for ; Sun, 11 Oct 1998 15:28:32 -0400 Received: from xss.co.at (sartre.xss.co.at [194.152.162.18]) by camus.xss.co.at (8.8.8/8.8.8) with ESMTP id VAA19072 for ; Sun, 11 Oct 1998 21:28:30 +0200 Sender: andreas@camus.xss.co.at Message-ID: <362106C0.7EEBD0C@xss.co.at> Date: Sun, 11 Oct 1998 21:28:00 +0200 From: Andreas Haumer Organization: xS+S - *x Software + Systeme X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.36 i586) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Problem booting Samsung 164UX ("Ruffian") MB - SOLUTION! References: <3620E7C4.47BC153F@xss.co.at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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