Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Love makes the world go 'round, with a little help from intrinsic angular momentum.


computers / comp.sys.raspberry-pi / Re: USB boot

SubjectAuthor
* USB bootThe Natural Philosopher
`* Re: USB bootbob prohaska
 +- Re: USB bootMark
 `* Re: USB bootThe Natural Philosopher
  `* Re: USB bootbob prohaska
   `- Re: USB bootThe Natural Philosopher

1
USB boot

<ugp7u8$3pssb$3@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7608&group=comp.sys.raspberry-pi#7608

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: USB boot
Date: Wed, 18 Oct 2023 19:25:12 +0100
Organization: A little, after lunch
Lines: 20
Message-ID: <ugp7u8$3pssb$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 18 Oct 2023 18:25:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c5ccef17b4d1ea45677e5f7d3eed054e";
logging-data="3994507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rZTWV3RTZ7eD+ttmkrEzWjvJph0R/tVs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kqklZhmBLhFaxP/a9hzWfpvmg3I=
Content-Language: en-GB
 by: The Natural Philosop - Wed, 18 Oct 2023 18:25 UTC

I am trying to get a 4B to SSD USB boot

I cloned a working SD card using DD, but that does not work ..the boot
partition is run OK from the USB but then it insists on mounting the SD
card as the rootfs.

If the SD card is not installed it wont boot

Of course the PARTUUID of the SSD and the USB are the same. but it wont
mount the USB.

I cant find a tool to modify PARTUUID : otherwise cmdline.txt and
fstab are trivial to change.

--
Ideas are more powerful than guns. We would not let our enemies have
guns, why should we let them have ideas?

Josef Stalin

Re: USB boot

<ugpvqm$3v7bl$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7613&group=comp.sys.raspberry-pi#7613

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bp...@www.zefox.net (bob prohaska)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: USB boot
Date: Thu, 19 Oct 2023 01:12:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <ugpvqm$3v7bl$1@dont-email.me>
References: <ugp7u8$3pssb$3@dont-email.me>
Injection-Date: Thu, 19 Oct 2023 01:12:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="74be65aba3cc9a3eba582aad645c78c4";
logging-data="4169077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9R65MEhrnWGkyVxrD8USM6pi3X4W8MnM="
User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/12.4-STABLE (arm))
Cancel-Lock: sha1:ORf2poAm2AVYlTEnwCtT4NMLtxc=
 by: bob prohaska - Thu, 19 Oct 2023 01:12 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> I am trying to get a 4B to SSD USB boot
>
> I cloned a working SD card using DD, but that does not work ..the boot
> partition is run OK from the USB but then it insists on mounting the SD
> card as the rootfs.
>
> If the SD card is not installed it wont boot
>
>
> Of course the PARTUUID of the SSD and the USB are the same. but it wont
> mount the USB.

I believe you don't need the microSD at all.

What happens if you dd the image onto the ssd and leave the microSD
out of the picture entirely? That works for me using a mechanical disk.

hth,

bob prohaska

Re: USB boot

<0e79a7f55a.Mark@mark.poppyland.plus.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7615&group=comp.sys.raspberry-pi#7615

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 19 Oct 2023 06:08:32 +0000
Subject: Re: USB boot
Newsgroups: comp.sys.raspberry-pi
From: mar...@poppyland.plus.com (Mark)
X-Editor: EmailEdit 2.04
Date: Thu, 19 Oct 2023 07:08:20 +0100
Message-ID: <0e79a7f55a.Mark@mark.poppyland.plus.com>
References: <ugp7u8$3pssb$3@dont-email.me> <ugpvqm$3v7bl$1@dont-email.me>
Organization: Getting better...
User-Agent: Messenger-Pro/9.00 (MsgServe/9.00) (RISC-OS/5.28) NewsHound/v1.52-32
Lines: 32
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-QCAiDPvnCpT8ZCo/Cy96sa7rTsiWNTHTy9v8bLJdFAyTfKuoV8f6wqslbvwxE1MWLjmjB9wHyD4UkHn!7/4LIwB2sxl5HdrB39TpVGKBJeevZ71SAEnGU8lTjYj+AKCLOAGhz++c84FEWXHALRZfrRPIvLIc!ebxjMvLtFZlO
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Mark - Thu, 19 Oct 2023 06:08 UTC

In message <ugpvqm$3v7bl$1@dont-email.me>
bob prohaska <bp@www.zefox.net> wrote:

> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> I am trying to get a 4B to SSD USB boot
>>
>> I cloned a working SD card using DD, but that does not work ..the boot
>> partition is run OK from the USB but then it insists on mounting the SD
>> card as the rootfs.
>>
>> If the SD card is not installed it wont boot
>>
>>
>> Of course the PARTUUID of the SSD and the USB are the same. but it wont
>> mount the USB.

> I believe you don't need the microSD at all.

> What happens if you dd the image onto the ssd and leave the microSD
> out of the picture entirely? That works for me using a mechanical disk.

> hth,

> bob prohaska

- and for me, using SSD only. But do I remember a one-time non-reversable
fix on the RPi3 that needed to be agreed-to initially?

--
Mark J
Using RISCOS 5.28 on RaspberryPi3B+ and Linux on RaspberryPi4B+8GB
Rest in peace Beagle and Pandaboards

Re: USB boot

<ugqneo$7il8$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7617&group=comp.sys.raspberry-pi#7617

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: USB boot
Date: Thu, 19 Oct 2023 08:56:08 +0100
Organization: A little, after lunch
Lines: 34
Message-ID: <ugqneo$7il8$1@dont-email.me>
References: <ugp7u8$3pssb$3@dont-email.me> <ugpvqm$3v7bl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Oct 2023 07:56:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="911f13481433d253c9b72b7330d6d322";
logging-data="248488"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3EvbBfLMI1/eX1nXIz7s2ICM9yk5h7WM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hvgOhilSPBTNqxzjD4EMmHB7r74=
Content-Language: en-GB
In-Reply-To: <ugpvqm$3v7bl$1@dont-email.me>
 by: The Natural Philosop - Thu, 19 Oct 2023 07:56 UTC

On 19/10/2023 02:12, bob prohaska wrote:
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> I am trying to get a 4B to SSD USB boot
>>
>> I cloned a working SD card using DD, but that does not work ..the boot
>> partition is run OK from the USB but then it insists on mounting the SD
>> card as the rootfs.
>>
>> If the SD card is not installed it wont boot
>>
>>
>> Of course the PARTUUID of the SSD and the USB are the same. but it wont
>> mount the USB.
>
> I believe you don't need the microSD at all.
>
> What happens if you dd the image onto the ssd and leave the microSD
> out of the picture entirely? That works for me using a mechanical disk.
>
That's what I did but it still wouldn't boot.

But I have stumbled on an arrangement that now actually works that way.

> hth,
>
> bob prohaska
>

--
“Politics is the art of looking for trouble, finding it everywhere,
diagnosing it incorrectly and applying the wrong remedies.”
― Groucho Marx

Re: USB boot

<ugria9$e0lj$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7692&group=comp.sys.raspberry-pi#7692

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bp...@www.zefox.net (bob prohaska)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: USB boot
Date: Thu, 19 Oct 2023 15:34:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <ugria9$e0lj$1@dont-email.me>
References: <ugp7u8$3pssb$3@dont-email.me> <ugpvqm$3v7bl$1@dont-email.me> <ugqneo$7il8$1@dont-email.me>
Injection-Date: Thu, 19 Oct 2023 15:34:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="74be65aba3cc9a3eba582aad645c78c4";
logging-data="459443"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197kVTCVbF6leUTKaBoGLBnR5QFsIhoaPU="
User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/12.4-STABLE (arm))
Cancel-Lock: sha1:Nljif5bJ7Asj4LuGh4xq2HEu0z4=
 by: bob prohaska - Thu, 19 Oct 2023 15:34 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 19/10/2023 02:12, bob prohaska wrote:
>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>> I am trying to get a 4B to SSD USB boot
>>>
>>> I cloned a working SD card using DD, but that does not work ..the boot
>>> partition is run OK from the USB but then it insists on mounting the SD
>>> card as the rootfs.
>>>
>>> If the SD card is not installed it wont boot
>>>
>>>
>>> Of course the PARTUUID of the SSD and the USB are the same. but it wont
>>> mount the USB.
>>
>> I believe you don't need the microSD at all.
>>
>> What happens if you dd the image onto the ssd and leave the microSD
>> out of the picture entirely? That works for me using a mechanical disk.
>>
> That's what I did but it still wouldn't boot.
>
> But I have stumbled on an arrangement that now actually works that way.
>

Can you describe what you did?

Thanks for writing,

bob prohaska

Re: USB boot

