knowledgebase/journals/2022_12_19.md
2023-09-19 08:23:41 +02:00

1.8 KiB

  • Per testare un file fstab senza riavviare la macchina #linux
    • mount -fav
  • Generatore di problemi matematici scritto in #python. Potrebbe essere utilizzato con sorgente dati per il generatore di quiz incluso in #Probo
  • Esempio di file /etc/fstab su un sistema #linux per montare unità disco esterne #sysadmin
    • wfuu# /etc/fstab: static file system information.
      #
      # Use 'blkid' to print the universally unique identifier for a
      # device; this may be used with UUID= as a more robust way to name devices
      # that works even if disks are added and removed. See fstab(5).
      #wfuu
      # <file system> <mount point>   <type>  <options>       <dump>  <pass>
      # / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
      /dev/disk/by-id/dm-uuid-LVM-qqGDYPbzW2kbFzUAbNt6Lian8jUrGqtU16SoeG6zSGcxvBhFROfblCdYTWCae19k / ext4 defaults 0 1
      # /boot was on /dev/sda2 during curtin installation
      /dev/disk/by-uuid/6fdc7309-4851-4cf3-afaf-9a45f6106be4 /boot ext4 defaults 0 1
      # /boot/efi was on /dev/sda1 during curtin installation
      /dev/disk/by-uuid/8FA7-83C7 /boot/efi vfat defaults 0 1
      /swap.img       none    swap    sw      0       0
      
      # External disks
      
      /dev/disk/by-uuid/ad8fbdaa-df8f-4031-b5fa-2661a5638742 /media/penta ext4 defaults,nofail 0 0
      /dev/disk/by-uuid/85FE-4750 /media/external_ssd exfat defaults,nofail 0 0
      
  • Lezione #Mathesis sulla moneta
  • Per trovare l'UUID di un disco in su un sistema #linux in #linuxcommandline in base a questo articolo
    • sudo blkid | grep UUID=
      ## oppure
      sudo lsblk -f | grep -v loop