Vincent Coen wrote to All <=-
Hello All!
Just purchased a pi 4B 8Gb along with Argon One M.2 case and PSU
with a WD 240 SSD M.2 (sata?) 2280 card.
First starting installing Ubuntu O/S (x64) (20.1 LTS server on
the SD card then
after booting with it successfully, realised I could install
direct to the SSD using a USB3 plugged cable connected to a Win
10 laptop so did that and boxed the SSD unit up back up with the
Argon case and started it - great works, installs and configures
the server and sit waiting for me to use bash commands to add
anything else but must have missed the message regarding how, as
I decided to have dinner.
So next again using the Pi O/S install software installed Ubuntu overwriting the SSD with Desktop 21.04? x64 and rebooted.
With the gui fully up and running I loaded a terninal and the
system locked up - solid. Powered off and restarted with the
same thing happening again including without loading terminal.
The case was very warn as I could not use terminal to load the
special script to set up the fan and power button.
I have no idea what is the problem BUT decided to load Bullseye
x64 instead into the SSD and it did its thing including checking
for updates (none) and has
been sitting here running for 2+ hours and yes did load the argon
script :)
Anyone any idea of why the system locked up with Ubuntu desktop ?
I am "assuming" here that 8Gb Ram is more than enough for it !
After the first install of ubuntu (server) onto the SD card, I
have not continued to update it or use it, so it is not installed
in the Pi at all.
I would guess that it's because of "X64". Surprised it even installed. The RPi is an ARM processor and not capable of 64 bit X64, I believe.
I would guess that it's because of "X64". Surprised it even
installed. The RPi is an ARM processor and not capable of 64 bit
X64, I believe.
Sorry, sir, but that is incorrect. The Pi4B's processor is indeed capable of 64-bit operation. There's also a 64-bit version of PiOS.
DC> I would guess that it's because of "X64". Surprised it even installed.
DC> The RPi is an ARM processor and not capable of 64 bit X64, I believe.
Sorry, sir, but that is incorrect. The Pi4B's processor is indeed capable of 64-bit operation.
Shaun Buzza wrote to Dan Clough <=-
I would guess that it's because of "X64". Surprised it even installed. The RPi is an ARM processor and not capable of 64 bit X64, I believe.
Sorry, sir, but that is incorrect. The Pi4B's processor is indeed
capable of 64-bit operation. There's also a 64-bit version of
PiOS.
However, I agree that there may be some incompatibility with
Ubuntu, as it was primarily designed for x86_64, and not
armhf_64.
Didn't Ubuntu make a mobile version in the past, though? I wonder
if that is armhf-compatible...
x64 means the same as x86-64. However the OP is probably just
misreporting and really used an arm64 install. x86-64 would simply not work at all.
I would guess that it's because of "X64". Surprised it even installe The RPi is an ARM processor and not capable of 64 bit X64, I believe.
Sorry, sir, but that is incorrect. The Pi4B's processor is indeed capable of 64-bit operation. There's also a 64-bit version of
PiOS.
Sorry, you're incorrect. Nowhere did I say that the RPi4's processor isn't capable of 64-bit operation. I said (look right up there above) that it's not capable of *X64*. That's a true statement.
However, I agree that there may be some incompatibility with
Ubuntu, as it was primarily designed for x86_64, and not
armhf_64.
Yes, and the OP stated that he installed "Ubuntu X64". Again I say that it's surprising that it even installed. It probably did NOT install correctly, or he installed something different than what he said.
Didn't Ubuntu make a mobile version in the past, though? I wonder
if that is armhf-compatible...
I don't know, and that is irrelevant to this thread, as he didn't say he installed that.
I would guess that it's because of "X64". Surprised it even installe
The RPi is an ARM processor and not capable of 64 bit X64, I believe.
Sorry, sir, but that is incorrect. The Pi4B's processor is indeed capable of 64-bit operation. There's also a 64-bit version of
PiOS.
Sorry, you're incorrect. Nowhere did I say that the RPi4's processor isn't capable of 64-bit operation. I said (look right up there above) that it's not capable of *X64*. That's a true statement.
Did you mean 'x86_64'? Because, if you did, that would indeed be true. *X64* is not a term I am familiar with, and therefore I assumed your phrase "64 bit X64" to mean, basically, "64 bit 64-bit". Correct terminology is important. The confusion over this term should have been apparent with my next statement:
However, I agree that there may be some incompatibility with Ubuntu, as it was primarily designed for x86_64, and not
armhf_64.
Yes, and the OP stated that he installed "Ubuntu X64". Again I say that it's surprising that it even installed. It probably did NOT install correctly, or he installed something different than what he said.
Again, I assumed you meant "Ubuntu 64-bit", because of the terminology error. This could mean *any* 64-bit version of Ubuntu. Indeed, if OP had tried to install x86_64 Ubuntu, it would have serious problems, and probably wouldn't even have booted.
Didn't Ubuntu make a mobile version in the past, though? I wonder if that is armhf-compatible...
I don't know, and that is irrelevant to this thread, as he didn't say he installed that.
I disagree. OP is trying to install Ubuntu on an ARM device, which a mobile version would be much more likely to support. It is entirely relevant to suggest possible alternate versions in order to achieve that goal.
Enjoy your day, Dan!
McDoob
SysOp, PiBBS
pibbs.sytes.net
So next again using the Pi O/S install software installed Ubuntu overwriting the SSD with Desktop 21.04? x64 and rebooted.
However, I agree that there may be some incompatibility with Ubuntu, as it was primarily designed for x86_64, and not armhf_64.
So next again using the Pi O/S install software installed Ubuntu overwriting the SSD with Desktop 21.04? x64 and rebooted.
With the gui fully up and running I loaded a terninal and the system
- locked up solid. Powered off and restarted with the same thing
- happening again
including without loading terminal.
The case was very warn as I could not use terminal to load the special
script to set up the fan and power button.
Anyone any idea of why the system locked up with Ubuntu desktop ?
I am "assuming" here that 8Gb Ram is more than enough for it !
After the first install of ubuntu (server) onto the SD card, I have not continued to update it or use it, so it is not installed in the Pi at all.
Is there anything in the source code of Ubuntu (or any other flavour of Linux) which, when compiled, makes it run better on x86_64 than armhf_64 (or the 32-bit equivalents, for that matter)?
Does arm have the same
byte-ordering as Intel, or is it the opposite way round (like SPARC is)?
I would have thought that little/big endian would have been the main stumbling block of porting source code between different CPUs.
I have
"fond" memories many years ago of having to go through loads of C source code (*), looking for any code which *assumed* that the high byte of an int would always follow rather than precede the low byte in data structures, and insert #ifdefs with a macro to reverse the bytes - this was for source code that was designed for Intel which we also wanted to run on SPARC-based servers as well as Intel-based ones.
Vincent Coen wrote to All <=-
Hello All!
Just purchased a pi 4B 8Gb along with Argon One M.2 case and PSU
with a WD 240 SSD M.2 (sata?) 2280 card.
First starting installing Ubuntu O/S (x64) (20.1 LTS server on
the SD card then
after booting with it successfully, realised I could install
direct to the SSD using a USB3 plugged cable connected to a Win
10 laptop so did that and boxed the SSD unit up back up with the
Argon case and started it - great works, installs and configures
the server and sit waiting for me to use bash commands to add
anything else but must have missed the message regarding how, as
I decided to have dinner.
So next again using the Pi O/S install software installed Ubuntu
overwriting the SSD with Desktop 21.04? x64 and rebooted.
With the gui fully up and running I loaded a terninal and the
system locked up - solid. Powered off and restarted with the
same thing happening again including without loading terminal.
The case was very warn as I could not use terminal to load the
special script to set up the fan and power button.
I have no idea what is the problem BUT decided to load Bullseye
x64 instead into the SSD and it did its thing including checking
for updates (none) and has
been sitting here running for 2+ hours and yes did load the argon
script :)
Anyone any idea of why the system locked up with Ubuntu desktop ?
I am "assuming" here that 8Gb Ram is more than enough for it !
After the first install of ubuntu (server) onto the SD card, I
have not continued to update it or use it, so it is not installed
in the Pi at all.
I would guess that it's because of "X64". Surprised it even
installed. The RPi is an ARM processor and not capable of 64 bit X64,
I believe.
I would guess that it's because of "X64". Surprised it even
installed. The RPi is an ARM processor and not capable of 64 bit
X64, I believe.
Sorry, sir, but that is incorrect. The Pi4B's processor is indeed
capable of 64-bit operation. There's also a 64-bit version of PiOS.
However, I agree that there may be some incompatibility with Ubuntu,
as it was primarily designed for x86_64, and not armhf_64.
Didn't Ubuntu make a mobile version in the past, though? I wonder if
that is armhf-compatible...
McDoob
SysOp, PiBBS
pibbs.sytes.net
On 23/02/2022 10:50, Vincent Coen wrote:
So next again using the Pi O/S install software installed Ubuntu
overwriting the SSD with Desktop 21.04? x64 and rebooted.
Is that ARM 64 bit, or x86/64 ?
You need the former.
Why the devil don't they offer a change of gui system instead of the
very basic one they use ?
Does arm have the same
byte-ordering as Intel, or is it the opposite way round (like SPARC is)?
Honestly, I'm not sure about that. I haven't written any code for armhf. But >I do know that armhf has a different instruction set, and different features, >when compared to its x86 counterparts, in a similar way that Intel and SPARC >chips have.
Did you mean 'x86_64'? Because, if you did, that would indeed be true. *X64* >is not a term I am familiar with, and therefore I assumed your phrase "64 bit >X64" to mean, basically, "64 bit 64-bit". Correct terminology is important. >The confusion over this term should have been apparent with my next statement:
On Thu, 24 Feb 2022 21:13:03 +1200, nospam.Shaun.Buzza@f110.n229.z1.fidonet.org (Shaun Buzza) declaimed the following:
ARM doesn't make chips -- they license the design to various chip makers. Chip makers, in effect, go down a list of components and [X]Does arm have the same NY> byte-ordering as Intel, or is it theopposite way round (like SPARC is)?
Honestly, I'm not sure about that. I haven't written any code for armhf. >>But I do know that armhf has a different instruction set, and different >>features,
when compared to its x86 counterparts, in a similar way that Intel and >>SPARC chips have.
those they want included in the design. One of those options just
happens to be the endianess of the resulting processor (I'm pretty sure
it's a foundry level decision
-- only because having a run-time flag in
the chip to switch between BE and LE would make booting rather complex).
So... any specific ARM design could be either endianess; there is
no "all ARM are LE" (or BE).
Does arm have the same
byte-ordering as Intel, or is it the opposite way round (like SPARC is)?
Honestly, I'm not sure about that.
nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen) writes:
Why the devil don't they offer a change of gui system instead of the
very basic one they use ?
Sure they do, you just need to know which package to install. For KDE
it's plasma-desktop.
Or actually, there are some helper packages whose names in Debian
start with task-
So, installing package task-kde-desktop installs KDE and so on. On
Debian. For Ubuntu, the similar package would be kde-standard.
Before I go and screw the system up - What exactly has to be installed and what
needs to be changed if any thing AND is there a document such as Installing the
system and adding extra functionality etc available and if so where?
I am not looking for the simplistic how to install on a SD card etc but more like the other Linux distributions such as RH, Magiea etc that provides for a new distribution version of full instructions on updating from a previous version, or adding another GUI interface with all the primary bits needed, current reported bugs and way of getting around them plus other scenarios etc.
Before I go and screw the system up - What exactly has to be installed
The only major disadvantage of any(!) desktop OS alternative to RasPiOS
is that there will be no video hardware acceleration in the browser,
I think every Pi 4 user looking to try things out needs at least two SD cards:
Anyone any experiences on these points ?
Vincent Coen <nospam.Vincent.Coen@f1.n250.z2.fidonet.org> wrote:
Anyone any experiences on these points ?
If PiHut sells that drive it will be fully compatible. They are a long standing & respected Pi shop. I'd say, stop trying custom things like manually fstrimming until you get a bog standard installation working.
An installation of a recent desktop OS, not Ubuntu server 20.04!
Vincent Coen <nospam.Vincent.Coen@f1.n250.z2.fidonet.org> wrote:
Anyone any experiences on these points ?
If PiHut sells that drive it will be fully compatible. They are a long standing & respected Pi shop. I'd say, stop trying custom things like manually fstrimming until you get a bog standard installation working.
An installation of a recent desktop OS, not Ubuntu server 20.04!
Is there anything in the source code of Ubuntu (or any other flavourof
Linux) which, when compiled, makes it run better on x86_64 thanarmhf_64
(or the 32-bit equivalents, for that matter)?
Not exactly. But the x86 and x86_64 instruction set is not the same as
armhf
and armhf_64. So, the software has to be compiled specifically for that instruction set.
On Thu, 24 Feb 2022 21:13:03 +1200, nospam.Shaun.Buzza@f110.n229.z1.fidonet.org (Shaun Buzza) declaimed the following:
Does arm have the sameis)?
byte-ordering as Intel, or is it the opposite way round (like SPARC
Honestly, I'm not sure about that. I haven't written any code for armhf. >>But
I do know that armhf has a different instruction set, and different >>features,
when compared to its x86 counterparts, in a similar way that Intel and >>SPARC
chips have.
ARM doesn't make chips -- they license the design to various chip
makers. Chip makers, in effect, go down a list of components and [X] those they want included in the design. One of those options just happens to be
the endianess of the resulting processor (I'm pretty sure it's a foundry level decision -- only because having a run-time flag in the chip to
switch
between BE and LE would make booting rather complex).
So... any specific ARM design could be either endianess; there is no
"all ARM are LE" (or BE).
Shaun Buzza <nospam.Shaun.Buzza@f110.n229.z1.fidonet.org> wrote:
Does arm have the sameis)?
byte-ordering as Intel, or is it the opposite way round (like SPARC
Honestly, I'm not sure about that.
ARM is little-endian by default, like x86 or AMD64 (or, going back
further,
the 6502 :-) ). Unlike those two, it can be kicked into big-endian mode
if
you need it, though I don't know of anything that uses that mode. The different flavors of Linux available for the Raspberry Pi are all little-endian.
<scott@alfter.diespammersdie.us> wrote in message news:8l9SJ.49823$Y1A7.14509@fx43.iad...
Shaun Buzza <nospam.Shaun.Buzza@f110.n229.z1.fidonet.org> wrote:
Does arm have the same
byte-ordering as Intel, or is it the opposite way round (like SPARC >>> is)?
Honestly, I'm not sure about that.
ARM is little-endian by default, like x86 or AMD64 (or, going back
further,
the 6502 :-) ). Unlike those two, it can be kicked into big-endian mode
if
you need it, though I don't know of anything that uses that mode. The
different flavors of Linux available for the Raspberry Pi are all
little-endian.
Silly question: is there any fundamental advantage of LE over BE or vice-versa, or is it a fairly arbitrary choice that once a given chip has been designed, needs to be adhered for in perpetuity so any future CPU of that type can run binaries compiled for an older version of the CPU.
Was there any reason that all CPUs designed after the very first one didn't *all* adopt the same endian-ness as that first one?
Were any of the CPUs used in early domestic computers (eg Z80, 6809, 68000) BE, or were the all LE like the 6502? Was SPARC in the minority in being BE? What about CPUs in early mainframes - were they all the same byte-ordering?
Were any of the CPUs used in early domestic computers (eg Z80, 6809, 68000) BE, or were the all LE like the 6502? Was SPARC in the minority in being BE? What about CPUs in early mainframes - were they all the same byte-ordering?
<scott@alfter.diespammersdie.us> wrote in message
ARM is little-endian by default, like x86 or AMD64 (or, going back
further,
the 6502 :-) ). Unlike those two, it can be kicked into big-endian mode
if
you need it, though I don't know of anything that uses that mode. The
different flavors of Linux available for the Raspberry Pi are all
little-endian.
Silly question: is there any fundamental advantage of LE over BE or vice-versa, or is it a fairly arbitrary choice that once a given chip has been designed, needs to be adhered for in perpetuity so any future CPU of that type can run binaries compiled for an older version of the CPU.
Was there any reason that all CPUs designed after the very first one didn't *all* adopt the same endian-ness as that first one?
Were any of the CPUs used in early domestic computers (eg Z80, 6809, 68000) BE, or were the all LE like the 6502? Was SPARC in the minority in being BE? What about CPUs in early mainframes - were they all the same byte-ordering?
Silly question: is there any fundamental advantage of LE over BE or >vice-versa, or is it a fairly arbitrary choice that once a given chip has >been designed, needs to be adhered for in perpetuity so any future CPU of >that type can run binaries compiled for an older version of the CPU.
Was there any reason that all CPUs designed after the very first one didn't >*all* adopt the same endian-ness as that first one?
Were any of the CPUs used in early domestic computers (eg Z80, 6809, 68000) >BE, or were the all LE like the 6502? Was SPARC in the minority in being BE? >What about CPUs in early mainframes - were they all the same byte-ordering?
Silly question: is there any fundamental advantage of LE over BE or vice-versa, or is it a fairly arbitrary choice that once a given chip has been designed, needs to be adhered for in perpetuity so any future CPU of that type can run binaries compiled for an older version of the CPU.
Was there any reason that all CPUs designed after the very first one didn't *all* adopt the same endian-ness as that first one?
Were any of the CPUs used in early domestic computers (eg Z80, 6809,
68000) BE, or were the all LE like the 6502? Was SPARC in the minority in being BE? What about CPUs in early mainframes - were they all the same byte-ordering?
Big endian is useful because the most significant part comes first.
For example, when comparing two decimal numbers aaa and bbb you start with the
hundreds digit, and if the hundred digit from a is greater than the hundreds digit from b, then you have your answer and can skip the rest. This is useful in eg network routing, eg if you want to pattern match 192.168.x.x
you only need wait for the 192.168 bytes to arrive on the wire before you
can route the packet.
Little endian is useful because the address of an object does not depend on its type. In other words:
uint32_t x = 5;
uint8_t *y = &x;
printf("%d\n", *y);
will still print '5'. On a big endian machine it would print '0' (being the most significant byte of x). You have to know that the object is 32 bits to offset the calculation for the LSB:
uint32_t x = 5;
uint8_t *y = &x;
printf("%d\n", y[3]);
but that would need to be adjusted to y[1] if x was a 16 bit type.
Was there any reason that all CPUs designed after the very first one
didn't *all* adopt the same endian-ness as that first one?
Were any of the CPUs used in early domestic computers (eg Z80, 6809,<
68000) BE, or were the all LE like the 6502? Was SPARC in the minority
in being BE?
What about CPUs in early mainframes - were they all the same
byte-ordering?
Running fstrim is a required process if you are running with a SSD at least in
two primary Linux based systems that have it as a boot drive otherwise failing
to do so will make the SSD run out of disk space when the only fault is that it
has not run Garbage collection to clean up the unused clusters.
On 26 Feb 2022 at 22:04:22 GMT, "NY" <me@privacy.invalid> wrote:
<scott@alfter.diespammersdie.us> wrote in message
news:8l9SJ.49823$Y1A7.14509@fx43.iad...
Shaun Buzza <nospam.Shaun.Buzza@f110.n229.z1.fidonet.org> wrote:
NY> Does arm have the same
NY> byte-ordering as Intel, or is it the opposite way round (like SPARC >>>> is)?
Honestly, I'm not sure about that.
ARM is little-endian by default, like x86 or AMD64 (or, going back
further,
the 6502 :-) ). Unlike those two, it can be kicked into big-endian mode >>> if
you need it, though I don't know of anything that uses that mode. The
different flavors of Linux available for the Raspberry Pi are all
little-endian.
Silly question: is there any fundamental advantage of LE over BE or
vice-versa, or is it a fairly arbitrary choice that once a given chip has
been designed, needs to be adhered for in perpetuity so any future CPU of
that type can run binaries compiled for an older version of the CPU.
Was there any reason that all CPUs designed after the very first one didn't >> *all* adopt the same endian-ness as that first one?
Were any of the CPUs used in early domestic computers (eg Z80, 6809, 68000) >> BE, or were the all LE like the 6502? Was SPARC in the minority in being BE? >> What about CPUs in early mainframes - were they all the same byte-ordering?
68000 is BE, and all IBM and similar mainframes are too.
On 26/02/2022 22:16, TimS wrote:
On 26 Feb 2022 at 22:04:22 GMT, "NY" <me@privacy.invalid> wrote:I think - not sure - memory rusty - some of the minicomoputers were big endian as well.
<scott@alfter.diespammersdie.us> wrote in message68000 is BE, and all IBM and similar mainframes are too.
news:8l9SJ.49823$Y1A7.14509@fx43.iad...
Shaun Buzza <nospam.Shaun.Buzza@f110.n229.z1.fidonet.org> wrote:
NY> Does arm have the same
NY> byte-ordering as Intel, or is it the opposite way round (like SPARC >>>>> is)?
Honestly, I'm not sure about that.
ARM is little-endian by default, like x86 or AMD64 (or, going back
further,
the 6502 :-) ). Unlike those two, it can be kicked into big-endian mode >>>> if
you need it, though I don't know of anything that uses that mode. The >>>> different flavors of Linux available for the Raspberry Pi are all
little-endian.
Silly question: is there any fundamental advantage of LE over BE or
vice-versa, or is it a fairly arbitrary choice that once a given chip has >>> been designed, needs to be adhered for in perpetuity so any future CPU of >>> that type can run binaries compiled for an older version of the CPU.
Was there any reason that all CPUs designed after the very first one didn't >>> *all* adopt the same endian-ness as that first one?
Were any of the CPUs used in early domestic computers (eg Z80, 6809, 68000) >>> BE, or were the all LE like the 6502? Was SPARC in the minority in being BE?
What about CPUs in early mainframes - were they all the same byte-ordering? >>
On 27 Feb 2022 at 13:22:14 GMT, The Natural Philosopher <tnp@invalid.invalid>
I think - not sure - memory rusty - some of the minicomoputers were big
endian as well.
PDP-11 and VAX were LE.
On Sat, 26 Feb 2022 22:04:22 +0000, NY wrote:
What about CPUs in early mainframes - were they all the same
byte-ordering?
Somebody else can speak for IBM, but I *think* they all used byte
addressing, little endian arithmetic and EBCDIC .
On 26/02/2022 07:10, Vincent Coen wrote:
Running fstrim is a required process if you are running with a SSD
at least in two primary Linux based systems that have it as a boot
drive otherwise failing to do so will make the SSD run out of disk
space when the only fault is that it has not run Garbage collection
to clean up the unused clusters.
This seems to be a case of unadulterated wombat turds
- *nix ext2/3/4 type systems do not benefit from garbage collection
- SSDs do nor benefit from garbage collection as seek times are
essentially zero
- garbage collection has no effect on available disk space
- fstrim, whilst beneficial in theory, is probably redundant as SSD lifetimes in terms of write cycles already exceed that of spinning
rust. It is certainly *not* mandatory.
In short if you want to increase SSD lifetime from 20 years to 21
years, use FSTRIM. :-)
On 27 Feb 2022 at 13:22:14 GMT, The Natural Philosopher
<tnp@invalid.invalid> wrote:
On 26/02/2022 22:16, TimS wrote:
On 26 Feb 2022 at 22:04:22 GMT, "NY" <me@privacy.invalid> wrote:I think - not sure - memory rusty - some of the minicomoputers were big endian as well.
Were any of the CPUs used in early domestic computers (eg Z80, 6809,
68000) BE, or were the all LE like the 6502? Was SPARC in the
minority in being BE? What about CPUs in early mainframes - were they
all the same byte-ordering?
68000 is BE, and all IBM and similar mainframes are too.
PDP-11 and VAX were LE.
Hello druck!
Thursday February 24 2022 20:08, you wrote to me:
> On 23/02/2022 10:50, Vincent Coen wrote:
>> So next again using the Pi O/S install software installed Ubuntu
>> overwriting the SSD with Desktop 21.04? x64 and rebooted.
> Is that ARM 64 bit, or x86/64 ?
> You need the former.
Just had a look at the SD and it has 2 partitions and it failed to load when I
selected it in a AMD X64 system so yes I am reasonably confident that it's for
a Pi.
On 24/02/2022 14:39, Vincent Coen wrote:
Hello druck!
Thursday February 24 2022 20:08, you wrote to me:
> On 23/02/2022 10:50, Vincent Coen wrote:
>> So next again using the Pi O/S install software installed Ubuntu
>> overwriting the SSD with Desktop 21.04? x64 and rebooted.
> Is that ARM 64 bit, or x86/64 ?
> You need the former.
Just had a look at the SD and it has 2 partitions and it failed to load when I selected it in a AMD X64 system so yes I am reasonably confident that it's for a Pi.
AMD is not ARM, so it wont work on a Pi
On 24/02/2022 14:39, Vincent Coen wrote:
Hello druck!
Thursday February 24 2022 20:08, you wrote to me:
> On 23/02/2022 10:50, Vincent Coen wrote:
>> So next again using the Pi O/S install software installed
Ubuntu
>> overwriting the SSD with Desktop 21.04? x64 and rebooted.
> Is that ARM 64 bit, or x86/64 ?
> You need the former.
Just had a look at the SD and it has 2 partitions and it failed to
load when I selected it in a AMD X64 system so yes I am reasonably
confident that it's for a Pi.
AMD is not ARM, so it wont work on a Pi
First things to try when it's frozen:
- press Ctrl-Alt-F1 (and other F keys, see if you can get to a console where you can login)
- if not, can you ping it over the network? (if plugged into ethernet, your router should tell you the IP)
It's possible it's just the GUI that's crashed, rather than a hard
lockup.
You can also try downclocking it via config.txt. Open config.txt on the first partition on the SD card/SSD (from another machine) and add:
arm_freq=600
gpu_freq=400
That will slow down the processor, perhaps enough to get in and run the script. You may need to play around with the numbers (in MHz) as I'm
just guessing and I don't know what's accepted.
Possibly worth checking your power supply - maybe Ubuntu takes more current?
I am "assuming" here that 8Gb Ram is more than enough for it !
Another possible thing to try is this: https://ubuntu-mate.community/t/single-user-mode/5104
(I *think* Ubuntu on the Pi is using GRUB like other platforms - that 'e' keystroke is when you're in GRUB)
Hello All!
So an update:
I gave up at least for the moment on the ubuntu distro and installed
using the same tool Bullseye X64 direct to the SSD M.2 device using a
usb3 plugged cable and booted it (all today) after I was wide awake.
Needless to say it is working fine for a Debian Pi distro but I do not like the
basic Gui interface and would like to use KDE or Gnome (if I have to),
how ever
there is not a procedure the install one of them without picking each element for say KDE and that would be a accident waiting to happen.
Why the devil don't they offer a change of gui system instead of the
very basic
one they use ?
Yes, I know I am getting older but was hoping I am not that senile yet !
When I get a chance or have to shut the system down I will install the
SD card on the offchance the boot sequence will see the card and load
from it. Failing that I will disconnect the USB link and try it -
perhaps try that method first :)
I think every Pi 4 user looking to try things out needs at least two SD cards:
1. One card for "Raspberry Pi OS 32-bit (Bullseye) with desktop and recommended software".
2. One card for the other OS.
Hello All!
One thing I have noticed with the M.2 SSD is that when running
sudo fstrim -av it exits with the implied not finding a SSD so I have to guess that the WD M.2 SSD is not being treated as a SSD and that is a worry if there is no garbage collection taking place.
I may try contacting WD (assuning they have a tech support dept) and see if they can shed any light on this as PiHut does not seem to have that level of technical support in-house like wise Argon who do not respond
to emails.
I am using a Argon One M.2 case which includes a board to install a M.2 SSD in that is liked to the Pi via a USB bridge double plug.
Running fstrim is a required process if you are running with a SSD at least in two primary Linux based systems that have it as a boot drive otherwise failing to do so will make the SSD run out of disk space when the only fault is that it
has not run Garbage collection to clean up the unused clusters.
Only drawback to using SSD's under *nix. Windows does it automatically some how but for *nix you have to specify fstrim to run once every 24 hours for lightly used systems and 12 hourly for heavier load systems -
it might need to be more often if using them in a busy server.
Now I have had a quick look at the SD card in use and it has Ubuntu Desktop 21.10 so I will continue using Bullseye and give up on it.
There is a wee list of issues with the Pi in the release notes (for
21.10) but they do not mention these noticed issues.
I will look in on the Debian website for their release notes for v11 and see what the procedure is to upgrade the distro to use KDE or failing
that Gnome, however that does not mean they will work with a Pi in a reasonable manner - suck it and see, I guess.
My Pi is using the 64 bit operational properties which is why I specified X64
and this is NOT exclusive to Intel, Amd, Zilog, IBM etc.
When I get a chance or have to shut the system down I will
install the SD card on the offchance the boot sequence will see
the card and load from it. Failing that I will disconnect the USB
link and try it - perhaps try that method first :)
I am confused. I was under the impression that your Pi was locking up *after* the boot process. Meaning, it has already started loading from
your USB device, and locked up while trying to load Ubuntu...
No, it locked up (no clock updating) after I loaded Terminal but looking yesterday it is just terminal that does nothing after loading - no keyed input,
cannot select anything from the menu bar etc.
I did a system update from the gui and after a minute where it shows the progress bar at around 2cm's worth it just - well shows no progress even after an hour with just occasional hit on the access light which is very hard to see - must be the smallest led available anywhere in the world :) It really is a pin prick size which you can see at night with the room light off - just. Well it is made to a price - a low one :)
One thing I have noticed with the M.2 SSD is that when running
sudo fstrim -av it exits with the implied not finding a SSD so I have to
guess that the WD M.2 SSD is not being treated as a SSD and that is a
worry if there is no garbage collection taking place.
To be clear, any modern SSD performs its own garbage collection. You shouldn't have to use fstrim.
nospam.Shaun.Buzza@f110.n229.z1.fidonet.org (Shaun Buzza) writes:
One thing I have noticed with the M.2 SSD is that when running sudo
fstrim -av it exits with the implied not finding a SSD so I have to
guess that the WD M.2 SSD is not being treated as a SSD and that is a
worry if there is no garbage collection taking place.
To be clear, any modern SSD performs its own garbage collection. You
shouldn't have to use fstrim.
It’s more complicated than that. A physical page can be marked garbage
when the corresponding logical page is overwritten. But a logical page
that a filesystem stops using without overwriting (e.g. when deleting a
file) still appears to be in use to the controller, at until such as
time as the filesystem uses it for something else. fstrim or the discard option supply the missing information.
Whether it’s worthwhile probably depends on access patterns.
It’s more complicated than that. A physical page can be marked garbage when the corresponding logical page is overwritten. But a logical page that a filesystem stops using without overwriting (e.g. when deleting a file) still appears to be in use to the controller, at until such as
time as the filesystem uses it for something else. fstrim or the discard option supply the missing information.
But you make a good point! I normally add 'discard' on any SSD in my
fstab, on a PC. So much so, that I didn't even think about that. I
need to check my own Pi to see if I'm using that on its SSD...
Vincent, if you didn't know: /etc/fstab is where (Debian) Linux stores
its info about storage space. Literally, 'File System TABlature'. This applies to Ubuntu, and PiOS too. There's a whole bunch of stuff you
should know before attempting to edit /etc/fstab though. One can
easily brick a system with a typo in that file.
However, none of this information will help get Ubuntu to work with a Pi...Richard...
Again nothing here explains why running fstrim on the Pi does not result in the expected display from the program
Can you provide the o/p from a cat /etc/fstab where you are using the discard sub command.
Thanks,
That said I have not found a reason why running sudo fstrim -av does not pick up that a SSD is present.
I have been using SSD's for some years and after trying Crucial branded versions that cause serious problems switched (having had advise from Linux users) to Samsung 850/950/960 series over the years.
These unlike Crucial use a fair better device controller that processes garbage
collections within the controller without requiring the system being
idle for long periods. A totally better class of SSD.
I do know (but not why) that if I download a large number of files to a HDD mounted as /mnt/disk1 where the SSD is at / that for some reason the system stores the data on a SSD before moving it to the HDD.
These are loaded via a large USB stick directly on the box.
Again nothing here explains why running fstrim on the Pi does not result in the
expected display from the program unless it is just NOT finding the SSD
so the question arises as to what is different with a SSD as a M.2 2280 mount ?
I should point out that I have been in IT since 1963 [...]
Vincent Coen <nospam.Vincent.Coen@f1.n250.z2.fidonet.org> wrote:
Again nothing here explains why running fstrim on the Pi does not
result in the expected display from the program
https://lemariva.com/blog/2020/08/raspberry-pi-4-ssd-booting-enabled-t
rim
Can you provide the o/p from a cat /etc/fstab where you are using
the discard sub command.
Thanks,
I'll send you the fstab from my laptop in netmail. It's running Linux
Mint, another Debian-based OS. Give me a bit to get around to that...
That said I have not found a reason why running sudo fstrim -av
does not pick up that a SSD is present.
I have been using SSD's for some years and after trying Crucial
branded versions that cause serious problems switched (having had
advise from Linux users) to Samsung 850/950/960 series over the
years. These unlike Crucial use a fair better device controller
that processes garbage collections within the controller without
requiring the system being idle for long periods. A totally
better class of SSD.
Oh, I agree with you there! Samsung SSDs in general are better
performers that most of the competition. There's a reason they can get
away with charging a premium.
I do know (but not why) that if I download a large number of
files to a HDD mounted as /mnt/disk1 where the SSD is at / that
for some reason the system stores the data on a SSD before moving
it to the HDD.
Sounds like your OS is cacheing the data before sending it to the HDD.
I'm not sure why it would do so by default, though. Perhaps through
SWAP? Are you copying more data than would fit in RAM?
These are loaded via a large USB stick directly on the box.
Again nothing here explains why running fstrim on the Pi does not
result in the expected display from the program unless it is just
NOT finding the SSD so the question arises as to what is
different with a SSD as a M.2 2280 mount ?
It could be that the Pi is mistaking it for a USB stick? After all,
you're not actually using SATA or PCI-Ex to connect.
I should point out that I have been in IT since 1963 [...]
I certainly haven't been working with computers for as long as you
have. Heck, even my dad would only have been...six? eight?...in '63!
(^_^)
But I've been a 'computer guy' my entire life. I put my entire
academic effort into learning anything I could about them. I even
owned a 'boutique' computer shop for a while. I was never much for datacenter work, though.
Tuesday March 01 2022 18:36, you wrote to me:
https://lemariva.com/blog/2020/08/raspberry-pi-4-ssd-booting-enabled-trim
The first test failed as I only have via df :
/dev/root /
/dev/sda1 /boot
On 01-03-2022 12:34, Vincent Coen wrote:
Tuesday March 01 2022 18:36, you wrote to me:
https://lemariva.com/blog/2020/08/raspberry-pi-4-ssd-booting-enable
d-trim
The first test failed as I only have via df :
/dev/root /
/dev/sda1 /boot
I don't know what "first test" you're talking about. Those mounting
points look normal. Maybe this more recent version is easier to follow
for you: https://www.jeffgeerling.com/blog/2020/enabling-trim-on-external-ssd-o n-raspberry-pi
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 37:32:21 |
Calls: | 7,932 |
Calls today: | 2 |
Files: | 12,998 |
Messages: | 5,805,631 |