Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28770 - updates for reiserfs to install doc
Summary: updates for reiserfs to install doc
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-15 04:22 UTC by dave
Modified: 2003-09-16 02:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dave 2003-09-15 04:22:40 UTC
When a reiserfs root parition is not cleanly unmounted, on reboot when checkroot
is called, it uses fsck.reiserfs which does not work and therefore the root file
system is loaded as readonly and rc stops.
 

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) XP 1600+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://212.219.56.152/sites/www.ibiblio.org/gentoo/
http://212.219.56.146/sites/www.ibiblio.org/gentoo/
http://194.83.57.15/sites/www.ibiblio.org/gentoo/
http://212.219.56.131/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib gdbm berkdb slang readline arts svga java X sdl gpm tcpd pam ssl perl
python imlib oggvorbis motif opengl qt kde gnome gtk"
Comment 1 SpanKY gentoo-dev 2003-09-15 06:00:44 UTC
define 'wont work'

can you post your /etc/fstab ?
Comment 2 dave 2003-09-15 07:50:36 UTC
the checkroot executes 'fsck.reiserfs -a /dev/hdxx'.   fsck.reiserfs then outputs that -a 
is not a option.  I think what it should be using is, iirc, reiserfscheck (which is on the 
livecd but not on my installation).   
Basically, it looks like fsck.reiserfs has not been implemented and without it reporting 
back that the disk is fixed then checkroot has no option but to fail the check and stop 
rc. 
To fix my system, first I used the livecd to check for any corruption on the root parition 
and then edited the checkroot script to return that the check passed without 
performing the check.  I know this is a hack but I really needed to get into my system ;) 
 
 
Comment 3 SpanKY gentoo-dev 2003-09-15 08:08:40 UTC
root@vapier 0 root # readlink `which fsck.reiserfs`
/sbin/reiserfsck
root@vapier 0 root # qpkg -f /sbin/reiserfsck
sys-apps/reiserfsprogs *

do you have reiserfsprogs on your system ?  if not i think you should emerge it.  when you're given a prompt with a readonly root you could always run `mount -o remount,rw` ... or load the cd, mount it, and run reiserfsck ...
Comment 4 dave 2003-09-15 08:21:08 UTC
I didn't have reiserfsprogs emerged, however if you are using reiserfs then imo this be 
downloaded automatically so people dont have this problem (if it does solve it). 
 
Anyway, back the bug - i did check the filesystem from the livecd using reiserfsck, 
however when i came back clean, my system still had the same problem on bootup (i.e 
stopping rc).  That is why i had to edit checkroot to stop it from trying to check the 
filesystem.  So basically, even after a proper check it still didn't boot correctly.   
Sorry for not being precise but this is my first bug report ;) 
Comment 5 SpanKY gentoo-dev 2003-09-15 08:29:12 UTC
yeah you should have reiserfs installed but how is portage to know ?

you're asking for quite tight integration between active kernel features and what the user has on their system ...

basically chroot into your system (or do what i said above about remounting /) and `emerge reiserfsprogs` and you should be all set
Comment 6 dave 2003-09-15 08:38:07 UTC
yeah ok, but maybe a warning to install reiserfsprogs if you are using reiserfs as / should be in the install documentation as it does say "Reiserfs is the filesystem we recommend by default for all none-boot partitions".

Thanks for the help
Comment 7 SpanKY gentoo-dev 2003-09-15 09:03:40 UTC
hmm, it used to ... lets get that fixed :)
Comment 8 SpanKY gentoo-dev 2003-09-15 09:05:40 UTC
we should have a suggestion that the user emerge the appropriate set of filesystem utilities (reiserfsprogs, xfsprogs, etc...) for the filesystem they use

also, code listing 15.1 has 2 open parentheses and only 1 closed in the comment section ;)
Comment 9 Brad Cowan (RETIRED) gentoo-dev 2003-09-15 23:08:38 UTC
This is in the install docs 17.2....has always been there.

You may need to install some additional packages in the Portage tree if you are using any optional features like XFS, ReiserFS or LVM. If you're using XFS, you should emerge the xfsprogs package:

If you would like to use ReiserFS, you should emerge the ReiserFS tools:
# emerge -k sys-fs/reiserfsprogs
 
need I say more :)
Comment 10 Sven Vermeulen (RETIRED) gentoo-dev 2003-09-16 02:36:46 UTC
This is indeed in http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap17

I'll close this bug as WORKSFORME.