Oleg Bolshakov
|
Re: fdisk shows incorrect geometry when booting QNX4.25 off USB stick
|
Oleg Bolshakov
09/08/2010 7:42 AM
post66276
|
Re: fdisk shows incorrect geometry when booting QNX4.25 off USB stick
Hi Mark,
Try to start the Fsys.atapi with "fsys -i" options and after this use
fdisk.
--
Respectfully,
Oleg
> Thanks for that Oleg, was very helpful.
>
> Updating to the latest "Fsys.atapi" and manual start solved startup
> problems on a number of different systems (we have a mixture of solid
> state and HD IDE drives).
>
> Through the BIOS I forced LBA (where I could) for the HD, rather than
> using an "Auto" setting
>
> Deleted the partitons "fdisk <drv> delete -a"
>
> Found that if I used fdisk to add QNX boot partiton at 100% of the
> drive, loading the boot image failed. Partioned to 99% and load was
> successful (not sure why)
>
> Fdisk shows more reasonable drive geometry, but more importantly now
> seems to write the partioning info and primary boot loader using
> correct addressing on the HD.
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post66269
|
|
|
Graham Knap(deleted)
|
Re: fdisk shows incorrect geometry when booting QNX4.25 off USB stick
|
Graham Knap(deleted)
05/16/2011 1:06 PM
post85721
|
Re: fdisk shows incorrect geometry when booting QNX4.25 off USB stick
I've bumped into the same problem and am retrying with today's Fsys.atapi release.
I have an 80GB disk with a zeroed-out MBR, and I've constructed a bootable floppy and bootable USB stick that are nearly
identical. The only difference is that the floppy's boot image includes Fsys.floppy, and the USB stick has io-usb and
Fsys.umass instead.
When I boot from floppy, fdisk shows correct disk geometry, i.e. 255 heads 63 sectors.
When I boot from USB, fdisk shows incorrect geometry, i.e. 64 heads 32 sectors.
Specifying "fsys -i" to Fsys.atapi seems to make no difference.
Manually specifying disk geometry to Fsys.atapi is not a viable option because I don't know the disk size in advance. If
it's less than about 4GB, then the BIOS will likely *not* have chosen 255 heads 63 sectors.
Any suggestions?
I've also noticed something weird...
# fdisk /dev/hd0 info
(in summary: 76319 cylinders, 64 heads, 32 sectors)
# fdisk /dev/hd0 add t77 1024
# fdisk /dev/hd0 info
0: (77) beg(h=1,s=1,c=0) end(h=63,s=224,c=255) off=32, size=2097120
What's with the wacky end geometry? Is this just a display bug?
Sector 224 should be impossible; that field is only 6 bits long.
(Maybe that's it; "0xe0 0xff" should be interpreted as s=32 c=1023, not s=224 c=255 ... right?)
|
|
|