![]() |
[SOLVED] How to boot from USB HD
Hey all hacker-types,
I have created an ext3 partition on my USB HDD, and I cloned my Diablo to it. I then tried to boot from this partition, but my bootmenu just says N/A beside that option. Is it because the USB drive doesn't mount right away? Is there something I have to add to the initfs / bootmenu to get the drive to mount? just for your info, it is /sys/block/sda/sda2 I have several working bootable partitions on my SD cards, I just wanted to try an actual HD and see what the speed difference is... Thanks in advance! EDIT: Got it working! See this post for the how-to. |
Re: How to boot from USB HD?
I notice that older versions of fanoush's bootmenu had a USB HD menu choice. Can someone post the details for that menu item here? fanoush? qwerty12?
This is what I have: Code:
USB_HDD="sda" |
Re: How to boot from USB HD?
Quote:
Anyway, this is the entries I took from bootmenu.sh: Quote:
Quote:
Quote:
|
Re: How to boot from USB HD?
I added the line
Code:
MENU_5_USBMODE=host Still no luck. Is there something else I can try (maybe I'm using the wrong device name? maybe I have to force-mount the partition?), or is there just no support for booting from a second partition on an external drive (sda2)? |
Re: How to boot from USB HD?
MENU_5_USBMODE=host
will let set_usb_mode() to set the IT in host mode but I still don't know at what time we have /sys/block/sda/sda2 .... MENU_5_MODULES="mbcache ext3" MENU_5_FSTYPE="ext3" Don't you need jbd in MENU_5_MODULES ? |
Re: How to boot from USB HD?
Quote:
Most probably there are two issues left (did not try) 1. there may be missing /dev/sda2 device node in initfs 2. there is timing problem, usb storage device discovery is slow 1 can be solved by creating it by hand (in initfs_flasher/initfs/dev) from another shell while initfs_flasher is waiting for dropbear/bootmenu.conf answer 2 can be solved by hacking end of bootmenu.sh, there is case for special ids so you may need to add similar one to the end after line that sets usb mode to host. Simple sleep should be enough. |
Re: How to boot from USB HD?
Quote:
|
Re: How to boot from USB HD?
nhanquy: Yes, I noticed the missing jbd. Thanks for pointing it out. Still no luck.
Benson: I did try booting it, no luck, and I have an OTG adapter so shouldn't that force host mode? fanoush: You've suggested some very interesting things, but your "x can be solved" lines are way too vague and over my head. Can you give me more detailed instructions? Something I can edit in the /initfs_flasher folder before flashing? Lines I can paste into bootmenu.conf? Quote:
Quote:
|
Re: How to boot from USB HD?
Quote:
|
Re: How to boot from USB HD?
Quote:
Quote:
Can I copy the file from /mnt/initfs/dev and drop it into the initfs_flasher folder somewhere and get it to copy over when I flash the initfs? EDIT: AAHHH I think I get it. When the initfs_flasher process gets to the part where it is waiting for an answer from the user about dropbear, I open a second terminal window and "touch .../initfs_flasher/dev/sda2" ? Or maybe "cp .../initfs_flasher/dev/sda1 .../initfs_flasher/dev/sda2"? Then carry on with the install in the first window. Theoretically, this file will get copied over to the initfs. |
All times are GMT. The time now is 00:59. |
vBulletin® Version 3.8.8