NoPaste

persistence

von grubenlicht
SNIPPET_DESC:
persistence mit Bedian auf einem USB Stick
SNIPPET_CREATION_TIME:
26.06.2021 14:57:54
SNIPPET_PRUNE_TIME:
24.09.2021 14:57:54

SNIPPET_TEXT:
  1. root@db-t520:/home/ich# lsblk
  2. NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  3. ...
  4. sdb       8:16   1   3,7G  0 disk
  5. ├─sdb1    8:17   1    16M  0 part /media/ich/682A-DD73
  6. ├─sdb2    8:18   1     2M  0 part /media/ich/grubcfg-file
  7. ├─sdb3    8:19   1   2,7G  0 part /media/ich/6D946BBF4CF1ED13
  8. └─sdb4    8:20   1     1G  0 part /media/ich/persistence
  9. sr0      11:0    1  1024M  0 rom  
  10. root@db-t520:/home/ich#
  11.  
  12. fdisk -l
  13. Disk /dev/sdb: 3,73 GiB, 4009754624 bytes, 7831552 sectors
  14. Disk model: USB DISK        
  15. Units: sectors of 1 * 512 = 512 bytes
  16. Sector size (logical/physical): 512 bytes / 512 bytes
  17. I/O size (minimum/optimal): 512 bytes / 512 bytes
  18. Disklabel type: dos
  19. Disk identifier: 0xf2e9b497
  20.  
  21. Device     Boot   Start     End Sectors  Size Id Type
  22. /dev/sdb1  *       2048   34815   32768   16M  4 FAT16 <32M
  23. /dev/sdb2         34816   38911    4096    2M  7 HPFS/NTFS/exFAT
  24. /dev/sdb3         38912 5734399 5695488  2,7G  7 HPFS/NTFS/exFAT
  25. /dev/sdb4       5734400 7831551 2097152    1G 83 Linux
  26. root@db-t520:~#
  27.  
  28. mount /dev/sdb1 /mnt
  29. root@db-t520:~#
  30.  
  31. ls -R /mnt
  32. /mnt:
  33.  boot-bios   boot-efi   EFI  'System Volume Information'
  34.  
  35. /mnt/boot-bios:
  36. grub
  37.  
  38. /mnt/boot-bios/grub:
  39. fonts  grub.cfg  grubenv  i386-pc  locale  pict1.png
  40.  
  41. /mnt/boot-bios/grub/fonts:
  42. unicode.pf2
  43.  
  44. /mnt/boot-bios/grub/i386-pc:
  45. 915resolution.mod     [...]
  46. parttool.mod
  47.  
  48. /mnt/boot-bios/grub/locale:
  49. de.mo     en_CA.mo  en@quot.mo  fr.mo  pt_BR.mo  ru.mo
  50. en_AU.mo  en_GB.mo  es.mo       it.mo  pt.mo     zh_CN.mo
  51.  
  52. /mnt/boot-efi:
  53. grub
  54.  
  55. /mnt/boot-efi/grub:
  56. fonts  grub.cfg  grubenv  locale  pict3.png  x86_64-efi
  57.  
  58. /mnt/boot-efi/grub/fonts:
  59. unicode.pf2
  60.  
  61. /mnt/boot-efi/grub/locale:
  62. de.mo     en_CA.mo  en@quot.mo  fr.mo  pt_BR.mo  ru.mo
  63. en_AU.mo  en_GB.mo  es.mo       it.mo  pt.mo     zh_CN.mo
  64.  
  65. /mnt/boot-efi/grub/x86_64-efi:
  66. acpi.mod              [...]
  67. zfs.mod
  68.  
  69. /mnt/EFI:
  70. BOOT
  71.  
  72. /mnt/EFI/BOOT:
  73. BOOTX64.EFI
  74.  
  75. '/mnt/System Volume Information':
  76. IndexerVolumeGuid  WPSettings.dat
  77. root@db-t520:~#
  78.  
  79. grub.cfg auf /dev/sdb2
  80.  
  81. if loadfont /boot/grub/fonts/unicode.pf2 ; then
  82.   set gfxmode=auto
  83.   insmod gfxterm
  84.   insmod vbe
  85.   terminal_output gfxterm
  86.   if terminal_output gfxterm; then true ; else
  87.     terminal gfxterm
  88.   fi
  89. fi
  90.  
  91. grub_gfxpayload_linux=keep
  92.  
  93.  set color_normal=light-gray/black
  94.  set menu_color_normal=white/black
  95.  set menu_color_highlight=red/black
  96.  
  97.  set default=0
  98.  
  99. menuentry "debian-live-9.8.0-amd64-lxde.iso" {
  100.   set root=(hd0,3)
  101.   linux  /live/vmlinuz-4.9.0-8-amd64 boot=live  components locales=de_DE.UTF-8 bootkbd=de console-setup/layoutcode=de
  102.   initrd /live/initrd.img-4.9.0-8-amd64
  103. }
  104. menuentry "debian-live-9.8.0-amd64-lxde.iso persistent" {
  105.   set root=(hd0,3)
  106.   linux  /live/vmlinuz-4.9.0-8-amd64 boot=live persistence components locales=de_DE.UTF-8 bootkbd=de console-setup/layoutcode=de
  107.   initrd /live/initrd.img-4.9.0-8-amd64
  108. }

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN