thradtke
Posts: 491
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

boot from external HDD/hub

Postby thradtke » Wed Sep 19, 2012 5:09 am

Is it possible to boot an OS from a hard disk connected via external hub? I've installed Raspbian but booting stops with a notification that /dev/sda1 isn't found. Is there anything I can do about it?

Thanks!
Rocket Scientist.
User avatar
Lob0426
Posts: 2156
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact:

Re: boot from external HDD/hub

Postby Lob0426 » Wed Sep 19, 2012 6:00 am

Yes it works just fine for me.
One thing to try is /sda2 or just /sda

Make sure you have this in cmdline.txt and that there is a space before and after it. You should have changed it from "/dev/mmcblk0p2" to "/dev/sda1"

Code: Select all

root=/dev/sda1

Make sure you have the right rootfs type stated in cmdline.txt also.

Code: Select all

rootfstype=ext4
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
thradtke
Posts: 491
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: boot from external HDD/hub

Postby thradtke » Wed Sep 19, 2012 6:19 am

Lob0426 wrote:Yes it works just fine for me.
One thing to try is /sda2 or just /sda

I've created partitions 1 (ext4) and 2 (swap), but I'll try sda tonight.

Lob0426 wrote:Make sure you have this in cmdline.txt and that there is a space before and after it. You should have changed it from "/dev/mmcblk0p2" to "/dev/sda1"

I started out with no cmdline.txt at all and had to create it with this single line you quoted, but it appears the systems identifies correctly what I want as it complains about exactly the /dev/sda1 device I stated there. At least, I hope I understand what's going on ;-).

Lob0426 wrote:Make sure you have the right rootfs type stated in cmdline.txt also.

Code: Select all

rootfstype=ext4

Ah, that's promising. I'll try your suggestions tonight. Thanks!
Rocket Scientist.
User avatar
RaTTuS
Posts: 9284
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: boot from external HDD/hub

Postby RaTTuS » Wed Sep 19, 2012 7:30 am

viewtopic.php?t=11123&p=122743 - read the thread
viewtopic.php?f=26&t=10914&p=129474&hilit=resizefs#p122476 <- plus the small typo I made and fixed in a later post
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe
thradtke
Posts: 491
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: boot from external HDD/hub

Postby thradtke » Wed Sep 19, 2012 5:56 pm

Specifying the fs and/or changing sda1 to sda had it all ended up with that nice rainbow screen. boot_delay=1000 and rootdelay=30 did apparently nothing. In no time, I had the screen full of text and still it is reported that /dev/sda1 isn't found.

Powering up all at the same time or having hub and usb HDD powered first than Pi made no difference.

Back without cmdline.txt, Raspbian boots just fine from SD and the USB HDD is accessible at /dev/sda1.

I'm lost here (again).
Rocket Scientist.
thradtke
Posts: 491
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: boot from external HDD/hub

Postby thradtke » Wed Sep 19, 2012 6:22 pm

Whoops ... it wasn't patient enough. After some time, the rainbow screen went away and fun started :-).

Well, it now complains about the swap partition apparently have holes, but I'll try to resolve it myself. At least one thing I should do myself :lol: .

Thanks guys, you are great!
Rocket Scientist.
thradtke
Posts: 491
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: boot from external HDD/hub

Postby thradtke » Thu Sep 20, 2012 4:43 pm

Deinstalled swapfile, removed dphys-swap symlink, created swap partition entry in fstab - solved.

Ha!
Rocket Scientist.