hasemmet.blogg.se

Install linux on usb for persistence
Install linux on usb for persistence











install linux on usb for persistence
  1. #INSTALL LINUX ON USB FOR PERSISTENCE INSTALL#
  2. #INSTALL LINUX ON USB FOR PERSISTENCE ISO#
  3. #INSTALL LINUX ON USB FOR PERSISTENCE FREE#
  4. #INSTALL LINUX ON USB FOR PERSISTENCE WINDOWS#

  • The file nf with the content / union at the top level of partition #5.
  • The label persistence on partition #5 (not casper-rw as in Ubuntu).
  • The boot option persistence (not persistent as in Ubuntu).
  • Mkusb does the following tweaks automatically:
  • ext partition for persistence, where your modifications (and files) are stored.
  • #INSTALL LINUX ON USB FOR PERSISTENCE ISO#

  • ISO9660 partition containing clone of the iso file.
  • FAT32 boot partition for booting with grub (both in UEFI and BIOS mode).
  • Extended partition or bios_grub partition.
  • #INSTALL LINUX ON USB FOR PERSISTENCE WINDOWS#

  • NTFS partition for exchange of data with Windows computers (optional size).
  • install linux on usb for persistence

    Mkusb creates a partition table and 5 partitions: See also this link (where Debian is one of the distros listed).

    install linux on usb for persistence

    There are tips about persistent live drives made with mkusb.

    #INSTALL LINUX ON USB FOR PERSISTENCE INSTALL#

    See the details at this link to install mkusb in Debian. mkusb supports Debian 8 or newer, and you should use the current version of mkusb (version 12.3.3 or newer). It is possible (and I would say rather simple) to use mkusb to create a persistent live drive from a Debian live iso file. There is no conventional way to make a cloned Debian iso file persistent, because it has a read-only file system, ISO9660, (and read-only 'partition table'). fdisk /dev/sdX /mnt/nfĬloning (copying each byte as it is, creating a one-to-one copy) is a very simple and reliable method to create a boot drive (live drive or install drive) from a linux hybrid iso file.

    #INSTALL LINUX ON USB FOR PERSISTENCE FREE#

    You could simply put to your USB Key: (Note: ensure first your USB Key is not mounted!) dd if= of=/dev/sdXĪdd new Linux partion by using free space. The 'iso-hybrid' umage do contain already two partitions for UEFI and live mixed in a way both EFI and BIOS could boot on. If everything's ok, you may find your own Debian live: ls -l *.iso Note: If you read cryptsetup: WARNING: Couldn't determine root device, it's fine! This mean that cryptsetup is installed on your initrd. Then run final stage (will take some more lot of time ~25'): lb installer lb binary /cryptsetup-initramfs/conf-hook \Ĭhroot/etc/initramfs-tools/hooks/cryptsetup Now you could add your module and binaries: echo dm-crypt > chroot/etc/initramfs-tools/modulesĬhroot/etc/cryptsetup-initramfs/conf-hook Ok, next two command will take a loooong time! (Approx 40' on my host) lb bootstrap lb chroot I wrote a little XARGS function for dropping commented lines: XARGS() įirst setting bootparams, with localisation and arguments for persistence and cryptsetup: ExtraBootParams=$(XARGS config/package-lists/ \ Note: All this stuff was done under root user (this must work by using fakeroot, but this is not tested there and today). More regular, but a little longer (at least for 1st image), There is a way, using FAT and syslinux, but you have a lot of data manipulations. You just have to add persistence to boot command line, but nothing else!? Unfortunately, as 1st partition is bundled with UEFI and is ISO, you can't modify the boot command. The kernel commandline will be displayed, then add persistence with a space, after last word ( quiet), then hit Return. Once menu screen is displayed, choose your boot option, then instead of Return, hit Tab. If you use official, unmodified image, for using persistence, you have to interrupt boot selection: This could be run without interaction: fdisk /dev/sdX /mnt/nf Then add your third partition for persistence: fdisk /dev/sdX

  • Install on USB key dd if=debian-live-10.0.0-amd64-standard-persist.iso of=/dev/sdX.
  • Ok this will work only while grub boot command do contain this two words together.īut care to not miss the space after persistence: "splash quiet" -> 12 characters This will create a modified copy of your live binary file, by strictly replacing splash quiet or quiet splash by persistence, everywhere. LANG=C sed 's/splash quiet/persistence / s/quiet splash/persistence /' \ You could alter them by using sed for replacing strings in binary. Ok ISO filesystem is read-only, but there is a little workaround: we could replace non vital bootparam by persistence in this way.

    install linux on usb for persistence

  • First try with official image from From SE site (standard live): wget įrom automatic mirror selection (mate live): wget.












  • Install linux on usb for persistence