[haiku-development] Re: booting from partition on flash drive

  • From: Patrick Kelly <kameo76890@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 20 Sep 2009 20:41:36 -0400

On Sep 20, 2009, at 8:35 PM, Alan Searchwell wrote:

> First let me  say congrats to the development team and express my  
> gratitude. You guys are great!
>
> I have a Intel D945GCLF2 motherboard with the 82945G (ICH7) chipset,  
> Intel GMA 950 graphics and Realtek High Definition Audio (AC?97). I  
> have been trying to boot haiku off a USB flash drive for a while and  
> not had any success. I had ubuntu 9.04 on the same flash drive  
> before and it booted on almost everything I tried it on. I decided  
> to see if I could sort this out on my own and started doing some  
> poking around. The first thing I noticed is that when prepared by  
> using dd to write the raw image to the flash drive, partitioning  
> software sees the drive as unpartitioned space. The motherboards  
> that fail to boot from the fash drive just do not recognize any  
> bootable partitions so they ignore it. I decided to create a  
> unformatted 700mb partition at the start of the flash drive, flag it  
> as a boot partition and use dd to write the image to the partition.  
> I then faced the problem of not being able to run makebootable and  
> followed the instructions on this page:
>
> http://www.haiku-os.org/blog/mmlr/2009-02-08/makebootable_what_and_why_and_how_do_it_manually
>
> It still wouldn't boot so I tried the solution proposed in the  
> following reply on the forums
>
> http://www.haiku-os.org/community/forum/haiku_raw_image_install_no_boot_volume_found#comment-12388
>
> That worked and I was able to start booting on the intel mobo. The  
> boot procees did not complete but, that'll be the
> subject of another post. Another system on which it previously did  
> not boot was a Gigabyte K8VM800M with VIA K8M800
> Northbridge, VIA VT8237 Southbridge,VIA K8M800(UniChrome?) graphics,  
> VIA Rhine II fast ethernet adapter, AMD Sempron 2600+ Processor and  
> a SB live Value sound card. Now it boots right up. It is the first  
> system that has allowed me to hear any sound from haiku and the  
> built in ethernet also works!
>
> From my observations, using dd to write the raw image to the device  
> produces a drive without a partition table. I suspect that if the  
> BIOS just passes comtrol to the code in the MBR, such a device will  
> boot which is what it seems most (all?) laptops do. On the other  
> hand, I am guessing that some BIOSes scan the partition table and  
> pass control to the bootsector code in the active partition in which  
> case that will not work and I suspect is the case for the two  
> desktops I have been trying.

Odd, have you tried the Live-CD?
>
> Creating a 630 MB partition and using dd to write the raw image to  
> it allows for more partitions on the flash drive to use any space  
> over and above the 629 MB that the haiku image occupies. However,  
> writing a suitable mbr to the flash drive and doing the makebootable  
> process manually is not something that less adventurous users are  
> going to do. It was worth it for me as I now have a flash drive that  
> has a chance of booting on more systems.
>
> Just wondering if it would be too much to ask for someone to produce  
> makebootable binaries for linux and windows that could make a beos  
> partition on a flash drive bootable? A standard MBR that can boot  
> any OS in a primary partition would also be a nice touch.

With Haiku in Alpha it might be too late to ask for that.
>
> Anybody see any serious problems with this approach?

Your approach should be fine, only one way to find out.
>
> Alan                                  
> _________________________________________________________________
> Show them the way! Add maps and directions to your party invites.
> http://www.microsoft.com/windows/windowslive/products/events.aspx
>


Other related posts: