Procedure to install Debian 12.5.0 (Bookworm) Live on a USB pen drive with persistence

 I installed Debian 12.5.0 (codename Bookworm) Live on an 8 GB USB pen drive and added persistence. (The install was done to run on an ASUS laptop with Intel Celeron-N4500 processor and 4GB of RAM. In the BIOS of the laptop, i first disabled Fast Boot and Secure Boot Control.)

1. First located and downloaded the iso image from the website https://cdimage.debian.org/cdimage/archive/12.5.0-live/amd64/iso-hybrid/

I downloaded the file debian-live-12.5.0-amd64-gnome.iso from the above website.

(This is the non-free version.)

 2. Saved the iso file on the windows 11 laptop.

3. Download the free balenaEtcher application to windows.

4. Ran balenaEtcher as Administrator.

5. Inserted the pen drive to the computer. Made sure it was formatted to FAT32. You will lose all existing data on the pen drive.

6. Using balenaEtcher, flashed the iso image on to the pen drive. 

7. Rebooted the computer. Held the appropriate key on boot to bring up setup. 

8. In setup, disabled Fast Boot and Secure Boot. Saved changes and exited.

9. With the flashed pen drive inserted, rebooted the computer while holding Esc key.

10. The list of Bootable drives is listed. Found my pen drive in the list. Selected it and pressed Enter.

11. The GRUB menu shows up. Pressed Ctrl+X to boot.

12. Debian Live boots up.

TO ADD PERSISTENCE:

13. Rebooted the computer to the GRUB menu.

14. This time, pressed e to edit the boot parameters.

15. At the end of the linux string, typed "toram" (without quotes).

16. Pressed Ctrl-X to boot.

17.  Debian started up. 

18. Opened a command terminal. Typed "sudo su".

Typed "sudo swapoff -a"

(/dev/sda is the pen drive. Make sure you don't use your windows drive by mistake).

Typed "sudo umount /dev/sda2"

Typed "sudo umount /dev/sda1"

19. Typed "sudo fdisk --wipe=never -t dos /dev/sda"

(/dev/sda is the pen drive. Make sure you don't use your windows drive by mistake).

20. fdisk started up. Typed n (for new partition).

21. Typed p (for primary partition).

22. Typed 3 or press enter to default to 3rd partition.

23. For the start sector, accepted the default.

24. For end sector, I entered +1500M to create a partition of 1500 MB.

At one point, you will see a message "Partition number 3 contains a ext3 signature. Do you want to remove the signature?" Answer n.

25. Typed p to review my choices.

26. Typed w to write the changes and exit fdisk.

27. At the command prompt, typed "sudo mkfs.ext3 -L persistence /dev/sda3" to format the partition as ext3 with volume label persistence.

28. Typed "sudo mkdir /ptmp && mount /dev/sda3 /ptmp"

29. Typed "sudo echo "/ union" > /ptmp/persistence.conf"

30. Typed "sudo umount /dev/sda3"

31.  Reviewed the partitions by running "sudo fdisk -l"

32. Rebooted the system and select the pen drive to boot from.

33. At the GRUB menu, typed e for boot parameters. At the end of the linux line, typed persistence 

34. Did Ctrl-X to boot.

35. Debian live with persistence boots up.

Comments

Popular posts from this blog

Changes in social structure and social conventions as reflected in Indian movies

Dynamic between governments and corporations: how is it evolving?

My review of "Murder on the Orient Express" (2017)