Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.