开机永久挂载

1、vim /etc/fstab
2、添加 /dev/sr0 /mnt ext4 defaults 0 0

/etc/fstab

Created by anaconda on Thu Nov 22 01:21:30 2018

Accessible filesystems, by reference, are maintained under ‘/dev/disk’

See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

/dev/mapper/centos-root / xfs defaults 0 0
UUID=a1fed2e8-ecd5-4949-a0e1-d713d009e090 /boot xfs defaults 0 0

/dev/mapper/centos-swap swap swap defaults 0 0

/dev/sdb1 /bj ext4 defaults 0 0
/dev/sdb3 /nj ext4 defaults 0 0
/dev/sdb5 /wh ext4 defaults 0 0
/dev/sdb6 /sh ext4 defaults 0 0
/dev/sdb7 swap swap defaults 0 0

/dev/sr0 /mnt iso9660 defaults 0 0
3、mount -a
重新读取fstab文件,并挂载

4、reboot

你可能感兴趣的:(linux)