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.

Did you make a file system on the volume… or did it already have one?

Like I said, if it didn’t have a file system on it, you would see the kind of problems you’re having.

— sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct