LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-23-2004, 01:19 PM   #1
imtrobin
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
Adding new drive problem


Hi,

I'm facing a problem when trying to add a new IDE harddrive to the mandrake 9 system. The drive is a 120GB which works with windows so the drive is working.

BIOS detect the drive correctly in secondary master, and it is detected as hdc. However, fstab cannot find hdc. Previously it was a cdrom as secondary master, and it seems that the system got confused. I have searched around and found others having the same problems but no solution

In the message log using dmesg, I'm getting a end_request error

ide_setup: hdc=ide-scsi
..
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 >
/dev/ide/host0/bus0/target1/lun0: p1
hdc:<6>end_request: I/O error, cmd 0 dev 16:00 (hdc), sector 0
end_request: I/O error, cmd 0 dev 16:00 (hdc), sector 1
end_request: I/O error, cmd 0 dev 16:00 (hdc), sector 2

In the lilo.conf, I removed the line append="dev..", and restarted lilo but no help

boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdc=ide-scsi acpi=ht resume=/dev/hda5 splash=silent"
vga=788
read-only


FStab file

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb1 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=utf8 0 0
none /mnt/hd supermount dev=/dev/hdd1,fs=ext2:vfat,--,kudzu,iocharset=utf8 0 0
none /proc proc defaults 0 0
/dev/hda8 /tmp ext3 defaults 1 2
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda7 /var ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0


I guess I should need to edit fstab but I'm unsure how as I'm pretty new to linux. I remove the line "none /mnt/cdrom.." but again no go.
 
Old 10-23-2004, 01:26 PM   #2
Kethinov
Member
 
Registered: Oct 2003
Location: ESU, Student Teaching 5th Grade
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
I'm not even seeing an entry for hdc in your fstab...

Add this?

/dev/hdc1 /mnt/hdc1 ext3 defaults 0 0

Replace ext3 with the FS you use on the drive...
and mkdir /mnt/hdc1

Might want to make sure hdc1 is the only partition on the drive. Might want to make sure the drive has been formatted in the first place.
 
Old 10-23-2004, 01:37 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,701

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You might want to keep all of the other options but just delete the hdc=ide-scsi part.

Last edited by michaelk; 10-23-2004 at 01:39 PM.
 
Old 10-23-2004, 02:20 PM   #4
imtrobin
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Kethinov
I'm not even seeing an entry for hdc in your fstab...

Add this?

/dev/hdc1 /mnt/hdc1 ext3 defaults 0 0

Replace ext3 with the FS you use on the drive...
and mkdir /mnt/hdc1

Might want to make sure hdc1 is the only partition on the drive. Might want to make sure the drive has been formatted in the first place.
Hi Kethinov, there is no partition in the drive. I delete the parition in windows first. An mounting error occurs with the line "/dev/hdc1 /mnt.."

I noticed something in the boot log, wonder if this is causing the problem?
Code:
Kernel command line: BOOT_IMAGE=linux ro root=301 devfs=mount hdc=ide-scsi acpi=
ht resume=/dev/hda5 splash=silent
 
Old 10-23-2004, 02:32 PM   #5
imtrobin
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michaelk
You might want to keep all of the other options but just delete the hdc=ide-scsi part.
Nope, doesn't work.

The setup log has this entry
Code:
Linux version 2.4.22-10mdk (nplanel@no.mandrakesoft.com) (gcc version 3.3.1 (Man
drake Linux 9.2 3.3.1-2mdk)) #1 Thu Sep 18 12:30:58 CEST 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
 BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
256MB LOWMEM available.
ACPI: have wakeup address 0xc0001000
On node 0 totalpages: 65536
zone(0): 4096 pages.
zone(1): 61440 pages.
zone(2): 0 pages.
ACPI disabled because your bios is from 2000 and too old
You can enable it with acpi=force
ACPI: Unable to locate RSDP
Building zonelist for node : 0
[b]Kernel command line: auto BOOT_IMAGE=linux ro root=301 devfs=mount hdc=ide-scsi
acpi=ht resume=/dev/hda5 splash=silent
ide_setup: hdc=ide-scsi
 
Old 10-23-2004, 02:34 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,701

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
My fault...

You need to rerun lilo for the change to take effect.
 
Old 10-24-2004, 01:08 AM   #7
imtrobin
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I did rerun lilo. It's just typing "lilo", right? No effect, the log still has the line hdc=ide_scsi. This is my entire lilo.conf


Code:
boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
        label="linux"
        root=/dev/hda1
        initrd=/boot/initrd.img
        append="devfs=mount  acpi=ht resume=/dev/hda5 splash=silent"
        vga=788
        read-only
image=/boot/vmlinuz
        label="linux-nonfb"
        root=/dev/hda1
        initrd=/boot/initrd.img
        append="devfs=mount  acpi=ht resume=/dev/hda5"
        read-only
image=/boot/vmlinuz
        label="failsafe"
        root=/dev/hda1
        initrd=/boot/initrd.img
        append="devfs=nomount  acpi=ht resume=/dev/hda5 failsafe"
        read-only
other=/dev/fd0
        label="floppy"
        unsafe
 
Old 10-26-2004, 04:48 AM   #8
imtrobin
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
upz
 
Old 10-26-2004, 06:12 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,701

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I assume lilo runs without errors?

Just as an exercise boot off the install CD to rescue mode or maybe a live CD if you have one and see if you can access the new hard drive. You say it isn't partitioned so use fdisk or cfdisk and create a partition. Then go and and create a filesystem too.




Last edited by michaelk; 10-26-2004 at 06:16 AM.
 
Old 10-26-2004, 06:51 AM   #10
imtrobin
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I can't fdisk as /dev/hdc is not seen. Also, the system files are spread across the 3 harddisk so I can only install on secondary master. I cannot install both the cdrom and the new hard disk at the same time
 
Old 10-26-2004, 09:49 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,701

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Oh.... BTW what are the settings of the motherboard BIOS for hdc? Is it set for auto?
 
Old 10-26-2004, 11:05 AM   #12
imtrobin
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I got the solution in another forum. My system doesn't have a floppy drive and the lilo.conf has one entry for floppy boot. So it always encounter an error and will not update the lilo.conf unless I remove that entry. Thanks for your help!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
lvm problem - adding a new scsi drive ddaas Linux - Enterprise 0 06-09-2005 09:40 AM
Adding a new drive raysr Linux - Hardware 2 12-30-2004 10:28 PM
Adding a Hard Drive texmansru47 Slackware 2 12-13-2004 11:19 AM
Adding a new drive????? billkris Linux - Hardware 7 01-29-2003 07:22 PM
Adding new drive tkatrib Linux - Software 1 03-05-2001 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:00 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