SSD only usage

Post Reply
pieai
Posts: 3
Joined: Wed Apr 06, 2022 5:06 pm
languages_spoken: english
ODROIDs: odroid-m1
Has thanked: 0
Been thanked: 0
Contact:

SSD only usage

Post by pieai »

Hi, I am Patrick and the M1 is my first Odroid SBC.

I wanted to use SSD only and remove SD after installation. But I could not find an install-to-ssd.sh ;-) So I created an boot and root partition on the ssd and copied /boot to new boot partition and the rest to the new ssd (like they did at https://gist.github.com/crazyquark/ae40 ... cbdc8fe0b3):
rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/ssd
I changed the UUIds in fstab, changing the ids in /boot was not successful as I did not find a boot.ini.

Booting starts but hangs without the SD card. What am I missing? Would it be possible?

Have a great day and thanks in advance!
Patrick

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: SSD only usage

Post by tobetter »

You do not need such a script or SD card to install an OS to your SSD, at the same time so sorry that we do not have instruction in Wiki yet.

What you have to do is:
1. Connect your SSD to the SATA port and connect its power cable.
2. Connect a micro USB 2.0 cable to the port under USB 3.0 host port at ODROID-M1 to your PC.
3. Power up your ODROID-M1 while your USB keyboard and display are connected, so you will have Petitboot on your display.
4. Select "Exit to shell" on the screen (Petitboot)
5. Run ums /dev/sda, probably it must be /dev/sda if you have connected only one SSD. Then this will appear as USB storage on your PC.
6. On your PC, run balenaEtcher and select the OS image you have downloaded (Ubuntu or Android).
7. Select the USB storage for your SSD on ODROID-M1 and flash the image to it.
8. Once the flashing is done, remove it from the PC and restart your ODROID-M1.
9. Done.

Here is the link to what works for ODROID-N2/N2Plus, the instruction is almost the same.
https://wiki.odroid.com/getting_started ... tg?s[]=otg

User avatar
mctom
Posts: 1677
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1
Location: Gdansk, Poland
Has thanked: 195 times
Been thanked: 214 times
Contact:

Re: SSD only usage

Post by mctom »

Did you mean ums /dev/sda?

I tried to do it on /dev/nvme0 but it didn't work. I wonder if nvme0d1 would work, didn't try that.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: SSD only usage

Post by tobetter »

mctom wrote:
Wed Apr 06, 2022 5:48 pm
Did you mean ums /dev/sda?
Good eyes...thank you, it's fixed.
I tried to do it on /dev/nvme0 but it didn't work. I wonder if nvme0d1 would work, didn't try that.
You must use /dev/nvme0n1, not nvme0d1....my eye is also good. :)
It works, I used to flash it when testing a new image.

You also can use nvme0n1p1 or nvme0n1p2 if you like to change the partition.

User avatar
mctom
Posts: 1677
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1
Location: Gdansk, Poland
Has thanked: 195 times
Been thanked: 214 times
Contact:

Re: SSD only usage

Post by mctom »

I wanted to use the whole new drive (taken from a new laptop, so it had Windows on it probably). I couldn't figure that out, so I booted Ubuntu from USB drive and dd'ed system image on nvme from there.

I wasn't aware /dev/nvme0 is not a drive just like /dev/sda is, only after i lauched lsblk in Ubuntu. It's a learning process for me. :)

But if you already tested that I'm not going to repeat it now. Not unless I'll have to switch to minimal/server to play with MATE. :)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
istanbulls
Posts: 739
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 439 times
Been thanked: 131 times
Contact:

Re: SSD only usage

Post by istanbulls »

tobetter wrote:
Wed Apr 06, 2022 5:37 pm
You do not need such a script or SD card to install an OS to your SSD, at the same time so sorry that we do not have instruction in Wiki yet.

