Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 am running Fedora Core ver. 2.2.3 I load up and it says:
Code:
Welcome to Fedora Core
Press 'I' to enter interactive startup.
Then, a flickering screen loads up (Due to color depth issues, I need that fixed too...) and after showing (somewhat) of the main screen it shuts down and it says:
Code:
System appears to have shutdown uncleanly
Press 'Y' within 3(2(1)) seconds to force a file system integrity check...
So then I press y and it says...
Code:
Checking root filesystem...
WARNING: bad format on line 1 of /etc/fstab
WARNING: Your /etc/fstab does not contain the fsck passno field. I will kludge around things for you, but you should try to fix your /etc/fstab file as soon as possible.
fsck.ext2/:
The superblock can not be read or does not describe a correct ext2 filesystem
: is a directory while trying to open /
[FAILED]
***An error occured during the file system check
***Dropping you to a shell; the system will now reboot
***When you leave the shell
Enter root password for maintenance
(or type Control-D to continue):
Can someone please tell me what I have to do?
I have no idea how to edit anything, so you're gonna have to be patient with me
The easiest way would be to put in a copy of Knoppix (or Gnoppix, Slax, or any live distribution) and then copy the file to a USB memory stick.
Otherwise, when you reach the bit about "Dropping into a shell, enter the root password for maintenance" on booting, do just that - enter the root password. Now type
Code:
less /etc/fstab # press q when finished.
- or, if that fails, then try:
mkdir /mnt/hda1
mount /dev/hda1 /mnt/hda1
less /mnt/hda1/etc/fstab # q to exit, once again.
Well, more or less, I just installed it
I have been trying to fix this problem by myself for a couple of weeks, all that happened, was that I got to the messed up screen. And I just pressed the power button on my computer twice (to restart it) and it got all screwed up.
To give you a little info on my machine, I'm running a HP Pavilion (Slightly Custom, I took some stuff out and put new stuff in) with 64 MB of RAM. An Intel Celeron 500 Mhz processor.
I have no idea what kind of Graphics Card i have (Although I think I have an ATI Radeon or Geforce) and my monitor is older than the earth itself. I use a generic keyboard and mouse, and...I think that's it.
Hope that helps!
If you'd like to know what the characters look like, just ask.
Unforunately, due to some issues with fonts, I can't post the exact figures. There is a bunch of dashes on the top, a question mark, and a bunch of white boxes.
For the second thing you wanted, here you go:
Code:
Disk: /dev/hda: 2113 MB; 2113413120 bytes
64 heads, 63 sectors/tracks, 1023 cylinders
Units = cylinders of 4032 * 512 = 2064384
System Boot Start End Blocks Id System
/dev/hda1 * 1 51 102784+ 83 Linux
/dev/hda2 52 939 1790208 83 Linux
/dev/hda3 940 1023 169344 82 Linux swap
Wow! That was a lot of copying...
Um, just to tell you, if I take a while, that's due to the fact I have to run about 20 feet to the other computer, copy the info and run back here.
Thank you very much!
-NT
EDIT: The reason everything looks screwed up, I don't know why, so if you need anything clarified, tell me.
Well it sounds like, for whatever reason, your /etc/fstab file is buggered. It may be that /dev/hda1 is not even mounted - but in that case you should receive an error, not strange characters. To check: what is the output of mount and ls -lh /
Assuming that /etc/fstab is corrupted, you can either re-install Fedora from scratch, and see what happens; or create a new /etc/fstab along the lines of what follows:
This is only how I would guess that your /etc/fstab would look - it is possible that /dev/hda2 is mounted somewhere other than /home (possibly /users) - perhaps you can remember from the initial install. To create the new file, login as root, and then type
Code:
rm /etc/fstab
nano /etc/fstab
Fill in the above details, and then press CTRL-O to write the file, and then CTRL-X to exit. If all is well, then on rebooting you should be ok. If not, then it may be worth just re-installing - there shouldn't be too many problems with Fedora, normally.
/dev/hda2 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev pts type devpts (rw, gid=5, mode=620)
usbdvfs on /proc/bus/usb type usbdvfs (rw)
/dev/hda1 on /boot type ext2 (rw)
none on /dev/shm type tmpfs (rw)
Odd - mount seems to think that everything is mounted read/write. Just in case, run
Code:
mount -n -o remount,rw/
The only other option is that you're not logged in as root. Try rm -vf /etc/fstab. No, now that we know that the filesystem exists, don't worry about ls -lh /.
EDIT: I'll be busy for the next few hours, so won't be able to help too much for a bit. Good luck with it all though, and if all else fails, you can always reinstall if you have no data on the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.