Repurposing computer equipment: Difference between revisions

From regional-training
No edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
Repurposing and recycling e-waste is good for the planet, and the pocket.
Repurposing and recycling e-waste is good for the planet, and the pocket.


=computers=
I have a standard procedure when receiving computers that are to be repurposed e.g. for family or school etc.
I have a standard procedure when receiving computers that are to be repurposed e.g. for family or school etc.


Before assigning the machines to people I perform the following:
Before assigning the machines to people I perform the following:
* grab my trusty live boot linux [[preparing a live-boot thumb drive||live boot]] thumb drive.
* grab my trusty [[#preparing a live-boot thumb drive|live boot linux]] <ref>download ubuntu https://ubuntu.com/download/desktop</ref> thumb drive and plug into the high-speed USB port.
* alter the BIOS / EFI settings to temporarily disable Secure Boot<ref group="note">On DELL F2 and Intel NUC holding down F2 during boot takes you to the BIOS. F10 on NUC and F12 on DELL takes you to the boot menu.</ref>
* alter the BIOS / EFI settings to temporarily disable Secure Boot <ref group="note">On DELL F2 and Intel NUC holding down F2 during boot takes you to the BIOS. F10 on NUC and F12 on DELL takes you to the boot menu.</ref>
* live boot Ubuntu Linux <ref>download ubuntu https://ubuntu.com/download/desktop</ref> from a ThumbDrive <ref group="note">I have PXE boot working in my laboratory and will be able to launch live images from there instead of media boot. My collection of images are not quite there yet and in this case PXE network booting would need to be enabled in the laptops.</ref>
* boot from the live Thumb Drive <ref group="note">I have PXE boot working in my laboratory and will be able to launch live images from there instead of media boot. My collection of images are not quite there yet and in this case PXE network booting would need to be enabled in the laptops.</ref>
* install lz4 a block compression algorithm  
* install lz4 a block compression algorithm that I use as it will unzip to the last errorneous block if the archive is corrupted.
  sudo apt update
  sudo apt update
  sudo apt install lz4
  sudo apt install lz4
Line 15: Line 16:
* map the drive partitions to text file for later use
* map the drive partitions to text file for later use
  sudo sfdisk -L > /media/user/transfer-disk/2025-09-19-hostname-fdisk.txt
  sudo sfdisk -L > /media/user/transfer-disk/2025-09-19-hostname-fdisk.txt
* backup the computer disk drive images for NVME disk
* (option) backup the computer disk drive images e.g. NVME/sdcard disk <ref group="note">Some computers such as Chrome book, DELL and others run M.2 NVME as their main drive and these appear as mmc devices uinder Linux.</ref>
  dd if=/dev/mmcblk0 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-hostname.lz4
  dd if=/dev/mmcblk0 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-hostname.lz4
* backup hard disks drives e.g.
* (option) backup hard disks drives e.g.
   dd if=/dev/sda bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda.lz4
   dd if=/dev/sda bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda.lz4
* alternatively backup partitions such as the boot/efi, os e.g. <ref group="note">Backing up the whole disk is easier to use for restoration but slower of course. If you have plenty of storage a complete image makes sense. I store my backups in a NAS and I have 56T Bytes of capacity (or I used to),M.ref>
* (option) alternatively backup partitions such as the boot/efi, os e.g. <ref group="note">Backing up the whole disk is easier to use for restoration but slower of course. If you have plenty of storage a complete image makes sense. I store my backups in a NAS and I have 56T Bytes of capacity (or I used to)</ref>
   dd if=/dev/sda1 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda1.lz4
   dd if=/dev/sda1 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda1.lz4
   dd if=/dev/sda2 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda2.lz4
   dd if=/dev/sda2 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda2.lz4
   dd if=/dev/sda3 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda3.lz4
   dd if=/dev/sda3 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda3.lz4
* Now I test via:
* Now to monitor installed sensors as per [[Linux sensor display]] <ref>[[Linux sensor display]]</ref>
apt install lm-sensors
* detect sensors
sensors-detect
* then run while testing in a spare cli terminal
for (( ; ; )) do sensors; sleep 30; done


* live boot of Linux (e.g. lubuntu as it seems to have latest drivers)
The heavy testing can be performed from another cli terminal. My favourite is to install the [[Phoronix|phorenix test suite ]] <ref>[[Phoronix|phorenix test suite]]</ref>
** phoronex test suit
* install the phoronix test suite
wget https://phoronix-test-suite.com/releases/repo/pts.debian/files/phoronix-test-suite_10.8.3_all.deb
sudo dpkg -i phoronix*.deb
sudo apt-get install -f
* install hackbench tests
https://dev.arising.com.au/dev/Phoronix_test_suite#:~:text=phoronix%2Dtest%2Dsuite%20install%20hackbench
* run the hackbench
phoronix-test-suite run hackbench
* run the lm-
Happy testing, There are other
==preparing a live-boot thumb drive==
A live boot <ref>live boot https://www.cyberciti.biz/faq/creating-a-bootable-ubuntu-usb-stick-on-a-debian-linux/</ref>  thumb drive can be constructed via:
* downloaded e.g. lubuntu <ref>ubuntu https://ubuntu.com/download/desktop</ref> from https://ubuntu.com/download/desktop
and written to a thumb drive with dd
dd if=lubuntu.img bs=512M of=/dev/<thumb-drive-device> status=progress oflags=sync
or written with Rufus <ref>Rufus https://rufus.ie/en/</ref> if running from Windows.


=preparing a live-boot thumb drive=
See the references for instructions.
A live boot thumb drive can be constructed via:
 
* downloaded live-boot image e.g. lubuntu <ref>ubuntu https://ubuntu.com/download/desktop</ref> downloaded from https://ubuntu.com/download/desktop
==recent test results==
and written with dd
I recently purchased a re-purposed laptop and it's been a cause of trouble and has been returned to the vendor for repair / replacement and it seems they sent the same unit back with the same failure mode still happening, despite previously explaining how I tested it and the two failure modes.
dd if=lubuntu.img bs=512M of=/dev/<thumb-drive-device> status=progress oflags=sync
 
or with Rufus <ref>Rufus https://rufus.ie/en/</ref> see reference for instructions.
The symptoms are intermittent:
* re-boots when the laptop is just sitting there, and
* mouse, keyboard lock-ups where absolutely nothing can be done except hold down the ACPI power button for a very long time to force a reset / reboot.
 
Here is a [[media:dell-latitude-5420.mov]] <ref>'''the grip mode of failure''' [[media:dell-latitude-5420.mov]]</ref> of the lockup failure mode - see my frustration at having to go through the process of contacting the vendor again for a return via RMA. <ref group="note">I contacted the vendor this morning and they said they will ship a replacement as soon as they receive notification that the other unit RMA has been received by the LPO. I sent a photograph of the LPO receipt / tracking number via my iPhone and I get back to the office and login on their website and my replacement order has been lodged awaiting dispatch. You can't fault their customer relations. <br/>I am pleased to announce that the Brisbane based vendor https://www.australiancomputertraders.com.au/ has good warranty and customer service. It is worth considering purchases of 2nd hand equipment when it is not too old and when it comes with warranty.</ref>


=notes=
=notes=
Line 46: Line 71:
[[category:public]]
[[category:public]]
[[category:live boot]]
[[category:live boot]]
[[category:Linux]]
[[category:laptop]]

Latest revision as of 13:55, 20 August 2025

Repurposing and recycling e-waste is good for the planet, and the pocket.

computers

I have a standard procedure when receiving computers that are to be repurposed e.g. for family or school etc.

Before assigning the machines to people I perform the following:

  • grab my trusty live boot linux [1] thumb drive and plug into the high-speed USB port.
  • alter the BIOS / EFI settings to temporarily disable Secure Boot [note 1]
  • boot from the live Thumb Drive [note 2]
  • install lz4 a block compression algorithm that I use as it will unzip to the last errorneous block if the archive is corrupted.
sudo apt update
sudo apt install lz4
  • plug in a large external USB drive.[note 3]
  • identify the computer disks with
lsblk
  • map the drive partitions to text file for later use
sudo sfdisk -L > /media/user/transfer-disk/2025-09-19-hostname-fdisk.txt
  • (option) backup the computer disk drive images e.g. NVME/sdcard disk [note 4]
dd if=/dev/mmcblk0 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-hostname.lz4
  • (option) backup hard disks drives e.g.
 dd if=/dev/sda bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda.lz4
  • (option) alternatively backup partitions such as the boot/efi, os e.g. [note 5]
 dd if=/dev/sda1 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda1.lz4
 dd if=/dev/sda2 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda2.lz4
 dd if=/dev/sda3 bs=512 | lz4 > /media/user/transfer-disk/2025-09-19-sda3.lz4
apt install lm-sensors
  • detect sensors
sensors-detect
  • then run while testing in a spare cli terminal
for (( ; ; )) do sensors; sleep 30; done

The heavy testing can be performed from another cli terminal. My favourite is to install the phorenix test suite [3]

  • install the phoronix test suite
wget https://phoronix-test-suite.com/releases/repo/pts.debian/files/phoronix-test-suite_10.8.3_all.deb
sudo dpkg -i phoronix*.deb
sudo apt-get install -f
  • install hackbench tests
https://dev.arising.com.au/dev/Phoronix_test_suite#:~:text=phoronix%2Dtest%2Dsuite%20install%20hackbench
  • run the hackbench
phoronix-test-suite run hackbench
  • run the lm-

Happy testing, There are other

preparing a live-boot thumb drive

A live boot [4] thumb drive can be constructed via:

and written to a thumb drive with dd

dd if=lubuntu.img bs=512M of=/dev/<thumb-drive-device> status=progress oflags=sync

or written with Rufus [6] if running from Windows.

See the references for instructions.

recent test results

I recently purchased a re-purposed laptop and it's been a cause of trouble and has been returned to the vendor for repair / replacement and it seems they sent the same unit back with the same failure mode still happening, despite previously explaining how I tested it and the two failure modes.

The symptoms are intermittent:

  • re-boots when the laptop is just sitting there, and
  • mouse, keyboard lock-ups where absolutely nothing can be done except hold down the ACPI power button for a very long time to force a reset / reboot.

Here is a media:dell-latitude-5420.mov [7] of the lockup failure mode - see my frustration at having to go through the process of contacting the vendor again for a return via RMA. [note 6]

notes

  1. On DELL F2 and Intel NUC holding down F2 during boot takes you to the BIOS. F10 on NUC and F12 on DELL takes you to the boot menu.
  2. I have PXE boot working in my laboratory and will be able to launch live images from there instead of media boot. My collection of images are not quite there yet and in this case PXE network booting would need to be enabled in the laptops.
  3. I prefer an ext4 formatted NVME disk caddy I purchased from Ugren and a 2 TB NVME M.2 disk for performance and size.
  4. Some computers such as Chrome book, DELL and others run M.2 NVME as their main drive and these appear as mmc devices uinder Linux.
  5. Backing up the whole disk is easier to use for restoration but slower of course. If you have plenty of storage a complete image makes sense. I store my backups in a NAS and I have 56T Bytes of capacity (or I used to)
  6. I contacted the vendor this morning and they said they will ship a replacement as soon as they receive notification that the other unit RMA has been received by the LPO. I sent a photograph of the LPO receipt / tracking number via my iPhone and I get back to the office and login on their website and my replacement order has been lodged awaiting dispatch. You can't fault their customer relations.
    I am pleased to announce that the Brisbane based vendor https://www.australiancomputertraders.com.au/ has good warranty and customer service. It is worth considering purchases of 2nd hand equipment when it is not too old and when it comes with warranty.

references

categories