Click to See Complete Forum and Search --> : System won't boot due to EXT2


Sum1Person
04-26-2004, 06:53 PM
I just put in an additional hardrive in my server thats running cpanel. I put it in and formatted it in the cpanel console and everything worked fine (HDC Is 40 gigs and HDC 1 is 120 Gigs).

When I rebooted it says fsck.ext2/hdc1 and it says that it cannot be found and now it won't boot up my system, How can I remove this drive so I can even boot it up because my clients can't get to their sites!



Report

gehidore
04-26-2004, 07:37 PM
are you sure its not hda and hdb? where the new drive would be hdb1

phlipant
04-26-2004, 08:19 PM
remove the line for the drive from /etc/fstab. you may need to use your boot floppy.

you can check appropriate drives with fdisk -l.

Sum1Person
04-26-2004, 09:45 PM
I went to edit the file but it's saying permission denied.... Im logged in with root password but it's under maitanence mode.

blobaugh
04-27-2004, 01:41 AM
As root you should be able to change anything. What does the end of the prompt look like? If it is a #, and you're using bash then you are most likely root. Try to post your /etc/fstab so we can look over it with you

gehidore
04-27-2004, 01:45 AM
to elaborate once again....

did you do this


whomever@yourbox$ su
passwd:
root@yourbox#


or did you truly log in as root

Sum1Person
04-27-2004, 07:50 AM
At boot up it says press ctrl+D to boot normally (But when I do this it just reoots and goes back to the same screen) or type in root password for maitanence. So I put in root password and it puts me into the # prompt

Sum1Person
04-27-2004, 07:51 AM
Is there any other way I can read the fstab file under maitanence mode? Then ill try and copy it all and post it.

mrBen
04-27-2004, 08:23 AM
It sounds like it is wanting you to fsck the drive manually. When you get to the prompt, just enter:

fsck /dev/hdc1

or similar.

mdwatts
04-27-2004, 09:23 AM
Originally posted by Sum1Person
I went to edit the file but it's saying permission denied.... Im logged in with root password but it's under maitanence mode.

What directory does maintenance mode put you in? It's own filesystem or the filesystem on the HD?

What does 'pwd' and 'ls' show?

The Whizzard
04-27-2004, 09:29 AM
Originally posted by Sum1Person
At boot up it says press ctrl+D to boot normally (But when I do this it just reoots and goes back to the same screen) or type in root password for maitanence. So I put in root password and it puts me into the # prompt When your in maintanence mode, the filesystem is mounted read-only. You will have to remount it read-write to edit any files.
mount -o remount -w /dev/hda1 / should remount the filesystem read-write.

mdwatts
04-27-2004, 12:18 PM
Originally posted by The Whizzard
When your in maintanence mode, the filesystem is mounted read-only. You will have to remount it read-write to edit any files.
mount -o remount -w /dev/hda1 / should remount the filesystem read-write.

Totally forgot about that. :rolleyes:

Good catch Whizzard.