Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux 2.4.21, ReiserFS / with option errors=remount-ro
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Mon Jun 16, 2003 8:52 am    Post subject: Linux 2.4.21, ReiserFS / with option errors=remount-ro Reply with quote

After booting Linux 2.4.21 for the first time my root partition (reiserfs) could not be mounted read-write. /etc/init.d/checkroot failed when executing
Code:
mount / -n -o remount,rw &>/dev/null
and complained
Code:
Root filesystem could not be mounted R/W :(

My root partition entry in /etc/fstab was
Code:
/dev/hda8 / reiserfs errors=remount-ro 0 1

After I changed it to
Code:
/dev/hda8 / reiserfs defaults 0 1
checkroot succeeded.

Anybody having the same problem? With Linux 2.4.20 I didn't have this problem, although I had the remount-ro error option in fstab.


Greetings, Jukka
Back to top
View user's profile Send private message
ledzep37
n00b
n00b


Joined: 28 May 2003
Posts: 19

PostPosted: Mon Jun 16, 2003 1:15 pm    Post subject: Re: Linux 2.4.21, ReiserFS / with option errors=remount-ro Reply with quote

jukka wrote:
After booting Linux 2.4.21 for the first time my root partition (reiserfs) could not be mounted read-write. /etc/init.d/checkroot failed when executing
Code:
mount / -n -o remount,rw &>/dev/null
and complained
Code:
Root filesystem could not be mounted R/W :(

My root partition entry in /etc/fstab was
Code:
/dev/hda8 / reiserfs errors=remount-ro 0 1

After I changed it to
Code:
/dev/hda8 / reiserfs defaults 0 1
checkroot succeeded.

Anybody having the same problem? With Linux 2.4.20 I didn't have this problem, although I had the remount-ro error option in fstab.


Greetings, Jukka


The option parsing code for reiserfs, found in fs/reiserfs/super.c, changed between 2.4.20 and 2.4.21. I belive the new code fails if it encounters mount options in does not understand at all, and reiserfs has never had any vaild errors= option.
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Wed Jun 18, 2003 8:04 am    Post subject: Reply with quote

yeah, i had the same problem. my first quick-and-dirty-solution was hardcoding /dev/hda2 into the mount-command of the script (it worked then, god knows why), but your solution looks much better :D
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Mon Jun 23, 2003 2:02 am    Post subject: Reply with quote

What is the 0 1 mean at the end of the line? Mine was set to 0 0 before.

Edit: Nevermind ... man fstab had the answer:

Code:

The sixth field, (fs_passno), is used by the fsck(8) program to  deter-
       mine the order in which filesystem checks are done at reboot time.  The
       root filesystem should be specified with a fs_passno of  1,  and  other
       filesystems  should  have a fs_passno of 2.  Filesystems within a drive
       will be checked sequentially, but filesystems on different drives  will
       be  checked  at  the  same time to utilize parallelism available in the
       hardware.  If the sixth field is not present or zero, a value  of  zero
       is  returned  and fsck will assume that the filesystem does not need to
       be checked.

_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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