I downloaded DOS6.22 image from putergeek.com. Used fdisk from that floppy and format from that floppy. Still no luck. If I execute fdisk under leaf (monkeynoodle.org) as fdisk/dev/hdc, and give p for print partition table, I get the following: Disk /dev/hdc: 16 heads, 32 sectors, 123 cylinders. Units = cylinders of 512 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 119 30208+ 4 FAT16 <32M Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0,1,1) logical=(0,1,32) Partition 1 has different physical/logical endings (non-Linux?): phys=(29,31,63) logical=(118,1,32) Partition 1 does not end on cylinder boundary: phys=(29,31,63) should be (29,15,32) Does this mean something is wrong? Mohan Snips from earlier conversation: <smohan> I know that is the proper way. Unfortunately, I'm stuck and am mad at myself for that. Error message: ERROR 440D: Unable to lock drive for exclusive access - when I use syslinux 2.00 from freshmeat. the last time, I used syslinux 1.75. </smohan> <Luis> No, you run syslinux to create the boot sector ON the CF. </Luis> <smohan> Latest syslinux 2.00 stable version from freshmeat. Are the programs that will just copy boot sectors or create boot sectors for /dev/hda1, /dev/hda2 etc.. that I can simply copy with a dd command? </smohan> <Luis> What syslinux version have you tried? I had only success with version 2.00-pre6 (at the time) Version 2.00 has just come out, give it a try and test it! What is the exact error given by syslinux? </Luis> <smohan> I've been at this point before and did get some help. I've got stuck at this point again. I'm in search of an workable elegant solution. When I started with leaf, I wanted to install it on a hard disk. When I used syslinux dos version, I got an error saying cannot get exclusive access. I was told I must use DOS6.22 Fdisk. I did and my problem got solved. I then got a ATA PCMCIA Flash drive on which I used a 8MB PCMCIA SANDISK flash card. It went thro' without a problem. I've a set-up machine which has a hard disk with a 16MB partition on which leaf is installed. I boot with a DOS floppy, execute syslinux to install MBR on the flash and then boot leaf off the HDD(/dev/hda1) and backup to the flash (/dev/hdc1). I then disable the hard disk in the bios and check if I can boot off the flash. So far so good. I got a IDE CF adaptor recently. The CF card is a 32MB card. It gets formatted to FAT16 when formatted using DOS. I think DOS6.22 uses FAT12. I checked syslinux site and it says we can boot off FAT12 or FAT16 partitions. Problems occur only when cylinder count > 1024 or cluster size > 16kb. I remember Guitarlynn's oft repeated comment in the mailing list that syslinux gives a problem if partition is > 24MB. I also tried Ranish Partition Manager to format the CF card in FAT12 mode. Still syslinux gave the same error. Syslinux unix version executed under leaf gives a grsec and segmentation fault. Now I'm beginning to pull my hair out. I know I can do "dd if=/dev/hda of=/dev/hdc bs=512 count=1" to get the boot sector from HDD to CF. Then my CF should become hda1. I tried the fdisk.lrp, installed fdisk on leaf and went thro' that fdisk too to create the partitions. Same result. Is there an easier method? Am I missing something very trivial? Can a more experienced person create a script or a program to do this off leaf? I did not fight with the system for so long the first time around. If FDISK with DOS6.22 alone is the issue, I'm stuck in trying to locate one. Is there another alternative? Is mkfs.msdos available in leaf? </smohan> ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ------------------------------------------------------------------------ leaf-user mailing list: leaf-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Luis.F.Correia
2002-Nov-05 11:57 UTC
[syslinux] RE: [leaf-user] FW: CF Boot media creation
If you get the 'Unable to lock drive for exclusive access' error when running syslinux, you are NOT using DOS6.22. Follow these exact instruction: Hardware: On PC with only a floppy drive and one CompactFlash IDE adapter configured as /dev/hda or primarymaster IDE. 1) Then, boot from a Dos 6.22 floppy. 2) run fdisk and create the partition to the desired size. 3) reboot 4) after boot, type 'dir c:'. you should get an 'invalid drive c:' error. this is normal. 5) now format the flash by running 'format c: /s' 6) remove the floppy and reboot 7) does the flash boot? if yes proceed to 8) 8) in another system, copy syslinux.com to the dos 6.22 boot floppy 9) boot from floppy again and run syslinux -s c: 10) if you boot the flash, you should get the syslinux prompt but some errors. normal since you didn't copy anything to the flash... Please follow this and give me some feedback. Thanks -----Original Message----- From: S Mohan [mailto:smohan at vsnl.com] Sent: Tuesday, November 05, 2002 11:10 AM To: syslinux at zytor.com Cc: Leaf-User Subject: [leaf-user] FW: CF Boot media creation I downloaded DOS6.22 image from putergeek.com. Used fdisk from that floppy and format from that floppy. Still no luck. If I execute fdisk under leaf (monkeynoodle.org) as fdisk/dev/hdc, and give p for print partition table, I get the following: Disk /dev/hdc: 16 heads, 32 sectors, 123 cylinders. Units = cylinders of 512 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 119 30208+ 4 FAT16 <32M Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0,1,1) logical=(0,1,32) Partition 1 has different physical/logical endings (non-Linux?): phys=(29,31,63) logical=(118,1,32) Partition 1 does not end on cylinder boundary: phys=(29,31,63) should be (29,15,32) Does this mean something is wrong? Mohan Snips from earlier conversation: <smohan> I know that is the proper way. Unfortunately, I'm stuck and am mad at myself for that. Error message: ERROR 440D: Unable to lock drive for exclusive access - when I use syslinux 2.00 from freshmeat. the last time, I used syslinux 1.75. </smohan> <Luis> No, you run syslinux to create the boot sector ON the CF. </Luis> <smohan> Latest syslinux 2.00 stable version from freshmeat. Are the programs that will just copy boot sectors or create boot sectors for /dev/hda1, /dev/hda2 etc.. that I can simply copy with a dd command? </smohan> <Luis> What syslinux version have you tried? I had only success with version 2.00-pre6 (at the time) Version 2.00 has just come out, give it a try and test it! What is the exact error given by syslinux? </Luis> <smohan> I've been at this point before and did get some help. I've got stuck at this point again. I'm in search of an workable elegant solution. When I started with leaf, I wanted to install it on a hard disk. When I used syslinux dos version, I got an error saying cannot get exclusive access. I was told I must use DOS6.22 Fdisk. I did and my problem got solved. I then got a ATA PCMCIA Flash drive on which I used a 8MB PCMCIA SANDISK flash card. It went thro' without a problem. I've a set-up machine which has a hard disk with a 16MB partition on which leaf is installed. I boot with a DOS floppy, execute syslinux to install MBR on the flash and then boot leaf off the HDD(/dev/hda1) and backup to the flash (/dev/hdc1). I then disable the hard disk in the bios and check if I can boot off the flash. So far so good. I got a IDE CF adaptor recently. The CF card is a 32MB card. It gets formatted to FAT16 when formatted using DOS. I think DOS6.22 uses FAT12. I checked syslinux site and it says we can boot off FAT12 or FAT16 partitions. Problems occur only when cylinder count > 1024 or cluster size > 16kb. I remember Guitarlynn's oft repeated comment in the mailing list that syslinux gives a problem if partition is > 24MB. I also tried Ranish Partition Manager to format the CF card in FAT12 mode. Still syslinux gave the same error. Syslinux unix version executed under leaf gives a grsec and segmentation fault. Now I'm beginning to pull my hair out. I know I can do "dd if=/dev/hda of=/dev/hdc bs=512 count=1" to get the boot sector from HDD to CF. Then my CF should become hda1. I tried the fdisk.lrp, installed fdisk on leaf and went thro' that fdisk too to create the partitions. Same result. Is there an easier method? Am I missing something very trivial? Can a more experienced person create a script or a program to do this off leaf? I did not fight with the system for so long the first time around. If FDISK with DOS6.22 alone is the issue, I'm stuck in trying to locate one. Is there another alternative? Is mkfs.msdos available in leaf? </smohan> ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ------------------------------------------------------------------------ leaf-user mailing list: leaf-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ------------------------------------------------------------------------ leaf-user mailing list: leaf-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html