<ugrkgn$egqa$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7693&group=comp.sys.raspberry-pi#7693

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: USB boot
Date: Thu, 19 Oct 2023 17:12:06 +0100
Organization: A little, after lunch
Lines: 122
Message-ID: <ugrkgn$egqa$1@dont-email.me>
References: <ugp7u8$3pssb$3@dont-email.me> <ugpvqm$3v7bl$1@dont-email.me>
<ugqneo$7il8$1@dont-email.me> <ugria9$e0lj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Oct 2023 16:12:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="911f13481433d253c9b72b7330d6d322";
logging-data="475978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8OzzgMKS+MPN1DXtDckImWn6IYFSEt74="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:aIs25FWwUpq3mUFVgOpfeHMZ5qs=
Content-Language: en-GB
In-Reply-To: <ugria9$e0lj$1@dont-email.me>
 by: The Natural Philosop - Thu, 19 Oct 2023 16:12 UTC

On 19/10/2023 16:34, bob prohaska wrote:
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 19/10/2023 02:12, bob prohaska wrote:
>>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>> I am trying to get a 4B to SSD USB boot
>>>>
>>>> I cloned a working SD card using DD, but that does not work ..the boot
>>>> partition is run OK from the USB but then it insists on mounting the SD
>>>> card as the rootfs.
>>>>
>>>> If the SD card is not installed it wont boot
>>>>
>>>>
>>>> Of course the PARTUUID of the SSD and the USB are the same. but it wont
>>>> mount the USB.
>>>
>>> I believe you don't need the microSD at all.
>>>
>>> What happens if you dd the image onto the ssd and leave the microSD
>>> out of the picture entirely? That works for me using a mechanical disk.
>>>
>> That's what I did but it still wouldn't boot.
>>
>> But I have stumbled on an arrangement that now actually works that way.
>>
>
> Can you describe what you did?
>
> Thanks for writing,
>
> bob prohaska
>

I am not sure. Because the fact is that I was looking at the green LED
and noting that it didn't behave when I took the SD card out.

At one point I was booting from the USB but then loading the SD card as
root.

I ended up doing several things - I relabelled the USB rootfs UUID, and
used THAT in cmdline.txt and /etc/fstab together with a 'rootdelay=4'
or somesuch. At which point I thought it hadn't booted because the green
light was still going frantic, but then I noticed I had an SSD connection!

cmdline.txt
========

console=serial0,115200 console=tty1
root=UUID=606f7030-0f67-489c-b83b-06166a3ddc2e rootfstype=ex
t4 fsck.repair=yes rootwait=4

It turns out that the green light behaviour is tied to SD card access
and there is a magic spell (dtparam) that stops the pi looking forlornly
for its missing SD card, forever..

dtparam=sd_poll_once

in config.txt stops THAT.

Then i patched /etc/fstab

proc /proc proc defaults 0 0
PARTUUID=5f594add-01 /boot/firmware vfat defaults 0 2
UUID=606f7030-0f67-489c-b83b-06166a3ddc2e / ext4
defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that

I did all that because I have had trouble cloning disks before with non
unique disk ids.

Having dome all that the 'resize partition on boot' worked and my 16GB
cloned SD card image expanded to the 120GB ssd that I half-inched out
of a laptop whose plastic had gone all 'organic' me and disintegrated.

Which one of these steps was the critical one, I do not know.

If you are bringing up a headless bookworm (and who wouldn't!) to boot
off an USB SSD these may be helpful

Also the connectors - USB to SATA - featured the ASmedia chipset

$lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA
6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge,
ASM1153E SATA 6Gb/s bridge
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I got these from the Pi Hut (UK) and they have been flawless.

Now expecting one cheapo 2TB SSD.

https://www.amazon.co.uk/dp/B07YD5F561?psc=1&ref=ppx_yo2ov_dt_b_product_details

It turns out that cheaper slower disks use less power and I MAY be able
to simply put in 3SSDS. The 120GB one is really low power.

And still stay under 1.2A peak USB current. I will report back on that.

Otherwise I should be able to work with two 2TB drives in a partially
mirrored config.

The ultimate thing is going to be a cigar box sized server, running on
less than 6W of power with gigabit Ethernet capability.

Nothing about the speed of the Pi4B on 1GB RAM is any cause for concern
at the moment.

In fact although documentations is sporadic, the hardware quality on the
Raspberry Pis and their price-performance is outstanding

--
“It is hard to imagine a more stupid decision or more dangerous way of
making decisions than by putting those decisions in the hands of people
who pay no price for being wrong.”

Thomas Sowell

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor