MrRockchip

debugging_artix_fstab

May 13th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. vbox:[root]:/mnt/boot# cat /mnt/etc/fstab
  2. # /etc/fstab: static file system information.
  3. #
  4. # Use 'blkid' to print the universally unique identifier for a device; this may
  5. # be used with UUID= as a more robust way to name devices that works even if
  6. # disks are added and removed. See fstab(5).
  7. #
  8. # <file system> <mount point> <type> <options> <dump> <pass>
  9. UUID=EBD1-2470 /boot vfat defaults 0 2
  10. UUID=c1bc355e-728b-458d-86cf-1c5c2e45b376 / ext4 defaults 0 1
  11. vbox:[root]:/mnt/boot# cp /mnt/etc/fstab /root/mnt_etc_fstab
  12. vbox:[root]:/mnt/boot# sed -i -n -e "/^#/p" /mnt/etc/fstab
  13. vbox:[root]:/mnt/boot# cat /mnt/etc/fstab
  14. # /etc/fstab: static file system information.
  15. #
  16. # Use 'blkid' to print the universally unique identifier for a device; this may
  17. # be used with UUID= as a more robust way to name devices that works even if
  18. # disks are added and removed. See fstab(5).
  19. #
  20. # <file system> <mount point> <type> <options> <dump> <pass>
  21. vbox:[root]:/mnt/boot# fstabgen -U /mnt >> /mnt/etc/fstab
  22. vbox:[root]:/mnt/boot# cat /mnt/etc/fstab
  23. # /etc/fstab: static file system information.
  24. #
  25. # Use 'blkid' to print the universally unique identifier for a device; this may
  26. # be used with UUID= as a more robust way to name devices that works even if
  27. # disks are added and removed. See fstab(5).
  28. #
  29. # <file system> <mount point> <type> <options> <dump> <pass>
  30. # /dev/mapper/lvmSystem-volRoot LABEL=ROOT
  31. UUID=c1bc355e-728b-458d-86cf-1c5c2e45b376 / ext4 rw,relatime 0 1
  32.  
  33. # /dev/mapper/lvmSystem-volBoot LABEL=BOOT
  34. UUID=EBD1-2470 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
Advertisement
Add Comment
Please, Sign In to add comment