LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2005, 08:24 PM   #1
QiangWan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Booting problem of FC2


Hi, all:

I had two hard disks in my PC, one for windows xp, and the other for Fedora Core 2, and I successfully installed FC2 several months ago. But now when I boot linux system, it always failed in here:

Read-Only file system while try to open /dev/hdb2 [FAILED].

and then, system require me to Repair file system:

(Repair file system) 1#

For me, I just don't know enter what orders to repair it. I also tried to use the first disk of FC2 to rescue linux, and it mount system to mut/sysimage,
but I still don't know how to rescue.

I really want to fix this problem, as reinstall linux system is really a huge job for me.
 
Old 03-06-2005, 08:57 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
fsck

What filesystem does /dev/hdb2 have on it?

If it is a variant of ext2, try

e2fsck /dev/hdb2

# Red Hat & Fedora links
FedoraNEWS.ORG
The Fedora HOWTO explains the different software managers.
Maximum RPM
rpmfind
Easier software management: apt4rpm
Fedora Core 1 Tips and Tricks
Fedora Core 2 Tips and Tricks
Fedora Core 3 Tips and Tricks
apt, yum, and up2date repository settings (configuration files) for Fedora Core 3
# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 03-06-2005 at 08:59 PM.
 
Old 03-06-2005, 09:47 PM   #3
QiangWan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you for instant reply! When booting, my Linux just stuck in place where an error occurred during the file system check.

To check file system /dev/hdb2, I use #df to check my file sysytem:
Filesystem ...
/dev/hdd2 /
/dev/hdd1 /boot
non /dev/shm

There is no information about /dev/hdb2, I wonder if it is a disk in windows.

I tried e2fsck /dev/hdb2, but the system hinted that :

"Read-Only file system while trying to open /dev/hdb2
Disk write-protected; use the -n option to do a read-only check of the device. "

Then, I tried fsck-n, and the system replied:

"fsck .ext3: No medium found while try to open /dev/hdb2".
The superblock could not be read or does not describe a correct ext2 file system. If the device is valid and it really contains ext2 file system (and not swap or ufs or something else), then the super block is corrupt, and you might try runing e2fsck with an alternate superblock e2fsck-b 8193 <device>"

So I tried e2fsck -b 8193 /dev/hdb2, but it still prompted "read-only file system" information.

What shall I do?
 
Old 03-06-2005, 10:19 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
What do these commands show?

fdisk -l
mount

You might want to examine your /etc/fstab file for correctness as well.
 
Old 03-07-2005, 01:10 AM   #5
QiangWan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you very much! Now I think I find the root of the problem.

I tried fdisk and mount to check the disk information: first disk(for windows) hda1, hda2... normally; second disk displayed hdd1, hdd2, hdd3(swap). Then I checked /etc/fstab as you indicate, I found linux use hdb3 for swap.

Then I use command "chmod 777 /etc/fstab", and it showed that "changing permissions of /etc/fstab: Read-only filesystem". I cannot use vi to change this read-only file.

There might be two ways to solve this problem, one change the identification of second disk from "hdd" to "hdb"; or change the /etc/fstab file which is read-only.
So again I need some more detail suggestions.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC2 not booting triley Linux - Software 0 02-22-2005 11:06 AM
booting problem -fc2 2.6.5-1 kahn Linux - Software 1 02-13-2005 08:39 PM
Help with booting XP/FC2 nemy Linux - Newbie 18 09-12-2004 08:22 PM
Dual Booting FC2 with ParitionMagic/BootMagic (Problem) abcd200x Fedora - Installation 1 07-03-2004 01:12 PM
problem booting FC2 DonaldUK Fedora 2 06-08-2004 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 AM.

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