What you have to do is:
1. Connect your SSD to the SATA port and connect its power cable.
2. Connect a micro USB 2.0 cable to the port under USB 3.0 host port at ODROID-M1 to your PC.
3. Power up your ODROID-M1 while your USB keyboard and display are connected, so you will have Petitboot on your display.
4. Select "Exit to shell" on the screen (Petitboot)
5. Run ums /dev/sda, probably it must be /dev/sda if you have connected only one SSD. Then this will appear as USB storage on your PC.
6. On your PC, run balenaEtcher and select the OS image you have downloaded (Ubuntu or Android).
7. Select the USB storage for your SSD on ODROID-M1 and flash the image to it.
8. Once the flashing is done, remove it from the PC and restart your ODROID-M1.
9. Done.

Here is the link to what works for ODROID-N2/N2Plus, the instruction is almost the same.
https://wiki.odroid.com/getting_started ... tg?s[]=otg
my Odroid-M1 is still grappling with customs and I guess it will take a few more days.
netboot-installer not working? if not when will it be active or netboot-installer?

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: SSD only usage

Post by tobetter »

istanbulls wrote:
Wed Apr 06, 2022 7:45 pm
tobetter wrote:
Wed Apr 06, 2022 5:37 pm
You do not need such a script or SD card to install an OS to your SSD, at the same time so sorry that we do not have instruction in Wiki yet.

What you have to do is:
1. Connect your SSD to the SATA port and connect its power cable.
2. Connect a micro USB 2.0 cable to the port under USB 3.0 host port at ODROID-M1 to your PC.
3. Power up your ODROID-M1 while your USB keyboard and display are connected, so you will have Petitboot on your display.
4. Select "Exit to shell" on the screen (Petitboot)
5. Run ums /dev/sda, probably it must be /dev/sda if you have connected only one SSD. Then this will appear as USB storage on your PC.
6. On your PC, run balenaEtcher and select the OS image you have downloaded (Ubuntu or Android).
7. Select the USB storage for your SSD on ODROID-M1 and flash the image to it.
8. Once the flashing is done, remove it from the PC and restart your ODROID-M1.
9. Done.

Here is the link to what works for ODROID-N2/N2Plus, the instruction is almost the same.
https://wiki.odroid.com/getting_started ... tg?s[]=otg
my Odroid-M1 is still grappling with customs and I guess it will take a few more days.
netboot-installer not working? if not when will it be active or netboot-installer?
Netboot Installer is not ready and I would build/test it this weekend but not sure it will work. Since the installer for ODROID-M1 becomes a bit different than ODROID-N2/C4/HC4 which is my fault. Wish it happens sometime soon by early next week. :crossfinger:

User avatar
istanbulls
Posts: 739
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 439 times
Been thanked: 131 times
Contact:

Re: SSD only usage

Post by istanbulls »

tobetter wrote:
Wed Apr 06, 2022 7:58 pm
istanbulls wrote:
Wed Apr 06, 2022 7:45 pm
tobetter wrote:
Wed Apr 06, 2022 5:37 pm
You do not need such a script or SD card to install an OS to your SSD, at the same time so sorry that we do not have instruction in Wiki yet.

What you have to do is:
1. Connect your SSD to the SATA port and connect its power cable.
2. Connect a micro USB 2.0 cable to the port under USB 3.0 host port at ODROID-M1 to your PC.
3. Power up your ODROID-M1 while your USB keyboard and display are connected, so you will have Petitboot on your display.
4. Select "Exit to shell" on the screen (Petitboot)
5. Run ums /dev/sda, probably it must be /dev/sda if you have connected only one SSD. Then this will appear as USB storage on your PC.
6. On your PC, run balenaEtcher and select the OS image you have downloaded (Ubuntu or Android).
7. Select the USB storage for your SSD on ODROID-M1 and flash the image to it.
8. Once the flashing is done, remove it from the PC and restart your ODROID-M1.
9. Done.

Here is the link to what works for ODROID-N2/N2Plus, the instruction is almost the same.
https://wiki.odroid.com/getting_started ... tg?s[]=otg
my Odroid-M1 is still grappling with customs and I guess it will take a few more days.
netboot-installer not working? if not when will it be active or netboot-installer?
Netboot Installer is not ready and I would build/test it this weekend but not sure it will work. Since the installer for ODROID-M1 becomes a bit different than ODROID-N2/C4/HC4 which is my fault. Wish it happens sometime soon by early next week. :crossfinger:
then our prayers are with you. :) I think netboot-installer takes odroids to another dimension with petitboot. bless your hands. ;)

