Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Could not mount the root filesystem as read / write - XFS

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
Thaidog
Veteran
Veteran
Posts: 1053
Joined: Wed May 19, 2004 1:36 am

Could not mount the root filesystem as read / write - XFS

  • Quote

Post by Thaidog » Wed Oct 01, 2008 3:00 pm

I have run in to an issue where every time I boot Linux the system says:

"Could not mount the root filesystem as read / write
Give password for maintenance"

I give the password and try to run fsck.xfs (xfs root filesystem) which tells me to run xfs_check or xfs_repair to manage the filesystem. I do that and reboot... but it still keeps asking. I have 3 kereels to boot from and they all do the same thing. I tried booting with knoppix and running xfs_check and xfs_repair - no significant problems found. I cxan mount the filesystem from Nkoppxi and make changes, add files.. etc - but when I boot back to the Gentoo system it still gives the same error.

I heard something like this could be some kind of filesystem maintenance error since it has been a while since this system has been booted it could be that XFS has added a flag to check the filesystem... not sure why this would not be taken care of after after running xfs_check on Knoppix however.
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Top
notHerbert
Advocate
Advocate
User avatar
Posts: 2228
Joined: Tue Mar 11, 2008 11:55 pm
Location: 45N 73W

  • Quote

Post by notHerbert » Wed Oct 01, 2008 4:30 pm

Please post /etc/fstab and grub.conf
Top
Thaidog
Veteran
Veteran
Posts: 1053
Joined: Wed May 19, 2004 1:36 am

  • Quote

Post by Thaidog » Wed Oct 01, 2008 7:28 pm

notHerbert wrote:Please post /etc/fstab and grub.conf
grub:

default 0
timeout 30

title=Gentoo Linux 2.6.22-r8

root (hd0,0) kernel /boot/kernel-2.6.24-gentoo-r7 root=/dev/hda2 splash=silent,theme:livecd-2007.0 video=vesafb:1024x768-32@60 quiet CONSOLE=/dev/tty1

initrd /boot/fbsplash-livecd-2007.0-1024x768

fstab:

/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 / XFS noatime 0 1
/dev/sda3 none swap sw 0 0

/dev/cdrom /mnt/cdrom auto noauto,user 0 0
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Top
notHerbert
Advocate
Advocate
User avatar
Posts: 2228
Joined: Tue Mar 11, 2008 11:55 pm
Location: 45N 73W

  • Quote

Post by notHerbert » Wed Oct 01, 2008 7:42 pm

Thanks Thaidog

Can you try this in grub

Code: Select all

root (hd0,0) 
kernel /boot/kernel-2.6.24-gentoo-r7 root=/dev/hda2 ro
initrd /boot/fbsplash-livecd-2007.0-1024x768
Ya I know ro - that's the problem. Please try it. The jfs filesystem needs the ro statement in grub to run it's filesystem checks, perhaps all your grub options are what are interfering with xfs running it's filesystem checks, and maybe adding ro will compensate.
Top
Ravak
n00b
n00b
Posts: 54
Joined: Fri Feb 03, 2006 3:53 pm
Location: GB/PL
Contact:
Contact Ravak
Website

  • Quote

Post by Ravak » Thu Oct 02, 2008 9:46 pm

In grub you define root as:

Code: Select all

root=/dev/hda2
but in fstab you have:

Code: Select all

/dev/sda2
Which is right?
Top
notHerbert
Advocate
Advocate
User avatar
Posts: 2228
Joined: Tue Mar 11, 2008 11:55 pm
Location: 45N 73W

  • Quote

Post by notHerbert » Fri Oct 03, 2008 3:30 pm

Ravak

Good catch.
Top
Thaidog
Veteran
Veteran
Posts: 1053
Joined: Wed May 19, 2004 1:36 am

  • Quote

Post by Thaidog » Fri Oct 03, 2008 6:08 pm

Ravak wrote:In grub you define root as:

Code: Select all

root=/dev/hda2
but in fstab you have:

Code: Select all

/dev/sda2
Which is right?
Mistype - it's /dev/hda
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Top
Thaidog
Veteran
Veteran
Posts: 1053
Joined: Wed May 19, 2004 1:36 am

  • Quote

Post by Thaidog » Fri Oct 03, 2008 7:51 pm

notHerbert wrote:Thanks Thaidog

Can you try this in grub

Code: Select all

root (hd0,0) 
kernel /boot/kernel-2.6.24-gentoo-r7 root=/dev/hda2 ro
initrd /boot/fbsplash-livecd-2007.0-1024x768
Ya I know ro - that's the problem. Please try it. The jfs filesystem needs the ro statement in grub to run it's filesystem checks, perhaps all your grub options are what are interfering with xfs running it's filesystem checks, and maybe adding ro will compensate.
Ok I will try it.
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Top
ragzovskii
n00b
n00b
Posts: 8
Joined: Sat Oct 11, 2008 3:06 am

  • Quote

Post by ragzovskii » Sat Nov 15, 2008 4:25 am

I have the same trouble.

fstab

Code: Select all

/dev/BOOT		/boot		ext2		noauto,noatime	1 2
/dev/ROOT		/mnt/hdd3		ext3		noatime		0 1
/dev/SWAP		/mnt/hdd2		swap		sw		0 0
/dev/cdrom		/mnt/cdrom	auto		noauto,ro	0 0 
grub.conf

Code: Select all

default 1
timeout 30
splashimage=(hd1,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.25-r8
root (hd1,2)
kernel /boot/kernel-genkernel-x86-2.6.25-gentoo-r8 root=/dev/ram0 ro video=vesafb:mtrr:3,ywrap,1280x1024-32@70
init=/linuxrc ramdisk=8192 real_root=/dev/hdd3 udev
initrd /boot/initramfs-genkernel-x86-2.6.25-gentoo-r8 
I really haven't ideas. help me, please
Last edited by ragzovskii on Sat Nov 15, 2008 9:15 am, edited 1 time in total.
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Sat Nov 15, 2008 6:17 am

Moved from Installing Gentoo to Kernel & Hardware.
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
djinnZ
Advocate
Advocate
User avatar
Posts: 4831
Joined: Thu Nov 02, 2006 12:47 pm
Location: somewhere in L.O.S.
Contact:
Contact djinnZ
Website

  • Quote

Post by djinnZ » Sat Nov 15, 2008 12:57 pm

is not an error 990 of xfs than require manual fix?
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Top
ragzovskii
n00b
n00b
Posts: 8
Joined: Sat Oct 11, 2008 3:06 am

  • Quote

Post by ragzovskii » Sat Nov 15, 2008 6:06 pm

according to my memories (and system messages) it's not a error 990: kernel says only "Could not mount the root filesystem as read / write
Give password for maintenance"

this is the last challenge between me and workable Gentoo Linux :)
Top
Thaidog
Veteran
Veteran
Posts: 1053
Joined: Wed May 19, 2004 1:36 am

  • Quote

Post by Thaidog » Sat Nov 15, 2008 10:08 pm

I had to work around this one. What I did was a backup using xfs_dump to another hd. After that I reformatted the root filesystem with mkfs.xfs with the force option. After that I did an xfs_restore to the new filesystem and then the system booted up just fine. Still this was an annoying process for something that looks like xfs_check should be able to handle.
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Top
Post Reply

13 posts • Page 1 of 1

Return to “Kernel & Hardware”

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