LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2002, 07:13 AM   #1
PapaNoHair
Member
 
Registered: May 2002
Location: Orlando
Distribution: Linspire 5.0
Posts: 82

Rep: Reputation: 15
Continued HD Problems


Weird problem with HD(s). Have always used two with one being for backup. I have had the main HD (with MDK on it - currently 8.2) set as Master and the backup (which has been smaller) as slave. Recently I received a second (larger) HD which had XP installed (was supposed to have been formatted). When XP was on it - I could go automatically to XP (other HD was not recognized by BIOS unless I put in back in each time), but could only access the MDK HD by a boot disk. Took off XP and installed Lindows. Installation went fine and at end re-booted back into Lindows. It was the last time. Now it asks me for a startup disk. So I switched jumper settings placing the larger HD as Master and the smaller (with MDK on it) as Slave. BIOS picked them up fine but cannot get into either HD. With Lindows - keeps asking for a disk and when using the boot disk (with MDK) it stops and tells me of a kernel panic. I must be doing/not doing something very obvious. Any suggestions? Thanks in advance!
 
Old 06-28-2002, 05:24 PM   #2
kop
LQ Newbie
 
Registered: Jul 2001
Posts: 24

Rep: Reputation: 15
Your kernel needs to know what drive to mount as root, and you've swapped the drives around.

Try getting toms root boot from toms.net so you can boot into linux. (Other rescue floppys are available at www.ibiblio.org in the Linux section under system, rescue, IIRC. Demolinux www.demolinux.org has worked for me too, but it's a whole cd to download.) You'll have to use "mount" to mount your hard drive partitions.

There are two places Linux needs to know what's on what disk. The kernel has to mount the root file system, and /etc/fstab says how to mount the rest of the filesystems. So...

Let's get mandrake working...

Easy way is to make the mandrake disk the Master again.

Hard way is...

Boot from tomsrootbt

go into mandrake's /boot directory, which will be something like /mnt/mydisk1/boot after you mount it over the directory /mnt/mydisk1.

mkdir /mnt/mydisk1
mount -t ext2 /dev/hdb1 /mnt/mydisk1
cd /mnt/mydisk1/boot

If you don't have any idea how your disk is partitioned, take care and
use fdisk to explore, being careful not to change anything.

copy your kernel onto a floppy. (your kernel might not be named vmlinuz)

cp vmlinuz /dev/fd0

check the copy

cmp vmlinuz /dev/fd0

(should say EOF on vmlinuz)

Tell your boot kernel that /dev/hdb1 is your root filesystem
(Or whatever your root filesystem is -- now on hdb, the slave.)

rdev /dev/fd0 /dev/hdb1

Boot readonly...

rdev -R /dev/fd0 1

Now, you can boot from the floppy, but the filesystems won't mount.

So, before using the floppy, copy the mandrake /etc/fstab file. (backup)
then change fstab to say "hdb" wherever it says "hda".

Now you should be able to boot from the floppy and run mandrake.

You will need to edit /etc/lilo.conf (and run lilo) or /etc/grub.conf so the bootloader knows to find your kernel on the slave, not the master (same change as with fstab) and can tell the kernel where the root filesystem is.
(Essentially what we did with rdev, only to the kernel on the harddisk.)

Fixing Lindows should be similar.

Vocabulary? See: http://www.foldoc.org
 
Old 06-28-2002, 05:26 PM   #3
kop
LQ Newbie
 
Registered: Jul 2001
Posts: 24

Rep: Reputation: 15
Oh yeah,

Before you do the cmp, eject and reinsert the floppy. Sometimes the contents get cached and it never really reads the floppy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
COntinued ASUS A7N8X-DLX/SATA Install Problems kpfeif Debian 4 09-15-2005 02:48 PM
Continued Wifi Problems DrakIE Linux - Wireless Networking 0 11-19-2004 04:37 PM
Radeon 9800 XFree 4.4 Problems continued xanas3712 Slackware 9 05-11-2004 12:09 PM
bleg - Sound problems continued Meowatilla Linux - Hardware 6 03-27-2004 07:42 PM
Continued Hardware Problems lowlifeish Linux - Hardware 7 01-15-2003 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:08 PM.

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