Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wont boot after emerging reiserfsprogs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
scrooch
n00b
n00b


Joined: 25 Jan 2003
Posts: 52
Location: Venlo/Eindhoven, the Netherlands

PostPosted: Fri Jul 25, 2003 1:01 pm    Post subject: wont boot after emerging reiserfsprogs Reply with quote

I have 1 reiserfs partition at /dev/hda2. This is not only my boot partition, but my root as well. Installation went fine, and it booted also ok. There was just 1 single error during boot, it couldn't find fsck.reiserfs . I haven't paid at this for months, it all just worked fine and had no problems.

Today I wanted to get rid of this error, so I emerged reiserfsprogs which contains that fsck.reiserfs thing. Not my system wont boot anymore. Grub is still fine, and the kernel itself boots ok. Then we get this error:

Code:
*Checking root filesystem...
fsck 1.33 (21 Apr 2003)
Failed to open the filesystem.

Warning ... fsck.reiserfs for device /dev/ROOT exited with signal 6.
* Filesystem coudn't be fixed :(

Give root password for maintainance. or press control D for normal startup


Coud you please help me out? :)
_________________
too much is never enough
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Fri Jul 25, 2003 1:42 pm    Post subject: Reply with quote

It looks like your /etc/fstab might have been overwritten, since fsck should probably be checking /dev/hda2 and not /dev/ROOT.

Boot with the livecd and fix your fstab, hopefully that will fix the problem.
Back to top
View user's profile Send private message
keanu
n00b
n00b


Joined: 02 Mar 2003
Posts: 15

PostPosted: Fri Jul 25, 2003 1:45 pm    Post subject: Reply with quote

okidoki

Last edited by keanu on Fri Jul 25, 2003 3:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Jul 25, 2003 2:03 pm    Post subject: Reply with quote

from the fsck.reiserfs info page:

Code:
EXIT CODES
       reiserfsck uses the following exit codes:
          0 - No errors.
          1 - File system errors corrected.
          4 - File system fatal errors left uncorrected,
              reiserfsck --rebuild-tree needs to be launched.
          6 - File system fixable errors left uncorrected,
              reiserfsck --fix-fixable needs to be launched.
          8 - Operational error.
          16 - Usage or syntax error.

reiserfsck --rebuild-tree from a boot disk or something, on the unmounted root filesystem
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
scrooch
n00b
n00b


Joined: 25 Jan 2003
Posts: 52
Location: Venlo/Eindhoven, the Netherlands

PostPosted: Fri Jul 25, 2003 2:42 pm    Post subject: Reply with quote

Thanks for the help so far. I checked the reiserfs partition for corruption, but it passed the test with no problems. Also after adding --rebuild-tree or --fix-fixable to reiserfsck the problem remained. Maybe I've got something wrong in my fstab or grub config, because during the boot something is pointing to /dev/ROOT, which doesn't sound right.
Code:



# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT      /boot      reiserfs   noauto,noatime,notail      1 1
/dev/ROOT      /      reiserfs   noatime,notail   0 0
#/dev/SWAP      none      swap      sw         0 0
#/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro,users      0 0
/dev/hda1 /mnt/VFat vfat noauto,users,umask=000 0 0
# NOTE: The next line is critical for boot!
#/dev/hda3 /mnt/hda3 reiserfs users,umask=000 0 0
none         /proc      proc      defaults      0 0


none         /dev/shm   tmpfs      defaults      0 0

/dev/ide/host0/bus1/target1/lun0/cd   /mnt/cdrom   auto   ro,noauto,user,exec   0 0



This is what my grub.conf looks like:

Code:

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


title=GNU/Linux
root (hd0,1)
kernel (hd0,1)/boot/bzImage root=/dev/hda2

title=Windows
root (hd0,0)
chainloader (hd0,0)+1

_________________
too much is never enough
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Jul 25, 2003 2:51 pm    Post subject: Reply with quote

you need to change ROOT, BOOt and SWAP to your actual partitions

eg, my fstab:
Code:
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1               /boot           ext3            noauto,noatime  1 1
/dev/hda3               /               reiserfs        noatime,notail  0 0
/dev/hda2               none            swap            sw              0 0
/dev/hdb1               /mnt/backup     ext3            noauto,noatime  0 0
/dev/hda4               /mnt/windows    vfat            defaults        0 0
/dev/sr0                /mnt/cdrom      iso9660         noauto,ro,user  0 0
/dev/sr1                /mnt/dvd        iso9660         noauto,ro,user  0 0
/dev/fd0                /mnt/floppy     vfat            noauto,user     0 0
/dev/sda1               /mnt/usb        vfat            noauto,user     0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults        0 0

_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
scrooch
n00b
n00b


Joined: 25 Jan 2003
Posts: 52
Location: Venlo/Eindhoven, the Netherlands

PostPosted: Fri Jul 25, 2003 2:55 pm    Post subject: Reply with quote

Ah great, that works perfectly :) Thanks for all the help.


It's kinda stupide though to provide a default fstab file which has these weird /boot and /root


But anyway - thanks!
_________________
too much is never enough
Back to top
View user's profile Send private message
RaduHimself
n00b
n00b


Joined: 26 Jul 2003
Posts: 3
Location: Michigan, USA

PostPosted: Wed Jul 30, 2003 5:16 am    Post subject: Reply with quote

ok, first off i want to say im very thankful for this post :) I have the same prob my fstab was thew default, well i went in and fixed it with nano but it doesnt let me save. it says "could not open file for writing: Read-only File system". What can I do to be able to write?
_________________
got root?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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