View previous topic :: View next topic |
Author |
Message |
scrooch n00b
Joined: 25 Jan 2003 Posts: 52 Location: Venlo/Eindhoven, the Netherlands
|
Posted: Fri Jul 25, 2003 1:01 pm Post subject: wont boot after emerging reiserfsprogs |
|
|
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 |
|
|
hensan l33t
Joined: 26 Jun 2003 Posts: 868 Location: Sweden
|
Posted: Fri Jul 25, 2003 1:42 pm Post subject: |
|
|
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 |
|
|
keanu n00b
Joined: 02 Mar 2003 Posts: 15
|
Posted: Fri Jul 25, 2003 1:45 pm Post subject: |
|
|
okidoki
Last edited by keanu on Fri Jul 25, 2003 3:07 pm; edited 1 time in total |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Jul 25, 2003 2:03 pm Post subject: |
|
|
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 |
|
|
scrooch n00b
Joined: 25 Jan 2003 Posts: 52 Location: Venlo/Eindhoven, the Netherlands
|
Posted: Fri Jul 25, 2003 2:42 pm Post subject: |
|
|
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 |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Jul 25, 2003 2:51 pm Post subject: |
|
|
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 |
|
|
scrooch n00b
Joined: 25 Jan 2003 Posts: 52 Location: Venlo/Eindhoven, the Netherlands
|
Posted: Fri Jul 25, 2003 2:55 pm Post subject: |
|
|
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 |
|
|
RaduHimself n00b
Joined: 26 Jul 2003 Posts: 3 Location: Michigan, USA
|
Posted: Wed Jul 30, 2003 5:16 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|