From mint-bounce@lists.fishpool.fi Sat May 29 16:09:49 2010 Message-ID: <4C017423.2090103@freesbee.fr> Date: Sat, 29 May 2010 22:08:03 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] boot manager References: <4C010987.6090809@atari-source.org> <4C010FE6.901@atari-source.org> <4C012307.7060809@freesbee.fr> <4C015BB6.3060200@freesbee.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o4TK9mrR027753 Miro Kropacek wrote: > Wow. Just for sure, what sizes do you use and how exactly do you > partition it? I've got 512 MB card, divided as 100/100/100/200 (using > 'cfdisk'), each assigned $06 as ID. Then mkfs.vfat -F 16 /dev/sdbX (X > = 1 to 4). First, it seems that the TOS limits are lower than EmuTOS' ones. Didier told me something about that. I have a 4 Gb CompactFlash card and I have formatted it with Linux. Using fdisk, I have created a single primary partition of size 65 cylinders, with the type 0x06, and I have set it active (bootable). So this partition has 1044162 sectors of 512 bytes each, its whole size is 509 Mb. You can make a smaller partition of you want, but not bigger to avoid size problems. This is the biggest value for avoiding a total cluster count bigger than 32768 and avoid an overflow. Then I have formatted the partition using the mtools, with the following command : mformat -i /dev/sdaX :: -M 512 -c 32 Note that normally, the mtools commands are like "mdir a:", they automatically find the device from the drive letter. When you want to specify a specific device, you have to use the -i option. In this case, it emulates a pseudo drive letter named ':'. So instead of writing "mkdir a:/mydir" you do "mkdir -i mydevice ::/mydir". In other words, '::/' means the root of the image. Well. Back to mformat: -M specifies the logical size of a sector in bytes, must be 512. -c specifies the sectors per cluster. 32 is the right value for 16 Kb clusters, in order to avoid an overflow of the potential 16-bit variables containing the cluster size. After formatting, you can check the format parameters with: minfo -i /dev/sdaX :: Note: I have not made tests again with my CompactFlash card, I hope the commands are OK and you will not encounter geometry issues. -- Vincent Rivière