Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vbox:[root]:/mnt/boot# cat /mnt/etc/fstab
- # /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).
- #
- # <file system> <mount point> <type> <options> <dump> <pass>
- UUID=EBD1-2470 /boot vfat defaults 0 2
- UUID=c1bc355e-728b-458d-86cf-1c5c2e45b376 / ext4 defaults 0 1
- vbox:[root]:/mnt/boot# cp /mnt/etc/fstab /root/mnt_etc_fstab
- vbox:[root]:/mnt/boot# sed -i -n -e "/^#/p" /mnt/etc/fstab
- vbox:[root]:/mnt/boot# cat /mnt/etc/fstab
- # /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).
- #
- # <file system> <mount point> <type> <options> <dump> <pass>
- vbox:[root]:/mnt/boot# fstabgen -U /mnt >> /mnt/etc/fstab
- vbox:[root]:/mnt/boot# cat /mnt/etc/fstab
- # /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).
- #
- # <file system> <mount point> <type> <options> <dump> <pass>
- # /dev/mapper/lvmSystem-volRoot LABEL=ROOT
- UUID=c1bc355e-728b-458d-86cf-1c5c2e45b376 / ext4 rw,relatime 0 1
- # /dev/mapper/lvmSystem-volBoot LABEL=BOOT
- 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