Why Nostr? What is Njump?
2023-04-15 03:01:37
in reply to

yort on Nostr: so if you have flashed Ubuntu Server to an sd card, booted from it on your rpi 4, but ...

so if you have flashed Ubuntu Server to an sd card, booted from it on your rpi 4, but now you want to install Ubuntu Server onto your SSD that’s attached over USB storage, here’s what you do:

- wget “url.to.ubuntu.server.img”
- extract that file using “xz -d”
- use “sudo dd if= of= …” to flash the .img to your SSD (/dev/sda)
- mount the boot drive (probably /dev/sda1)
- then use “sudo cp” to copy the “meta-data”, “user-data” and “network-config” files FROM your sd card boot drive TO your currently mounted SSD boot drive
- then “sudo umount -l /dev/sda1” to unmount the SSD boot drive
- “sudo shutdown -h now” to shutdown the rpi 4
- unplug power from rpi4, remove sd card, and then power it on
- it should then boot directly from the SSD and then automatically use those files you copied over to preconfigure (i.e. “seed”) your os with the same wifi / SSD details that you used when you flashed the os to your sd card

so now you should be able to “ssh user@hostname”, then provide your password, and you should be running your fresh install of Ubuntu Server from your SSD!!

(“lsblk” to confirm)
Author Public Key
npub156ndcn2xqlav8wrty2gk8x9qtmen7wx2uhl2hmrxsvkwq2duza2sw03y3s