Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Weird mount problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Tue Dec 13, 2011 12:42 pm    Post subject: [SOLVED] Weird mount problem Reply with quote

Yesterday I've noticed strange behaviour...after boot I was unable to log into the KDE 'cause it was unable to find my home directory. I had to mount it manually and I have to everytime after boot.

What is strange that mount -av has this output:

Code:

mount: /dev/sda2 already mounted on /home
mount: /dev/sda4 already mounted on /mnt/disk
mount: shm already mounted on /dev/shm
nothing was mounted


however its not mounted...how I said, I have to do it manually

Another strange thing from my dmesg:

Code:

Dec 13 13:03:51 lukyn kernel: [    5.261328] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
Dec 13 13:03:51 lukyn kernel: [    5.272246] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
Dec 13 13:03:51 lukyn kernel: [    5.299760] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)


About other partition there's no mention until I mount it manually. I have no idea why it tries mount as ext3, ext2 first, when my fstab is this.

Code:

/dev/sda1               /                       ext4            noatime                         0 1
/dev/sda3               none                    swap            sw                              0 0
/dev/sda2               /home                   ext4            auto,noatime                    0 1
/dev/sda4               /mnt/disk               ext4            auto,noatime                    0 1

shm                     /dev/shm                tmpfs           nodev,nosuid,noexec             0 0


I didn't change anything for long time. There was some udev updates, so I tried to downgrade it back to older version, but no help here. At this moment I have no idea whats going on and any help is appreciated


Last edited by LukynZ on Sun Dec 18, 2011 12:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Thu Dec 15, 2011 3:27 pm    Post subject: Reply with quote

looks like I'm the one and only :) who have this problem, but still no solution :(
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Thu Dec 15, 2011 3:38 pm    Post subject: Reply with quote

I have the same problem but with /dev/pts. I solved the problem adding to a high runlevel the init script which was written by me. That script does mounting a needed filesystem.
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 523
Location: San Diego, California USA

PostPosted: Fri Dec 16, 2011 12:48 am    Post subject: Reply with quote

Try taking out the 'auto' flag. I don't use that on my mounts. Maybe that's contributing to the problem.

Also, are the last parameters line-wrapped in your example or are they really separate lines in the config file? They shouldn't be on separate lines.
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Sat Dec 17, 2011 11:20 am    Post subject: Reply with quote

auto is not problem at all, lines are ok

I tried older backup and I updated it and there is no problem, so I have something broken and I have no idea how to find whats going on
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Sat Dec 17, 2011 11:46 am    Post subject: Reply with quote

Hi LukynZ,
Code:

Dec 13 13:03:51 lukyn kernel: [    5.261328] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
Dec 13 13:03:51 lukyn kernel: [    5.272246] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
Dec 13 13:03:51 lukyn kernel: [    5.299760] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

This is normal.
Your kernel doesn' have ext2 or ext3 fs support,I get it too.
I agree with gentoo_ram: take out the auto flag.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Sat Dec 17, 2011 3:23 pm    Post subject: Reply with quote

I tried to remove auto, however it is not the problem
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2348
Location: $TERM

PostPosted: Sat Dec 17, 2011 4:45 pm    Post subject: Reply with quote

Maybe mounts overlap? I mean, there are 2 mounts in a single directory... check it out with

Code:
mount

_________________
My blog
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Sat Dec 17, 2011 5:05 pm    Post subject: Reply with quote

thanks, this probably doesn't look good

Code:

rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,noatime,commit=0)
devtmpfs on /dev type devtmpfs (rw,relatime,size=4082768k,nr_inodes=1020692,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
rc-svcdir on /lib64/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
/dev/sda2 on /home type ext4 (rw,noatime,commit=0)
/dev/sda4 on /mnt/disk type ext4 (rw,noatime,commit=0)
/dev/sda2 on /home type ext4 (rw,noatime,commit=0)
/dev/sda4 on /mnt/disk type ext4 (rw,noatime,commit=0)
/dev/sda4 on /mnt/disk type ext4 (rw,noatime,commit=0)
/dev/sda2 on /home type ext4 (rw,noatime,commit=0)
/dev/sda4 on /mnt/disk type ext4 (rw,noatime,commit=0)
/dev/sda2 on /home type ext4 (rw,noatime,commit=0)
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2348
Location: $TERM

PostPosted: Sat Dec 17, 2011 6:03 pm    Post subject: Reply with quote

No, it does not.

Can you post your fstab? also, in the startup prevent KDM from starting and see if the issue persists.
_________________
My blog
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Sat Dec 17, 2011 6:37 pm    Post subject: Reply with quote

Disabling KDM from startup doesn't solve problem

fstab
Code:
/dev/sda1               /                       ext4            noatime                         0 1
/dev/sda3               none                    swap            sw                              0 0
/dev/sda2               /home                   ext4            noatime                         0 2
/dev/sda4               /mnt/disk               ext4            noatime                         0 2

shm                     /dev/shm                tmpfs           nodev,nosuid,noexec             0 0
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2348
Location: $TERM

PostPosted: Sat Dec 17, 2011 6:52 pm    Post subject: Reply with quote

You've enabled kernel automouting?

Also see if some relevant configs remain from etc-update (especially in /etc/init.d).
_________________
My blog
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Sat Dec 17, 2011 7:08 pm    Post subject: Reply with quote

Yes I did

In etc there are no configs left
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Sat Dec 17, 2011 9:36 pm    Post subject: Reply with quote

please disable automounting. It is not needed at all.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Sat Dec 17, 2011 10:48 pm    Post subject: Reply with quote

Copy /proc/mounts to /etc/mtab and reboot



Py
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Sun Dec 18, 2011 12:59 pm    Post subject: Reply with quote

py-ro wrote:
Copy /proc/mounts to /etc/mtab and reboot



Py


Thanks, this solved the problem.

Still learning :)

energyman76b wrote:
please disable automounting. It is not needed at all.


Oki, I'll do
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Wed Apr 26, 2017 9:44 am    Post subject: Reply with quote

Wake up pretty old thread, but i had same problem and adding "rootfstype=ext4" to boot options did the trick.
Back to top
View user's profile Send private message
jwdonal
n00b
n00b


Joined: 17 Sep 2009
Posts: 10

PostPosted: Thu Sep 07, 2017 6:38 am    Post subject: thanks! Reply with quote

Adding "rootfstype=ext4 rw" to bootargs really helped but wasn't quite enough. I was then presented with:

Code:
[    1.191124] EXT4-fs (mmcblk0p2): Filesystem with huge files cannot be mounted RDWR without CONFIG_LBDAF


After a quick google search I found this page (https://kuttler.eu/en/post/filesystem-with-huge-files-cannot-be-mounted-read-write-without-config_lbdaf/?c=300806).

Turns out that the mkfs.ext4 utility (which I originally used to format the partition to EXT4) has "huge_file" support enabled by default. I fixed this by running the following command as suggested in the previous link:

Code:
tune2fs -O ^huge_file /dev/sdc2


Everything is working now!

P.S. Alternatively I could have enabled CONFIG_LBDAF in my kernel config and rebuilt. But I don't plan on having 2TB files on this system so using tune2fs was easier for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum