Click to See Complete Forum and Search --> : Won't bootup


hoffa69
05-08-2002, 09:56 PM
I am trying to add a second hard drive to my linux machine. I added /dev/hdb in Mandrake failsafe configuration and now I get error message when I try booting up: "failed to check filesystem. Do you want to repair errors (Y/N)? If I choose either one, I still cannot bootup. If I choose to repair, I am taken to command prompt where I can enter info in. What do I need to put in to fix this so that it will bootup?

jdctx
05-09-2002, 01:09 AM
I'm guessing what you did is edit the lilo config file. If you were just adding a harddrive for more space I don't believe thats correct. So I'm going to approach this as if you were just trying to add a hardrive.

The first thing I would do is make sure it is defined as hdb. For it to be defined in to this i would suspect it's slaved of 1st harddrive.

Maybe
hda being you first harddrive off first ide hdb second hard drive slaved off first
hdc cdrom on seperate on other ide.

logon as root
you could do a type the command hdparm /dev/hdb to see what it says about it

ok moving on
type
fdisk /dev/hdb
create a primary partition and label it linux native (ext2) there a help option if you look that will help you through it

once you've fdisked and it's saved format it
type mke2fs -cv /dev/hdb1 (hdb1 is the partition you created for dev hdb)

now you need to create a mount point most distro keep mount points in the /mnt folder so I'll use that
type cd /mnt
then type mkdir "whatever"
finally chmod 777 "whatever"

Almost done

add the following line to /etc/fstab
/dev/hdb1 /mnt/"whatever" ext2 defaults 1 1

to see if it works again as root
type mount -t ext2 /dev/hdb1 /mnt/"whatever"
actually if define properly mount /dev/hdb1 or mount /mnt/"whatever" should work also
type cd /mnt/"whatever"
if you can get to it without error your done
if you type ls it should be empty with maybe a lost and found file or folder.
typing df will also list /dev/hdb1 and how much space it has full and empty

[ 09 May 2002: Message edited by: jdctx ]

mdwatts
05-09-2002, 05:19 AM
What jdctx suggested should be exactly what you want and should work.