Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Help me mount a file

So I have an ext4 file that was mounted on loopback but after a reboot stopped working.

Cloudflare blocks me from posting the terminal output, so I have pasted it here: http://pastebin.com/raw/mYNB2eX3

Any idea how I could successfully mount the file? Help will be immensely appreciated.

Comments

  • rds100rds100 Member
    edited April 2016

    You don't really need to losetup to mount it, you can just mount -oloop ./data /mnt

    But it seems your file(system) is damaged. You can try e2fsck -f -v /dev/loop7

  • @rds100 Thanks!

    Journal inode is not in use, but contains data. Clear<y>? <-- is this a yes?

  • rds100rds100 Member
    edited April 2016

    @deadbeef do you have 27GB free space there? If yes, first make a copy of the file, then proceed with the fsck.

  • @rds100 I proceeded with the fsck, I am now getting a different error: http://pastebin.com/raw/GysCrZ6Z

  • Btw, does that fsck output mean that there are no files in the block or I am misreading it?

  • When the fsck finishes with "file system was modified" it's a good idea to run fsck once more.

  • Update: mounting it as ext4 with no flags works, so I guess I did lose all the files :(

    The irony is that this was in a replicated Azure disk. Lesson learned.

    Thank you vey much @rds100 for your help!

Sign In or Register to comment.