Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[Solved] Unable to mount ext4 partition read/write

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

[Solved] Unable to mount ext4 partition read/write

  • Quote

Post by 2bdkid » Thu Jul 31, 2014 3:48 am

I just installed Gentoo on my laptop and while booting an error message comes up saying it is unable to mount my root ext4 partition read/write, I can read from it but I cannot write.

I looked through some older threads and they said to enable CONFIG_LBDAF in the kernel but this only applies to x86, not amd64 like my laptop. It does mount just fine in the installation media so it much me a missing kernel option.

I don't know what commands to use to solve this myself so any help would be appreciated. And also bear with me, it'll be hard getting stuff of computer with only CLI lol.
Last edited by 2bdkid on Thu Jul 31, 2014 7:34 pm, edited 1 time in total.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Thu Jul 31, 2014 7:51 am

boot, run

Code: Select all

mount -o remount,rw /
not a fix but may restore capability while fixing. not having the following items has at times been reported as a cause of the reported problem.

Code: Select all

grep -i "CONFIG_DEVTMPFS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_DEVTMPFS=y

Code: Select all

grep -i "CONFIG_DEVTMPFS_MOUNT=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_DEVTMPFS_MOUNT=y

Code: Select all

grep -i "CONFIG_FSNOTIFY=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_FSNOTIFY=y

Code: Select all

grep -i "CONFIG_DNOTIFY=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_DNOTIFY=y

Code: Select all

grep -i "CONFIG_INOTIFY_USER=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_INOTIFY_USER=y

Code: Select all

grep -i "CONFIG_NET=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_NET=y

Code: Select all

grep -i "CONFIG_PROC_FS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_PROC_FS=y

Code: Select all

grep -i "CONFIG_SIGNALFD=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_SIGNALFD=y

Code: Select all

grep -i "CONFIG_SYSFS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_SYSFS=y

Code: Select all

grep -i "CONFIG_SYSFS_DEPRECATED is not set" /mnt/gentoo/usr/src/linux/.config
# CONFIG_SYSFS_DEPRECATED is not set

Code: Select all

grep -i 'CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"' /mnt/gentoo/usr/src/linux/.config
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"

Code: Select all

grep -i "CONFIG_BLK_DEV_BSG=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_BLK_DEV_BSG=y

Code: Select all

grep -i "CONFIG_TMPFS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_TMPFS=y

Code: Select all

grep -i "CONFIG_TMPFS_POSIX_ACL=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_TMPFS_POSIX_ACL=y

Code: Select all

grep -i "CONFIG_TMPFS_XATTR=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_TMPFS_XATTR=y
Defund the FCC.
Top
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

  • Quote

Post by 2bdkid » Thu Jul 31, 2014 1:32 pm

DONAHUE wrote:boot, run

Code: Select all

mount -o remount,rw /
not a fix but may restore capability while fixing. not having the following items has at times been reported as a cause of the reported problem.

Code: Select all

grep -i "CONFIG_DEVTMPFS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_DEVTMPFS=y

Code: Select all

grep -i "CONFIG_DEVTMPFS_MOUNT=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_DEVTMPFS_MOUNT=y

Code: Select all

grep -i "CONFIG_FSNOTIFY=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_FSNOTIFY=y

Code: Select all

grep -i "CONFIG_DNOTIFY=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_DNOTIFY=y

Code: Select all

grep -i "CONFIG_INOTIFY_USER=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_INOTIFY_USER=y

Code: Select all

grep -i "CONFIG_NET=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_NET=y

Code: Select all

grep -i "CONFIG_PROC_FS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_PROC_FS=y

Code: Select all

grep -i "CONFIG_SIGNALFD=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_SIGNALFD=y

Code: Select all

grep -i "CONFIG_SYSFS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_SYSFS=y

Code: Select all

grep -i "CONFIG_SYSFS_DEPRECATED is not set" /mnt/gentoo/usr/src/linux/.config
# CONFIG_SYSFS_DEPRECATED is not set

Code: Select all

grep -i 'CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"' /mnt/gentoo/usr/src/linux/.config
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"

Code: Select all

grep -i "CONFIG_BLK_DEV_BSG=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_BLK_DEV_BSG=y

Code: Select all

grep -i "CONFIG_TMPFS=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_TMPFS=y

Code: Select all

grep -i "CONFIG_TMPFS_POSIX_ACL=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_TMPFS_POSIX_ACL=y

