To attach: mount /dev/xvdf /vol
To detach: umount /vol
where /vol
is the mount point
When you want to re-attach a root device, you have to set the device name to/sda1
instead of the default name /sdf
If error when trying to mount EBS:
1 |
mount: wrong fs type, bad option, bad superblock on /dev/xvdf, |
try:sudo mount /dev/xvdf /vol -t ext4
or sudo mount /dev/xvdf1 /vol -t ext4
Filesystem check: fsck
If any settings wrong, it’s in /etc/fstab
近期评论