LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-22-2008, 07:27 PM   #1
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Ubuntu Install not finding IDE disk (/dev/hda)


Hi all,

I think I know the cause of the problem. However am looking for your thoughts as I'm sure others have similar MB's.

I currently have Gentoo installed on my system, with an IDE disk running the OS /dev/hda I have a RAID card with a few disks /dev/sda

I was trying to install Ubuntu 8.04 but /dev/hda can never be found. /dev/sda is found fine (LSI MegaRAID).

The reason I 'think' the IDE disk /dev/hda can't be found is because the IDE channels on the MB come up as the tertiary IDE. The CD/DVD-RW is SATA but the way the MB figures it out, the CD drive ends up as Primary.

So I'm thinking that because the disk is technically on the third IDE channel, the drivers aren't finding the disk.

I've tried every combination of the SATA / IDE settings in the BIOS but each time this happens. Obviously I need both SATA and IDE to install the distro off the CD.

Any thoughts?

Thanks!
>Craig
 
Old 06-23-2008, 04:09 AM   #2
storkus
Member
 
Registered: Jun 2008
Posts: 310

Rep: Reputation: 45
There's an easy way to confirm if your suspicions are right:

1. Make sure all interfaces have drives and you know how they identify themselves.
2. Run "hdparm -i" as root against every possible interface and record the results.
3. Compare the ID strings with the drives against what interface they appeared on. That'll tell you how the kernel
mapped it.

I just thought of this, and I know is sounds n00bishly simple, but it sounds like the easiest way. At least once you know whether the kernel actually sees everything and where it puts them (hdX and sdX) you can go from there.

Another idea is a problem I had that I never solved (more because it's not a big enough deal for me to worry about):
if you have "SCSI Generic" in your system, the /dev/hdX interfaces won't show up AT ALL--instead, everything on the IDE
interfaces will be mapped to /dev/sgN where N is a number rather than a letter. On my system, this maps /dev/hda (the
CD/DVD burner on my laptop's PATA/IDE interface) to /dev/sg0. Trying to access /dev/hda results in a useless error
(wrong FS type, as I recall), but mounting /dev/sg0 works normally. Give it a a shot!

Mike
 
Old 06-23-2008, 10:58 AM   #3
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
What do you see with,

sudo fdisk -l
 
Old 06-23-2008, 04:52 PM   #4
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Hey guys thanks for your replies.

storkus - 1. Make sure all interfaces have drives and you know how they identify themselves. - I know how to identify drives etc. Nothing at all shows up against them.
2. Run "hdparm -i" as root against every possible interface and record the results. - There are no devices at all found. If I plug my RAID card back in I do see the /dev/sda device. However don't want to run the OS off this. I just want to run the OS off the stand alone IDE disk.

Duck2006 - fdisk -l shows nothing at all when run as root.

The strange thing is. I boot off the Gentoo install CD and it sees /dev/hda, if I boot off the Ubuntu CD, it doesn't see it at all.

I'm at a loss with this one.

>Craig
 
Old 06-23-2008, 05:03 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,510

Rep: Reputation: 177Reputation: 177
I had a similar problem with kubuntu. After fooling around with it for 45 minutes I installed Debian.

----------------
Steve Stites
 
Old 06-23-2008, 05:16 PM   #6
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jailbait View Post
I had a similar problem with kubuntu. After fooling around with it for 45 minutes I installed Debian.

----------------
Steve Stites

Yeah I'm about 8 hours away from putting Gentoo back on unless I can find the reason.

This could be the first time ever that Gentoo has been easier to install than Ubuntu
 
Old 07-10-2008, 09:31 PM   #7
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Hey I found out what was causing this. I IDE HDD was set to Master. I set it to Cable Select and it found it fine. It was still detected as Primary Master, who knows.

Fixed though!
 
Old 07-13-2008, 02:13 AM   #8
storkus
Member
 
Registered: Jun 2008
Posts: 310

Rep: Reputation: 45
Quote:
Originally Posted by TheRealDeal View Post
Hey I found out what was causing this. I IDE HDD was set to Master. I set it to Cable Select and it found it fine. It was still detected as Primary Master, who knows.

Fixed though!
Wow, that is WEIRD!! The only reasons I can think of for this would be
another drive on the same cable set as master or a damaged cable.

One other possibility is all those patches that never get sent upstream
by Debian: since Gentoo is compiled from native (read: clean) sources,
maybe Debian or Ubuntu dropped in a patch that broke something (else).

Mike
 
Old 05-14-2009, 07:52 AM   #9
mogplus8
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
Similar problem...

Hi all,

I have, nope had, a similar problem. I'm using Ubuntu 8.10 64bit, and I used to be able to access my Windows drive on /dev/hda1 but then it disappeared. Tried fdisk -l and the drive showed up but it was /dev/sda1. Changed my fstab to point to /dev/sda1 and now it's back. Oddly, my sata drive, that I thought was sda now appears to be sdb, and is correctly referenced in the fstab. So dunno what the heck has occurred there. Anyway, might be worth trying sda1 instead of hda1, in 8.10 anyway.

Ian
 
Old 05-14-2009, 09:06 AM   #10
storkus
Member
 
Registered: Jun 2008
Posts: 310

Rep: Reputation: 45
A lot of this sort of weirdness is caused by which set of disk drivers you have in the kernel. The old drivers reference IDE/PATA drives as hd(x), while SCSI drives are sd(x), and this was preserved because the 2 driver systems weren't connected; the one way to do so was to use the SCSI generic interface. OTOH, the new drivers are intertwined and I've found on my laptop with a SATA hard drive and PATA CD/DVD burner that the drive is sda, as expected, but the burner is now sr0 (SCSI Recorder #0). When I put in my USB stick, I get sdb. If you want REALLY strange, though, my SD flash chip (like for your digital camera) comes up with the very weird designation "mmcblk0" and "partitions" are referenced even stranger, so that to access my SD card I need to execute a "mount /dev/mmcblk0p1 /mnt/hd"--intuitive if you use it a lot, but definitely not if you've never seen it before (the driver writers should be smacked for this, IMHO).

Mike
 
  


Reply

Tags
gentoo, hda, ide, sata, ubuntu


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
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
how to know contents of /proc/ide/hda/smart_values and /proc/ide/hda/smart_threshold Prassanta Suse/Novell 0 02-23-2006 04:21 AM
how to use an IDE disk after put to sleep with hdparm -Y /dev/hdb qwijibow Linux - Hardware 0 08-24-2004 01:45 PM
hda: attached ide-disk driver & lost interrupt esteeven Linux - Hardware 6 04-21-2004 06:43 AM
cd-rom on ide /dev/hda vcheah Linux - Software 10 12-22-2001 12:46 AM


All times are GMT -5. The time now is 02:36 AM.

Main Menu
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