LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2004, 01:20 PM   #1
buehler
LQ Newbie
 
Registered: Apr 2001
Location: Chicago
Distribution: Mandrake 10.0
Posts: 24

Rep: Reputation: 15
Unhappy problem booting after changing /etc/fstab


i want to be able to retrieve data from a harddisk (has RH 7.? on it) by connecting it to my PC (running RH 8.0).
to do that i created an additional entry in /etc/fstab:
/dev/hdb1 blah ext3 defaults 1 2

after connecting the disk to my machine and booting, i ran into troubles:
for some reason the boot process stops when trying to access the new
disk. it gives the following error:
/dev/hdb1 contains a file system with errors, check forced.
/boot: clean, 53/26104 files, 22452/104391 blocks.
/dev/hdb1: Inode 3090595 is too big.
/dev/hdb1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

and then gives me this prompt:
(Repair filesystem)1#

i'm not sure what to do at that point.

in principle i think removing the entry in /etc/fstab should get me
going again, i guess. but since i can't get a command line ......

also, is rebooting the only way for changes in /etc/fstab to take
effect or is there another way?

thx!
-m
 
Old 01-12-2004, 01:37 PM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi!

If you have your RedHat 8 installation CDs at hand, use them to boot your system. Type 'linux rescue' at the boot prompt.

Maybe the file system on the old HDD isn't ext3 but ext2 or something?

You could have mounted it manually instead of putting it in fstab.
~> mount −t <fstype> /dev/hdb1 blah
To know what file system type is on your disk, type
~> /sbin/fdisk -l

Regards
Martin
 
Old 01-12-2004, 05:59 PM   #3
bhaskie
Member
 
Registered: Jan 2004
Location: New Delhi, India
Distribution: L.F.S 5.0 | FreeBSD 5.2 | Debian sid | Gentoo 2004.0 | Slackware 9.1
Posts: 78

Rep: Reputation: 15
Your second hard disk has errors. Becoz you added the fstab entry, fsck automatically checks that drive. fsck runs with -a flag (automatically repair) and it is not being able to do so.
When dropped to the shell, you can run fsck on the drive manually. Ask for interactive repair of file system.
Remember to be careful with FS repair. Is the hard disk spoilt (bad sectors etc) or just had a hard reboot? fsck sd be able to repair the FS if there is no major problem.
Remember to read "man fsck".

Better to remove the fstab entry for the hard disk. Run fsck on hdb after booting into your system. Dont run fsck on the mounted partition .

Bhaskar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
Booting without fstab? Bultot Linux - Newbie 3 01-14-2005 09:49 AM
Changing location of /etc/fstab? Aeiri Linux - Software 1 11-23-2004 04:36 PM
fstab!! Stop changing!! l32 Linux - Hardware 12 07-15-2004 03:51 PM
Cannot boot system after changing fstab buddhahat Linux - Newbie 2 11-06-2003 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration