![]() |
2008-08-23
, 00:25
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#12
|
I don't have an initfs_flasher folder under /mnt either. I have an initfs folder, but fanoush wrote initfs_flasher.
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.
![]() |
2008-08-23
, 04:41
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#13
|
Either copy the one from the root filesystem (and maybe chmod to match the others in the initfs?) or use mknod.
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-23
, 05:23
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#14
|
case "$default_root" in off) ${T2S} -c poweroff ;; usb2) sleep 5 ;; esac
The Following User Says Thank You to qole For This Useful Post: | ||
![]() |
2008-08-23
, 08:02
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#15
|
![]() |
2008-08-23
, 21:00
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#16
|
![]() |
2008-08-23
, 21:36
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#17
|
![]() |
2008-08-23
, 21:51
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#18
|
![]() |
2008-08-24
, 00:18
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#19
|
insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko insmod /mnt/initfs/lib/modules/2.6.21-omap1/jbd.ko insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext3.ko mount -t ext3 /dev/sda2
MENU_5_USBMODE=host MENU_5_NAME="External USB HDD" MENU_5_ID="usb2" MENU_5_DEVICE="sda2" MENU_5_MODULES="g_ether mbcache jbd ext3" MENU_5_FSTYPE="ext3" MENU_5_FSOPTIONS="noatime"
case "$default_root" in usb2) sleep 7 ;; esac
cp /dev/sda2 initfs_flasher/initfs/dev chmod g-r initfs_flasher/initfs/dev/sda2
![]() |
2008-09-05
, 20:32
|
Posts: 121 |
Thanked: 28 times |
Joined on Oct 2007
|
#20
|
OK, got it booting.
3. I edited my initfs_flasher/bootmenu.conf file to have the following entry:
4. I added the following to the very end of my initfs_flasher/bootmenu.sh file:Code:MENU_5_USBMODE=host MENU_5_NAME="External USB HDD" MENU_5_ID="usb2" MENU_5_DEVICE="sda2" MENU_5_MODULES="g_ether mbcache jbd ext3" MENU_5_FSTYPE="ext3" MENU_5_FSOPTIONS="noatime"
?Code:case "$default_root" in usb2) sleep 7 ;; esac
![]() |
Tags |
bootmenu, external, harddrive, solved, usb |
Thread Tools | |
|
An interesting side effect: When I boot to internal flash or to an SD partition with the HD connected, my home screen comes up with the USB symbol in the tray and the drive already mounted. When I attempt to boot to the HD, and it fails and then boots to the internal flash, there's no USB symbol, nor is the HD attached (nothing showing under /dev)... An unplug-replug gets the drive online again... I wonder why?(EDIT: This is not the case, after all)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-23 at 05:16. Reason: oops, typo