Unable to run e2fsck on volume after resizing
Hello,
I've resized my volume and rebooted my server but cannot run e2fsck after unmounting:
$ sudo umount /dev/disk/by-id/scsi-0Linode_Volume_media-storage
umount: /dev/disk/by-id/scsi-0Linode_Volume_media-storage: not mounted.
$ sudo e2fsck -f /dev/disk/by-id/scsi-0Linode_Volume_media-storage
e2fsck 1.44.5 (15-Dec-2018)
/dev/disk/by-id/scsi-0Linode_Volume_media-storage is in use.
e2fsck: Cannot continue, aborting.
I thought I could skip ahead and resize without checking the file system, and I got this:
sudo resize2fs /dev/disk/by-id/scsi-0Linode_Volume_media-storage
resize2fs 1.44.5 (15-Dec-2018)
resize2fs: Device or resource busy while trying to open /dev/disk/by-id/scsi-0Linode_Volume_media-storage
Couldn't find valid filesystem superblock.
I'm new to linux…don't know why the volume is still showing in use after unmounting. Any help is appreciated.
3 Replies
Is this a block storage volume or did you resize your plan? If it's a block storage volume, I don't believe they come with filesystems so you have to create a filesystem on it. That's why mount/umount/e2fsck are not working properly.
-- sw
It's a block storage volume that I resized.