Autoboot from SSD

Post Reply
Viald
Posts: 60
Joined: Thu Aug 01, 2019 6:47 am
languages_spoken: english
Has thanked: 8 times
Been thanked: 4 times
Contact:

Autoboot from SSD

Post by Viald »

Hi.
I'm currently stuck. I did not find any clear explanation to autoboot the N2 from a SSD connected to USB.
Any help will be appreciated.

Thank you.

User avatar
odroid
Site Admin
Posts: 34879
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 943 times
Been thanked: 763 times
Contact:

Re: Autoboot from SSD

Post by odroid »

Update the SPI flash to have the latest Petitboot with an SD card.
viewtopic.php?f=182&t=33873
These users thanked the author odroid for the post:
Viald (Thu Aug 01, 2019 7:57 pm)

Viald
Posts: 60
Joined: Thu Aug 01, 2019 6:47 am
languages_spoken: english
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: Autoboot from SSD

Post by Viald »

Thank you for your quick feedback.
I'll do it. I read all the thread, I saw that the last release of Petitboot is able to detect OS on USB devices, but I didn't see the capability to define a default OS to boot at startup.
My N2 will be headless, it will be a pain to connect keyboard and display after each reboot.

mad_ady
Posts: 8323
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 435 times
Contact:

Re: Autoboot from SSD

Post by mad_ady »

The optiin is mentioned in the thread. By default it boots the first OS in the list after 5-10s. If you have only one, it should be fine.

Viald
Posts: 60
Joined: Thu Aug 01, 2019 6:47 am
languages_spoken: english
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: Autoboot from SSD

Post by Viald »

Sorry. I didn't see it.

I upgraded, Petitboot sees the USB SSD disk, and yes after 10 seconds it boots the SSD, but without success.
It seems that my SDcard cloning process doesn't work :(
Is there a specific method to clone the SDcard to the USB device ?

Thanks
Last edited by Viald on Fri Aug 02, 2019 5:03 am, edited 1 time in total.

mad_ady
Posts: 8323
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 435 times
Contact:

Re: Autoboot from SSD

Post by mad_ady »

You can use dd to clone the sd to your disk (and manually grow the rootfs), or the odroid-backup script.
These users thanked the author mad_ady for the post:
Viald (Fri Aug 02, 2019 5:06 am)

Viald
Posts: 60
Joined: Thu Aug 01, 2019 6:47 am
languages_spoken: english
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: Autoboot from SSD

Post by Viald »

Meanwhile, I used Etcher to write the ubuntu img file to the SSD. It works fine.
Thank you all for your precious help.

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Autoboot from SSD

Post by woodyl »

I'm trying to get my N2 to boot into a USB stick from from petitboot. I have installed the latest petitboot version. I have installed Ubuntu minimal on an SD card and it boots up fine when installed in the SD card slot. When I set the switch to SPI and try to boot the same SD card from a USB port, it doesn't boot. Is this a problem with the partitions on the SD card? Do they have to be formatted as ext4 or labeled a certain way?

mad_ady
Posts: 8323
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 573 times
Been thanked: 435 times
Contact:

Re: Autoboot from SSD

Post by mad_ady »

Though I have not tried it, it should work the way you describe it. Does petitboot show anything in its menu when usb reader is connected?
Can you drop into a shell and run

Code: Select all

dmesg | grep sd
blkid
mount | grep petitboot

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Autoboot from SSD

Post by woodyl »

I got it set up to boot into a USB drive directly from Petitboot. See this thread: viewtopic.php?t=33873

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests