Forum

Full Version: Fail to Boot from USB stick when a USB External HD attached at the same time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I had my PI boot up from a USB stick, i followed tutorial from this forum, everything works fine until i plugged my USB hard drive to storage torrent downloads.

It appears when Pi reboot with both USB stick and USB hard drive, it wont boot up. If I un-plug hard drive, it went fine as usual.

My guess is Pi confused about two usb device, and trying to boot up from the hard drive.

This is my cmdline.txt:

dwc_otg.fiq_fix_enable=1 sdhci-bcm2708.sync_after_dma=0 dwc_otg.lpm_enable=0 console=tty2 root=/dev/sda2 rootfstype=ext4 rootwait logo.nologo quiet loglevel=0 splash

What i do right now is unplug HDD when Pi reboot, and plug it back after it boot-up. But this way HDD get mount to different path everytime. Some time /media/usb2, some time /media/usb3, which screw up my symbolic links like /home/xbian/downloads, causing transmission problems.

Guys, how can i solve this problem?

P.S.

some command output i think maybe helpful
xbian@xbian ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. JM20329 SATA Bridge
Bus 001 Device 004: ID 0951:1641 Kingston Technology

xbian@xbian ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.6G 1.4G 2.2G 39% /
/dev/root 3.6G 1.4G 2.2G 39% /
devtmpfs 187M 0 187M 0% /dev
tmpfs 38M 272K 38M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda1 34M 11M 24M 32% /media/usb0
/dev/sda2 3.6G 1.4G 2.2G 39% /media/usb1
tmpfs 75M 0 75M 0% /run/shm
/dev/mmcblk0p1 34M 11M 24M 32% /boot
/dev/sdb2 895G 30G 820G 4% /media/usb2
/dev/sdb1 489G 81G 408G 17% /media/usb3


I have two partition on HDD, i use the 895G one to save downloads.
Does it help if you connect the USB stick to the other usb stick (so switch the hdd and the stick)?
(10th May, 2013 11:01 PM)snowf0x Wrote: [ -> ]What i do right now is unplug HDD when Pi reboot, and plug it back after it boot-up. But this way HDD get mount to different path everytime. Some time /media/usb2, some time /media/usb3, which screw up my symbolic links like /home/xbian/downloads, causing transmission problems.

you are probably accessing the usb attached devices via /media folder ?

can you please check the following:

1) attach drive
2) try to access the device via /var/run/usbmount
3) check with whatever process needed to change path under /media, but then check, if the names are preserved in /var/run/usbmount?

mk
Reference URL's