![]() |
![]() |
#1 |
Sep 2002
Database er0rr
2×29×71 Posts |
![]()
This is not urgent. To put the OS onto a Pi is usually done by flashing an SD card and popping it into the Pi. I can dd the image file to a partition of my USB HDD -- the same would apply to an SSD -- but how do I install the bootloader onto the HDD (or SSD)? I can do it with grub install from the Pi OS when it is running, but first I need to boot it
![]() I guess one way would be to boot an SD card with Pi OS on it and then run grub-install with the HDD-boot sector as the target and for the kernel and ramfs on the partition specified. ![]() Last fiddled with by paulunderwood on 2021-11-10 at 21:16 |
![]() |
![]() |
![]() |
#2 |
If I May
"Chris Halsall"
Sep 2002
Barbados
22·7·373 Posts |
![]()
Thanks for this Paul.
I've had similar thoughts in my head on this subject domain. Ever since Mike brought forward that there's a new "Image" for Pi's already deployed (and those we will soon have in our hands)... Let's collaborate on this. Working together works better. Seriously. ![]() ![]() |
![]() |
![]() |
![]() |
#3 |
Sep 2002
Database er0rr
2×29×71 Posts |
![]()
It sure does!
I now think I can skip flashing an SD card and use the (AMD/Intel) flashing computer to run grub-install with the USB HDD boot sector as a target and specify that the partition has vmlinuz and initramfs. But what happened to the boot sector of the image? Is that put onto the beginning of the partition? Last fiddled with by paulunderwood on 2021-11-10 at 21:46 |
![]() |
![]() |
![]() |
#4 |
Sep 2002
Database er0rr
2·29·71 Posts |
![]()
Another method is to install to an SD card and rsync its already formatted partitions to the USB partitions. Then make a few changes to /etc/fstab on the USB copy.. Run grub-install on a file which has been appropriately modified. Untested!
But I can use USB3 on my Odroid N2 -- my Pi 3B+ has only USB2. The N2 has a physical switch that boots petitboot on the SPI flash memory. So after rysnc'ing the OS from the SD card to the already formatted USB partition(s) and changing /etc/fstab on it appropriately, switch to SPI and boot via petitboot. Untested! Last fiddled with by paulunderwood on 2021-11-11 at 06:47 |
![]() |
![]() |
![]() |
#5 |
If I May
"Chris Halsall"
Sep 2002
Barbados
22×7×373 Posts |
![]()
No time. But observing with interest.
Have "kit" to play with. But time is a limited resource... ![]() Edit: Actually... To share... I've been doing a *lot* of rsync'ing recently. Edit.PS: DD is also something to make friends with. Edit.PPS: ddrescue as well. When your clients don't follow your backup instructions, and the "kit" is not cooperating... Last fiddled with by chalsall on 2021-11-11 at 22:32 |
![]() |
![]() |
![]() |
#6 |
Jul 2003
26616 Posts |
![]() |
![]() |
![]() |
![]() |
#7 | |
Sep 2002
Database er0rr
2×29×71 Posts |
![]() Quote:
Last fiddled with by paulunderwood on 2021-11-21 at 17:11 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fun with partition function | Batalov | And now for something completely different | 24 | 2018-02-27 17:03 |
Operating Systems | BWetter246 | Factoring | 4 | 2012-05-13 23:38 |
Operating systems | Xyzzy | Forum Feedback | 26 | 2012-02-29 18:37 |
Have a look at the partition numbers | fivemack | Factoring | 57 | 2007-12-28 10:37 |
Not booting after unplugging graphics card | patrik | Hardware | 3 | 2004-05-24 16:37 |