Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to resize an ext4 filesystem on a Fedora 11 box. Using fsdisk and lvm, I was able to grow the partition and logical volume containing the filesystem.

When I try to run resize2fs on the device containing the filesystem (/dev/sda2 in this case), I get:

"Device or resource busy while trying to open /dev/sda2, Couldn't find valid filesystem superblock"

I've tried this from a rescue disk that doesn't have the filesystem mounted, no joy.

Maybe resize2fs doesn't know about ext4?

share|improve this question

migrated from stackoverflow.com May 5 '10 at 12:10

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

If you're using LVM then you want to resize the filesystem in the LV, not in the partition. Try one of the entries in /dev/mapper instead.

share|improve this answer
add comment

If you boot from a live cd be sure the lvm package is present (apt-get install lvm2). If so, use vgchange -a y to activate all the volumes. You can now access them under /dev/lvm/ or /dev/mapper/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.