LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-10-2003, 10:47 PM   #1
pdap
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
Red face Replace CD-drive with a hard drive (HDD)


Hi all,

Lately I have been running some programs which need huge amount of storage, in a dell dimension 4500 with RedHat Linux 8.0. I had three hard drives (80G each ) and CD-rom in the box. Now I have added a fourth drive (WD 160G BB) by disconnecting CD-ROM. BIOS recognizes the drive and so does the kernal
(see attached dmesg). However, when I try to partition the drive:
[root@<> /]# /sbin/fdisk /dev/hdd

Unable to open /dev/hdd

Each time I try this, dmesg is appended with the following:
ide-floppy driver 0.99.newide
hdd: driver not present

My guess is that the system wants to have the CD in place of the hard drive. But my question is how to tell the system that it does not have a CD and has a hard disk in that place??

Thanks for any help.


#########################################################
dmesg
(NOTE: 'cs46xx: Unable to detect valid cs46xx device' is because I have removed the sound card from the system)
##########################################################
Linux version 2.4.18-14 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4 13:35:50 EDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003ff40000 (usable)
BIOS-e820: 000000003ff40000 - 000000003ff50000 (ACPI data)
BIOS-e820: 000000003ff50000 - 0000000040000000 (ACPI NVS)
127MB HIGHMEM available.
896MB LOWMEM available.
On node 0 totalpages: 261952
zone(0): 4096 pages.
zone(1): 225280 pages.
zone(2): 32576 pages.
Kernel command line: ro root=LABEL=/ hdd=ide-scsi
ide_setup: hdd=ide-scsi
Initializing CPU#0
Detected 2259.195 MHz processor.
Speakup v-1.00 CVS: Tue Jun 11 14:22:53 EDT 2002 : initialized
Console: colour VGA+ 80x25
Calibrating delay loop... 4482.58 BogoMIPS
Memory: 1026780k/1047808k available (1326k kernel code, 17448k reserved, 999k data, 212k init, 130304k highmem)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount cache hash table entries: 16384 (order: 5, 131072 bytes)
ramfs: mounted with options: <defaults>
ramfs: max_pages=128746 max_file_pages=0 max_inodes=0 max_dentries=128746
Buffer cache hash table entries: 65536 (order: 6, 262144 bytes)
Page-cache hash table entries: 262144 (order: 8, 1048576 bytes)
CPU: Before vendor init, caps: 3febfbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 0K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After vendor init, caps: 3febfbff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 3febfbff 00000000 00000000 00000000
CPU: Common caps: 3febfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 2.26GHz stepping 04
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router PIIX [8086/24c0] at 00:1f.0
PCI: Found IRQ 9 for device 00:1f.1
PCI: Sharing IRQ 9 with 00:1d.2
PCI: Sharing IRQ 9 with 02:02.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
speakup: initialized device: /dev/synth, node (MAJOR 10, MINOR 25)
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS not found.
Starting kswapd
allocated 64 pages and 64 bhs reserved for the highmem bounces
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
Real Time Clock Driver v1.10e
oprofile: can't get RTC I/O Ports
block: 1024 slots per queue, batch=256
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PCI: Enabling device 00:1f.1 (0005 -> 0007)
PCI: Found IRQ 9 for device 00:1f.1
PCI: Sharing IRQ 9 with 00:1d.2
PCI: Sharing IRQ 9 with 02:02.0
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdcMA, hddMA
hda: WDC WD800BB-75CAA0, ATA DISK drive
hdb: Maxtor 6Y080L0, ATA DISK drive
hdc: Maxtor 6Y080L0, ATA DISK drive
hdd: WDC WD1600BB-00DWA0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c03c0004, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03c0004, I/O limit 4095Mb (mask 0xffffffff)
hda: setmax LBA 156301488, native 156250000
hda: 156250000 sectors (80000 MB) w/2048KiB Cache, CHS=9726/255/63, UDMA(100)
blk: queue c03c0140, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03c0140, I/O limit 4095Mb (mask 0xffffffff)
hdb: 160086528 sectors (81964 MB) w/2048KiB Cache, CHS=9964/255/63, UDMA(100)
blk: queue c03c0348, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03c0348, I/O limit 4095Mb (mask 0xffffffff)
hdc: 160086528 sectors (81964 MB) w/2048KiB Cache, CHS=158816/16/63, UDMA(100)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 >
hdb: hdb1
hdc: hdc1
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 129k freed
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 212k freed
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 10 for device 00:1d.7
PCI: Setting latency timer of device 00:1d.7 to 64
hcd.c: ehci-hcd @ 00:1d.7, Intel Corp. 82801DB USB EHCI Controller
hcd.c: irq 10, pci mem f8848c00
usb.c: new USB bus registered, assigned bus number 1
ehci-hcd.c: restricting 64bit DMA mappings to segment 0 ...
ehci-hcd.c: USB 2.0 support enabled, EHCI rev 1. 0
hub.c: USB hub found
hub.c: 6 ports detected
usb-uhci.c: $Revision: 1.275 $ time 13:44:31 Sep 4 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 11 for device 00:1d.0
PCI: Setting latency timer of device 00:1d.0 to 64
usb-uhci.c: USB UHCI at I/O 0xe800, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 5 for device 00:1d.1
PCI: Setting latency timer of device 00:1d.1 to 64
usb-uhci.c: USB UHCI at I/O 0xe880, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 9 for device 00:1d.2
PCI: Sharing IRQ 9 with 00:1f.1
PCI: Sharing IRQ 9 with 02:02.0
PCI: Setting latency timer of device 00:1d.2 to 64
usb-uhci.c: USB UHCI at I/O 0xec00, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,6), internal journal
Adding Swap: 1566296k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,5), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SCSI subsystem driver Revision: 1.00
ieee1394: sbp2: Please load the lower level IEEE-1394 driver (e.g. ohci1394) before sbp2...
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,65), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide1(22,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
NTFS driver v1.1.22 [Flags: R/O MODULE]
ohci1394: $Revision: 1.101 $ Ben Collins <bcollins@debian.org>
PCI: Found IRQ 9 for device 02:02.0
PCI: Sharing IRQ 9 with 00:1d.2
PCI: Sharing IRQ 9 with 00:1f.1
ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[9] MMIO=[feaff000-feaff800] Max Packet=[2048]
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
ieee1394: Host added: Node[00:1023] GUID[00a0b00a000045cd] [Linux OHCI-1394]
ieee1394: Device added: Node[01:1023] GUID[00402602080692eb] [MELCO INC.]
ieee1394: Device added: Node[02:1023] GUID[0040260208068a3c] [MELCO INC.]
ieee1394: sbp2: Error logging into SBP-2 device - login failed
ieee1394: sbp2: sbp2_login_device failed
ieee1394: sbp2: Error logging into SBP-2 device - login failed
ieee1394: sbp2: sbp2_login_device failed
scsi1 : IEEE-1394 SBP-2 protocol driver (host: ohci1394)
SBP-2 module load options:
- Max speed supported: S400
- Max sectors per I/O supported: 255
- Max outstanding commands supported: 8
- Max outstanding commands per lun supported: 1
- Serialized I/O (debug): no
ip_tables: (C) 2000-2002 Netfilter core team
dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17)
PCI: Found IRQ 7 for device 02:00.0
divert: allocating divert_blk for eth0
eth0: Davicom DM9102 at pci02:00.0, 00:08:a1:05:93:3d, irq 7.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
lp: driver loaded but no devices found
cs46xx: Unable to detect valid cs46xx device
cs46xx: Unable to detect valid cs46xx device
cs46xx: Unable to detect valid cs46xx device
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
ide-floppy driver 0.99.newide
hdd: driver not present
####################################################
 
Old 06-10-2003, 11:09 PM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Get rid of the symbolic link for that ex-cdrom

rm /dev/cdrom

Edit /boot/grub/grub.conf and remove the hdd=ide-scsi part so the kernel isn't confused about what you have on re-boot

If that drive has had any Microsoft product installed on it, zero it out before you mount, partition and mkfs on it

dd if=/dev/zero of=/dev/hdd

Read what you typed at least 3 times before pressing the enter key as this wipes a drive completely, partition table and all
 
Old 06-10-2003, 11:11 PM   #3
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Oh, I forgot: Edit your /etc/fstab and delete the cd-rom statement.
 
Old 06-11-2003, 12:11 AM   #4
pdap
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much for the quick help.
I found that OS has removed /dev/cdrom and cd-rom entry in fstab automatically.

Editing grub-conf got it working.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 11:27 PM
replace hard drive = L 99 99 99... Diagmato Linux - Hardware 2 07-09-2005 03:46 PM
Going to replace hard drive - should I switch distro too? FiveFlat Linux - General 17 05-05-2005 02:55 PM
Replace Hard drive IchBin Linux - Newbie 2 03-11-2005 08:24 PM
Need to replace HDD with a larger drive gvi Linux - Hardware 7 01-20-2004 11:20 AM


All times are GMT -5. The time now is 02:43 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration