Nice meeting.
Alex (correct me if I remember the wrong name) asked about the raspberry pi 400.
So I trotted out mine and did screen share on jitsi. It is a very nice little machine. Same as the Pi 4.
I still find the design choices strange though.
- built into a kid style keyboard but no built in pointing device.
- micro hdmi ports. Full size port makes more sense. For a grab and go computer. You are more likely to have full size hdmi cable than micro to full.
- gpio on the back. I haven't tried on mine but evidently they fit pointing up facing backwards. But I feel that for experimenting you'd want it on top of in front.
Alex was interested in making it an htpc. For that the 400 is a decent choice. Considering the Pi 4 is $55 and a passively cooled case for $15,
you are right up to $70 for the Pi 400. (Well if you can find one in stock.)
Otherwise I talked about the ssd upgrade on my Thinkpad T440. It has a small 16GB ssd (originally an Intel cache) and 500GB hdd.
Ssd has / partition and EFI mounted at /boot. Hdd has /home.
I mentioned this on the SFLug meeting. My idea was to just copy the contents of the ssd to a backup folder on /home. Then I would swap
the drive and copy everything back.
So like cp -a / /home/root_backup and cp -a /boot /home/boot_backup
For cp the -a flag keeps the same permissions in the copy.
But I wanted to avoid creating an infinite loop (copying /home into itself)
The -x flag does this.
man cp
-x, --one-file-system
stay on this file system
It also prevents copying the special folders like /proc
Turned out the T440 has two M.2 slots (well 3 including the WIFI card) So
I have both ssd installed . I booted the Arch iso but and just copied directly (maybe I could have just booted from the old ssd.)
Create efi partition and main on the new ssd.
Mount new partitions to /mnt (main one to /mnt and the efi to /mnt/boot)
Copy cp -ax / /mnt and cp -ax /boot /mnt/boot
-- That second command was wrong. It made /mnt/boot/boot instead of /mnt/boot
-- At first I thought cp acted like rsync where trailing / will make it do what I want
-- No combination of trailing / worked so I just cp -ax /boot/* /mnt/boot.
-- Michael said that you can do this: cd /boot then cp -ax . /mnt/boot
Edit /mnt/etc/fstab with the new partitions UUID's
Then chroot to /mnt and do pacman -Syu which installed the new kernel and generated new initramfs.
efibootmgr to delete the old boot entry and create the new one (Arch Linux booting by efistub)
-- had trouble here because I kept making typos. In the Arch wiki they have you pass the location
of the initramfs to the kernel in the efi boot entry. For that you use the partition UUID.
-- Then I thought If I could copy and paste the UUID? But booted the Arch iso I don't have a mouse.
-- So couldn't see how to do it in bash, but screen has a copy paste mode. In screen the paste was giving me
extra lines. Michael showed in the Jitsi that is worked perfectly for him.
Thomas