Code: Select all

grep -i "CONFIG_TMPFS_XATTR=y" /mnt/gentoo/usr/src/linux/.config
CONFIG_TMPFS_XATTR=y
Ok I tried enabling all of these and it didn't fix it. I also tried using rootfstype=ext4 in grub and it didn't work.

When booting it says "mount -t ext4 -o ro" Would this be a problem with my fstab?

For my root partition I just have <opts> set at default.
Top
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

  • Quote

Post by 2bdkid » Thu Jul 31, 2014 1:37 pm

Ok I just tried using default,noatime,rw in my fstab and that didn't fix anything.
Top
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

  • Quote

Post by 2bdkid » Thu Jul 31, 2014 1:42 pm

mount -o remount,rw / gives me "mount: / not mounted or bad option"
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Jul 31, 2014 4:15 pm

2bdkid,

Is your / listed in /dev

Does it shaw in the output of mount and df.

root is always mounted read only to start with so rootfsck can be run.
When that succeeds. root is remounted rw.
If it fails, you should see something in dmesg.

ext2 and ext3 can mount some ext4 fs, depending on the ext4 options in use.
In some cases, as read only. df and/or mount will show that.

As a throw away snippet, the root entry in fstab is not used to mount root.
That would be chicken and egg, since root has to be mounted to read /etc/fstab.
However, /etc/fstab is used to know the root filesystem type for rootfsck.

I suspect that rootfsck is failing for some reason, so root remains read only.

Is /etc/mtab a real file or a symlink?
For openrc, both work, systemd users must have the symlink. This is the table of mounted filesystems and will be consulted by -o remount
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

  • Quote

Post by 2bdkid » Thu Jul 31, 2014 5:31 pm

NeddySeagoon wrote:2bdkid,

Is your / listed in /dev

Does it shaw in the output of mount and df.

root is always mounted read only to start with so rootfsck can be run.
When that succeeds. root is remounted rw.
If it fails, you should see something in dmesg.

ext2 and ext3 can mount some ext4 fs, depending on the ext4 options in use.
In some cases, as read only. df and/or mount will show that.

As a throw away snippet, the root entry in fstab is not used to mount root.
That would be chicken and egg, since root has to be mounted to read /etc/fstab.
However, /etc/fstab is used to know the root filesystem type for rootfsck.

I suspect that rootfsck is failing for some reason, so root remains read only.

Is /etc/mtab a real file or a symlink?
For openrc, both work, systemd users must have the symlink. This is the table of mounted filesystems and will be consulted by -o remount
Yes I can see sda3 in /dev

df says it cannot read table of mounted file systems

/etc/mtab is just a file, I'm using openrc

Here is dmesg: https://dl.dropboxusercontent.com/u/74532228/dmesg.txt

Would it be best to reinstall and have a seperate boot partition?
Top
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

  • Quote

Post by 2bdkid » Thu Jul 31, 2014 5:48 pm

I have a feeling it's because I need a boot partition. I'm just going to reinstall, I wont lose anything.
Top
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

  • Quote

Post by 2bdkid » Thu Jul 31, 2014 7:33 pm

Well I just reinstalled and added a boot partition. Everything is working fine now.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Jul 31, 2014 7:58 pm

2bdkid,

By reinstalling, you have lost a learning opportunity.

Your dmesg says

Code: Select all

[   10.945769] EXT4-fs (sda3): Unrecognized mount option "default" or missing value
which tells that your /etc/fstab was incorrect. Reinstalling allowed you an opportunity to not make that mistake again. A /boot partition is needed only if
a) the BIOS cannot read the entire HDD.
b) root on raid/LVM/encrypted or other less common installs.

Your dmesg also says

Code: Select all

 [10841.343765] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
You probably removed tho volume without unmounting it first. Thats a very bad thing.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Thu Jul 31, 2014 8:01 pm

dmesg said
EXT4-fs (sda3): Unrecognized mount option "default" or missing value
correct spelling is defaults, apparently got corrected during the reinstall
Defund the FCC.
Top
2bdkid
n00b
n00b
Posts: 14
Joined: Sat Jul 26, 2014 2:48 pm
Location: USA

  • Quote

Post by 2bdkid » Fri Aug 01, 2014 12:53 am

I see what you mean. I guess I missed that in dmesg.
Top
Post Reply

12 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic