|
2008-08-21
, 17:06
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#2
|
USB_HDD="sda" MENU_5_NAME="External USB HDD" MENU_5_ID="usbsda" MENU_5_DEVICE="sda2" MENU_5_MODULES="mbcache ext3" MENU_5_FSTYPE="ext3" MENU_5_FSOPTIONS="noatime" [ -d "/sys/block/${USB_HDD}/${MENU_5_DEVICE}" ] || MENU_5_NAME="(${MENU_5_NAME}) N/A"
|
2008-08-21
, 17:11
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#3
|
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:
Perhaps there's something that has to be done to put the N800 into host mode (I do have the OTG dongle)?Code:USB_HDD="sda" MENU_5_NAME="External USB HDD" MENU_5_ID="usbsda" MENU_5_DEVICE="sda2" MENU_5_MODULES="mbcache ext3" MENU_5_FSTYPE="ext3" MENU_5_FSOPTIONS="noatime" [ -d "/sys/block/${USB_HDD}/${MENU_5_DEVICE}" ] || MENU_5_NAME="(${MENU_5_NAME}) N/A"
MENU_4_NAME="USB hard drive"
MENU_4_ID="usb"
usb)
root_dev=sda1
root_dev_name="USB hard drive"
root_dev_set=1
root_fstype=""
root_fsoptions=""
;;
MENU_4_USBMODE=host
|
2008-08-21
, 18:43
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#4
|
MENU_5_USBMODE=host
|
2008-08-22
, 05:55
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#5
|
|
2008-08-22
, 07:12
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#6
|
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)?
|
2008-08-22
, 15:29
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#7
|
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?
The Following User Says Thank You to Benson For This Useful Post: | ||
|
2008-08-22
, 17:45
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#8
|
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.
|
2008-08-22
, 23:06
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#9
|
|
2008-08-22
, 23:26
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#10
|
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.
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
Last edited by qole; 2008-08-24 at 00:25.