View previous topic :: View next topic |
Author |
Message |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Tue Dec 13, 2011 12:42 pm Post subject: [SOLVED] Weird mount problem |
|
|
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 |
|
 |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Thu Dec 15, 2011 3:27 pm Post subject: |
|
|
looks like I'm the one and only who have this problem, but still no solution  |
|
Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Thu Dec 15, 2011 3:38 pm Post subject: |
|
|
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 |
|
 |
gentoo_ram Guru

Joined: 25 Oct 2007 Posts: 523 Location: San Diego, California USA
|
Posted: Fri Dec 16, 2011 12:48 am Post subject: |
|
|
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 |
|
 |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Sat Dec 17, 2011 11:20 am Post subject: |
|
|
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 |
|
 |
gerard27 Advocate

Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Sat Dec 17, 2011 11:46 am Post subject: |
|
|
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 |
|
 |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Sat Dec 17, 2011 3:23 pm Post subject: |
|
|
I tried to remove auto, however it is not the problem |
|
Back to top |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2348 Location: $TERM
|
Posted: Sat Dec 17, 2011 4:45 pm Post subject: |
|
|
Maybe mounts overlap? I mean, there are 2 mounts in a single directory... check it out with
_________________ My blog |
|
Back to top |
|
 |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Sat Dec 17, 2011 5:05 pm Post subject: |
|
|
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 |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2348 Location: $TERM
|
Posted: Sat Dec 17, 2011 6:03 pm Post subject: |
|
|
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 |
|
 |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Sat Dec 17, 2011 6:37 pm Post subject: |
|
|
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 |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2348 Location: $TERM
|
Posted: Sat Dec 17, 2011 6:52 pm Post subject: |
|
|
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 |
|
 |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Sat Dec 17, 2011 7:08 pm Post subject: |
|
|
Yes I did
In etc there are no configs left |
|
Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Sat Dec 17, 2011 9:36 pm Post subject: |
|
|
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 |
|
 |
py-ro Veteran


Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Sat Dec 17, 2011 10:48 pm Post subject: |
|
|
Copy /proc/mounts to /etc/mtab and reboot
Py |
|
Back to top |
|
 |
LukynZ Apprentice


Joined: 19 Dec 2008 Posts: 230 Location: The Czech Republic
|
Posted: Sun Dec 18, 2011 12:59 pm Post subject: |
|
|
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 |
|
 |
P.Kosunen Guru

Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Wed Apr 26, 2017 9:44 am Post subject: |
|
|
Wake up pretty old thread, but i had same problem and adding "rootfstype=ext4" to boot options did the trick. |
|
Back to top |
|
 |
jwdonal n00b

Joined: 17 Sep 2009 Posts: 10
|
Posted: Thu Sep 07, 2017 6:38 am Post subject: thanks! |
|
|
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 |
|
 |
|