1
Archos forum / Av500 As Usb Disk For Pc Boot ?
« on: July 01, 2006, 01:35:58 pm »
Well it seems there is a good chance to boot on OS from the Archos AV500 and have it still working as a PMP when not connected via USB to a PC.
Before I started to make any changes I analyzed the MBR, the partition boot sectors, and all the surrounding sectors.
There is one partition in the partition table. It is marked as "not bootable" (0x00)
Note: sector counting starts with 0. Sector 0 does contain the MBR.
In sector 6 we can find a standard fat 32 back-up boot sector "MSWIN4.1" with standard boot code, and the continuation of this boot code in sector 8.
However in the real boot sector 63 there is a non-standard boot sector. Non standard in respect to the boot code that is present in sector 63 and the boot code that continues in sector 65. The backup boot sectors for the partition can be found in sector 69-71 and is the same as in sector 63-65.
The BIOS Parameter Block has several differences with the BPP stored in back-up boot sector #6. Most interesting is that the number of heads is only noted with 240 instead of 255.
Without any changes to the Archos hard drive. When the PC is set to boot from USB it displays the error message from the MBR "error loading OS".
After setting the partition to "bootable" (0x80) in the MBR, the boot process continues to the partition boot sector and displays the message "Invalid system disk" "Replace disk, and then press any key"
After I copied the required MS-DOS files into the Archos root directory the error still comes up. It does not start DOS.
As a next attempt I have copied the boot code from Sector 6-8 to the sector 63-65. The BIOS parameter block was not copied. I kept the old BPB in sector 63.
And now the PC is starting MS-DOS from the Archos hard drive. Perfect.
After disconnecting the AV500 from the PC and testing out all the PM functions, switching it on and off it seems it all all still working as normal. No side effects with the new boot code in the boot sector.
Next I'll work on getting Win XP onto the Archos and make the PC boot from it.
Before I started to make any changes I analyzed the MBR, the partition boot sectors, and all the surrounding sectors.
There is one partition in the partition table. It is marked as "not bootable" (0x00)
Note: sector counting starts with 0. Sector 0 does contain the MBR.
In sector 6 we can find a standard fat 32 back-up boot sector "MSWIN4.1" with standard boot code, and the continuation of this boot code in sector 8.
However in the real boot sector 63 there is a non-standard boot sector. Non standard in respect to the boot code that is present in sector 63 and the boot code that continues in sector 65. The backup boot sectors for the partition can be found in sector 69-71 and is the same as in sector 63-65.
The BIOS Parameter Block has several differences with the BPP stored in back-up boot sector #6. Most interesting is that the number of heads is only noted with 240 instead of 255.
Without any changes to the Archos hard drive. When the PC is set to boot from USB it displays the error message from the MBR "error loading OS".
After setting the partition to "bootable" (0x80) in the MBR, the boot process continues to the partition boot sector and displays the message "Invalid system disk" "Replace disk, and then press any key"
After I copied the required MS-DOS files into the Archos root directory the error still comes up. It does not start DOS.
As a next attempt I have copied the boot code from Sector 6-8 to the sector 63-65. The BIOS parameter block was not copied. I kept the old BPB in sector 63.
And now the PC is starting MS-DOS from the Archos hard drive. Perfect.
After disconnecting the AV500 from the PC and testing out all the PM functions, switching it on and off it seems it all all still working as normal. No side effects with the new boot code in the boot sector.
Next I'll work on getting Win XP onto the Archos and make the PC boot from it.