I'd like to try RasPiOS 64 bit on my 8 GB Pi4 as a preliminary
to migrating it from 32 bit to 64 bit. Does the new "first time
setup wizard" have the ability to manipulate partitions and
install from microSD onto a usb-connected hard drive?
On 27/12/2022 18:13, bob prohaska wrote:
I'd like to try RasPiOS 64 bit on my 8 GB Pi4 as a preliminary
to migrating it from 32 bit to 64 bit. Does the new "first time
setup wizard" have the ability to manipulate partitions and
install from microSD onto a usb-connected hard drive?
It didn't last time I tried it.
The way I set up a dual bootable 32/64 bit Pi was to take an SD card
with an existing 32 bit installation, and used gparted to shrink the
existing root partition to less than half the card, double the size of
the boot FAT partition to 512MB and add a new root64 ext4 partition in
the rest of the space.
I moved the contents of the existing boot partition to a boot32 sub directory, then took a 64 bit Raspbian ISO image and copied the boot partition to boot partition of the SD card, and the root partition to
the root64 partition. You then need to edit two files; cmdline.txt on
boot to load the OS from /dev/mmcblk0p2 and /etc/fstab on root64 to
mount / from /dev/mmcblk0p2.
It should then boot to the 64 bit OS. To swap back to the 32 bit OS make
a script to move the boot partitions files in to a boot64 sub
directory, and restore the files from the boot32 subdirectory, then
reboot. And vice versa for a script to go from 32 bit to 64 bit.
If you want to do the same with a USB attachd drive, follow the
instructions for the boot partitions on the SD card, and make the root32
and root64 partitions on the USB drive. Use /dev/sda instead of
/dev/mmcblkp0 above until you get it going, but then I recommend you
replace references to /dev/sda in both sets of cmdline.txt and
/etc/fstab with PARTUUID=xxxxxx-yy where xxxxxx-yy is the the value corresponding to the partition from ls -l /dev/disk/by-partuuid This
stops the Pi booting from the wrong device should you insert a storage
device into another socket.
replace references to /dev/sda in both sets of cmdline.txt and
/etc/fstab with PARTUUID=xxxxxx-yy where xxxxxx-yy is the the value corresponding to the partition from ls -l /dev/disk/by-partuuid This
stops the Pi booting from the wrong device should you insert a storage
device into another socket.
-- druck
druck <news@druck.org.uk> wrote:
...
replace references to /dev/sda in both sets of cmdline.txt andSomething is still amiss. In /etc/fstab I have bob@raspberrypi:~ $ more /etc/fstab proc /proc proc defaults 0
/etc/fstab with PARTUUID=xxxxxx-yy where xxxxxx-yy is the the value
corresponding to the partition from ls -l /dev/disk/by-partuuid This
stops the Pi booting from the wrong device should you insert a storage
device into another socket.
0 PARTUUID=04071fa6-01 /boot vfat defaults 0
2 PARTUUID=04071fa6-02 / ext4 defaults,noatime 0
1 PARTUUID=04071fa6-03 none swap PARTUUID=04071fa6-04
/usr ext4 defaults,noatime 0 2
The machine boots, starts swap and generally works fine. However,
if I plug in the old hard disk (to copy over user files) the machine immediately loses communications with the root drive. Both disks are of
the Sabrent model UASP persuasion and use JMicron usb-sata bridges but
the disk shown above uses a JMS577 bridge chip and the old disk uses a JMS561, so they aren't identical..
Any idea what I'm doing wrong?
I'd like to try RasPiOS 64 bit on my 8 GB Pi4 as a preliminary
to migrating it from 32 bit to 64 bit. Does the new "first time
setup wizard" have the ability to manipulate partitions and
install from microSD onto a usb-connected hard drive?
I've kinda learned how to do that with FreeBSD and it's quite a
pain: Suppress growfs by renaming /firstboot, then get into single
user mode, muck around in gpart to add a swap partition, /usr partition
and finally copy contents of the old /usr directory to the new one.
This provides the traditional disk layout of boot, root, swap and /usr. >Having a separate /usr partition seems to be out of fashion theses days,
but keeping the root bits on a distinct part of the disk is harmless
at worst. Having swap I don't need is _much_ better than needing swap
I don't have 8-)
Looking at >https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
the setup wizard appears to be very little help to this end.
If there's a better guide, or maybe some CD-installer inherited
from Debian that can be used, please point it out. I plan on
doing an initial install on microSD to learn the lay of the
land but am not really familiar with RasPiOS admin tools. Once
I have a better idea what I'm doing I'll install the new OS
on a new 1 TB drive and migrate user files from the old disk.
Thanks for reading!
bob prohaska
On Wed, 28 Dec 2022 21:46:20 -0000 (UTC), bob prohaska wrote:
druck <news@druck.org.uk> wrote:Wild guess, but... have you checked whether any of the PARTUUID ids are
...
replace references to /dev/sda in both sets of cmdline.txt andSomething is still amiss. In /etc/fstab I have bob@raspberrypi:~ $ more
/etc/fstab with PARTUUID=xxxxxx-yy where xxxxxx-yy is the the value
corresponding to the partition from ls -l /dev/disk/by-partuuid This
stops the Pi booting from the wrong device should you insert a storage
device into another socket.
/etc/fstab proc /proc proc defaults 0
0 PARTUUID=04071fa6-01 /boot vfat defaults 0
2 PARTUUID=04071fa6-02 / ext4 defaults,noatime 0
1 PARTUUID=04071fa6-03 none swap PARTUUID=04071fa6-04
/usr ext4 defaults,noatime 0 2
The machine boots, starts swap and generally works fine. However,
if I plug in the old hard disk (to copy over user files) the machine
immediately loses communications with the root drive. Both disks are of
the Sabrent model UASP persuasion and use JMicron usb-sata bridges but
the disk shown above uses a JMS577 bridge chip and the old disk uses a
JMS561, so they aren't identical..
Any idea what I'm doing wrong?
the same on both hard disks? If they are, I can well imagine that could confuse the kernel. From your description it sounds as if that could be
the case, and 'UUID' is, after all, shorthand for 'Universally Unique Identifier'.
Does the UUID come from the drive itself, or the usb bridge?
Does the UUID come from the drive itself, or the usb bridge?
Drives are the same model but I'd think Seagate would at least assign different serial numbers.
druck <news@druck.org.uk> wrote:
On 27/12/2022 18:13, bob prohaska wrote:
I'd like to try RasPiOS 64 bit on my 8 GB Pi4 as a preliminary
to migrating it from 32 bit to 64 bit. Does the new "first time
setup wizard" have the ability to manipulate partitions and
install from microSD onto a usb-connected hard drive?
It didn't last time I tried it.
Ok, then I didn't miss anything hugely important.
The way I set up a dual bootable 32/64 bit Pi was to take an SD cardIn this case I don't need dual boot, so life is a bit simpler.
with an existing 32 bit installation, and used gparted to shrink the
existing root partition to less than half the card, double the size of
the boot FAT partition to 512MB and add a new root64 ext4 partition in
the rest of the space.
I made a microSD with 64 bit Bullseye and experimented a bit.
There's no way to interrupt the growfs on first boot so I just
let it run and then dd'd the entire microSD onto the hard disk.
Martin Gregorie <martin@mydomain.invalid> wrote:
On Wed, 28 Dec 2022 21:46:20 -0000 (UTC), bob prohaska wrote:
druck <news@druck.org.uk> wrote:Wild guess, but... have you checked whether any of the PARTUUID ids are
[Replacing /dev/sdX with PARTUUID]
The machine boots, starts swap and generally works fine. However,
if I plug in the old hard disk (to copy over user files) the machine
immediately loses communications with the root drive. Both disks are of
the Sabrent model UASP persuasion and use JMicron usb-sata bridges but
the disk shown above uses a JMS577 bridge chip and the old disk uses a
JMS561, so they aren't identical..
Any idea what I'm doing wrong?
Does the UUID come from the drive itself, or the usb bridge?
Drives are the same model but I'd think Seagate would at least
assign different serial numbers.
The UUIDs are created when the drive is partitioned, and will be unique unless you have low level copied the entire drive, e.g. with dd
bob prohaska wrote:
Does the UUID come from the drive itself, or the usb bridge?
I presume they're just stored with sectors of the partition (or
partition table)?
On 29/12/2022 18:07, Andy Burns wrote:
bob prohaska wrote:
Does the UUID come from the drive itself, or the usb bridge?
I presume they're just stored with sectors of the partition (or
partition table)?
UUID is something stored in the partition
e.g. this desktop :-
# /etc/fstab: static file system information.
On Fri, 30 Dec 2022 14:13:23 +0000, The Natural Philosopher wrote:
On 29/12/2022 18:07, Andy Burns wrote:
bob prohaska wrote:
Does the UUID come from the drive itself, or the usb bridge?
I presume they're just stored with sectors of the partition (or
partition table)?
UUID is something stored in the partition
e.g. this desktop :-
# /etc/fstab: static file system information.
More to the point (as /etc/fstab is /not/ the origin of the UUIDs)
you can query the UUIDs using the lsblk(8) command. On /this/ desktop:
Wild guess, but... have you checked whether any of the PARTUUID ids are
the same on both hard disks? If they are, I can well imagine that could confuse the kernel. From your description it sounds as if that could be
the case, and 'UUID' is, after all, shorthand for 'Universally Unique Identifier'.
On 30/12/2022 14:54, Lew Pitcher wrote:
On Fri, 30 Dec 2022 14:13:23 +0000, The Natural Philosopher wrote:
On 29/12/2022 18:07, Andy Burns wrote:
bob prohaska wrote:
Does the UUID come from the drive itself, or the usb bridge?
I presume they're just stored with sectors of the partition (or
partition table)?
UUID is something stored in the partition
e.g. this desktop :-
# /etc/fstab: static file system information.
More to the point (as /etc/fstab is /not/ the origin of the UUIDs)
you can query the UUIDs using the lsblk(8) command. On /this/ desktop:
Are you drunk already?
What about "UUID is something stored in the partition" did you not understand?
I merely used the fstab example to show that indeed the UUID was not
DISK related, but was PARTITION related.
Why introduce a straw man claiming I said fstab DEFINES it.
Especially when I referenced a linux tool to alter it, on the disk
partition.
On Fri, 30 Dec 2022 18:38:51 +0000, The Natural Philosopher wrote:
On 30/12/2022 14:54, Lew Pitcher wrote:
On Fri, 30 Dec 2022 14:13:23 +0000, The Natural Philosopher wrote:
On 29/12/2022 18:07, Andy Burns wrote:
bob prohaska wrote:
Does the UUID come from the drive itself, or the usb bridge?
I presume they're just stored with sectors of the partition (or
partition table)?
UUID is something stored in the partition
e.g. this desktop :-
# /etc/fstab: static file system information.
More to the point (as /etc/fstab is /not/ the origin of the UUIDs)
you can query the UUIDs using the lsblk(8) command. On /this/ desktop:
Are you drunk already?
Who pi$$ed in your cornflakes this morning?
What about "UUID is something stored in the partition" did you not
understand?
I understand it as well as you do. I've said it before, in this thread.
I merely used the fstab example to show that indeed the UUID was not
DISK related, but was PARTITION related.
No, you made a statement that UUIDs were stored in the partition, then illustrated your statement with the contents of a configuration file
that (without further explanation) /could/ illustrate that UUIDs were
/not/ stored in the partition, but were metadata supplied to mount by
a static initialization file.
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 140:14:42 |
Calls: | 166 |
Files: | 5,389 |
Messages: | 223,236 |