You are not logged in.

#1 2016-10-07 11:31:35

shaurz
Member
Registered: 2004-02-02
Posts: 358

mount command succeeds, but filesystem is not mounted!

Here's a weird one. I have created a new ext4 filesystem and I've tried to mount it, but it just refuses (with no error).

# mount /dev/sda7 /devel
# echo $?
0
# umount /dev/sda7
umount: /dev/sda7: not mounted

The mount command does not show the partition as mounted. I get this output in dmesg:

EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: (null)

What the heck is going on?

Last edited by shaurz (2016-10-07 13:20:56)

Offline

#2 2016-10-07 11:37:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: mount command succeeds, but filesystem is not mounted!

Are the installed and running kernel versions the same?

pacman -Q linux; uname -a

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2016-10-07 11:37:23

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: mount command succeeds, but filesystem is not mounted!

I can't explain what happened, but a few reboots later and it's OK now. My system was in some funky state.

Offline

#4 2016-10-07 13:23:47

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: mount command succeeds, but filesystem is not mounted!

After another reboot the problem came back. I noticed that the partition's UUID has changed so it looks like something is corrupting it. When I try to mount again I get this error:

mount: mount /dev/sda7 on /devel failed: Bad message

I ran fsck on the partition and got several errors (free blocks count wrong, directories count wrong, etc.)

Last edited by shaurz (2016-10-07 13:25:04)

Offline

#5 2016-10-07 13:44:08

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: mount command succeeds, but filesystem is not mounted!

https://www.archlinux.org/packages/extr … tmontools/
And secure your private data before!

Online

#6 2016-10-07 13:47:22

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: mount command succeeds, but filesystem is not mounted!

I've not had any corruption until I resized my root partition (btrfs) to create the new partition (ext4). I've run all diagnostics on my SSD and there is no indication of any errors. Perhaps the partition resizing tool (gparted live iso) has messed something up, so I'm deleting the partition and trying again (with an Arch live iso instead).

Offline

#7 2016-10-07 14:30:07

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: mount command succeeds, but filesystem is not mounted!

It seems like Windows might be corrupting the filesystem. It happened again after rebooting from Windows.

This could be related to my use of 'ntfsfix' which I have to run on NTFS partitions in order to mount them in Linux. Perhaps a bug in that program is corrupting the NTFS filesystem in some way which causes it to splat data over other partitions on the drive when remounted in Windows.

I also have Ext2Fsd installed on Windows, although I don't use it. I will uninstall it to remove it as a variable.

Last edited by shaurz (2016-10-07 14:31:53)

Offline

#8 2016-10-07 19:39:43

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: mount command succeeds, but filesystem is not mounted!

Maybe run head -c 1M |strings to see what kind of stuff overwrote the first 1 meg of this partition (assuming this is the part which got overwritten, nobody knows for sure).

Check with fdisk -l if the partition doesn't overlap with another one. Something like your btrfs partition still using this space, for example.

Offline

#9 2016-10-07 20:48:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: mount command succeeds, but filesystem is not mounted!

Make sure that Windows "Fast Boot" is turned off.  Windows craps on other OSes when that is enabled.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

Board footer

Powered by FluxBB