pieai
Posts: 3
Joined: Wed Apr 06, 2022 5:06 pm
languages_spoken: english
ODROIDs: odroid-m1
Has thanked: 0
Been thanked: 0
Contact:

Re: SSD only usage

Post by pieai »

OK, that worked ;-)

I am using an NVME SSD so I only connected the SSD and the OTG cable. Started Petitboot and exited it to run:

Code: Select all

ums /dev/nvme0n1
and flashed very fast and unproblematic. Redetecting the discs and it worked.

Funny warning of etcher ;-)
Image


Thank you very much!

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: SSD only usage

Post by tobetter »

pieai wrote:
Thu Apr 07, 2022 3:28 am
OK, that worked ;-)

I am using an NVME SSD so I only connected the SSD and the OTG cable. Started Petitboot and exited it to run:

Code: Select all

ums /dev/nvme0n1
and flashed very fast and unproblematic. Redetecting the discs and it worked.

Funny warning of etcher ;-)
Image


Thank you very much!
Cool, glad to hear it works flawlessly. Congratulations!!
I also have the same warning whenever I flash the image. LoL

pieai
Posts: 3
Joined: Wed Apr 06, 2022 5:06 pm
languages_spoken: english
ODROIDs: odroid-m1
Has thanked: 0
Been thanked: 0
Contact:

Re: SSD only usage

Post by pieai »

As I could not figure out, why the openssh-server was not running I simply reinstalled it:

Code: Select all

apt reinstall openssh-server
And changing password before made me very happy!

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: SSD only usage

Post by tobetter »

pieai wrote:
Thu Apr 07, 2022 3:34 am
As I could not figure out, why the openssh-server was not running I simply reinstalled it:

Code: Select all

apt reinstall openssh-server
And changing password before made me very happy!
Good question, this problem is not really solved yet since it works 80% on my end. When the OS image boots, it has a script a.k.a "firstboot" which extend the file system to use your storage and it also recreate a ssh keys once at the first boot to have different keys over all OS installation. Probably the ssh server holds the prior keys with image beside later actual key is changed by first boot.

User avatar
mctom
Posts: 1677
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1
Location: Gdansk, Poland
Has thanked: 195 times
Been thanked: 214 times
Contact:

Re: SSD only usage

Post by mctom »

Oh yes, that reminds me I had to enable sshd service, otherwise it didn't work.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

zupet
Posts: 175
Joined: Tue Dec 26, 2017 11:13 pm
languages_spoken: korean,english
ODROIDs: HC1
Has thanked: 5 times
Been thanked: 35 times
Contact:

Re: SSD only usage

Post by zupet »

Image

I used this method.

1. copy linux image file, ubuntu-20.04-server-odroidm1-20220318.img, to empty sdcard. just copy file.
2. insert ssd and sdcard and power M1.
3. enter petitboot console mode.
4. go to /usr/var/petitboot/mnt/dev/mmcblk1p1 and check copied image file.
5. dd if=ubuntu-20.04-server-odroidm1-20220318.img of=/dev/nvme0n1
6. sync
7. reboot or exit console. petitboot will show nvme's boot partition.

petitboot recognize msdos, gpt partition table and ext4, fat32 partitions.
I didn't tested usb memory, but it will work.

sawas
Posts: 14
Joined: Wed Apr 07, 2021 2:23 am
languages_spoken: english
ODROIDs: Odroid-HC4
Has thanked: 5 times
Been thanked: 0
Contact:

Re: SSD only usage

Post by sawas »

Is it possible to use this instruction for hc4?

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: SSD only usage

Post by tobetter »

sawas wrote:
Sat Jun 18, 2022 5:02 pm
Is it possible to use this instruction for hc4?
These two instructions work on HC4.
viewtopic.php?p=346557#p346557
viewtopic.php?p=346807#p346807

sawas
Posts: 14
Joined: Wed Apr 07, 2021 2:23 am
languages_spoken: english
ODROIDs: Odroid-HC4
Has thanked: 5 times
Been thanked: 0
Contact:

Re: SSD only usage

Post by sawas »

Thank you, tobetter!

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest