LinuxQuestions.org
Visit Jeremy's Blog.
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 03-22-2004, 02:09 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Where is my HD? - not /dev/hda or /dev/sda ??


quick background: I built a machine with a SATA HD mapped (in the BIOS) to primary IDE, so it came up as /dev/hda in Linux. Turns out the SATA controller was screwed up on that machine (only operated in PIO mode), so I swapped it out with another machine that had an IDE HD.

The machine that now has the SATA drive has a diff mobo with a crummy BIOS - I'm not sure exactly how the SATA port is mapped (it's not very clear in the BIOS), but it boots up fine using the SATA HD. The problem is that /etc/fstab is trying to put the swap on /dev/hda3, but there's no /dev/hda. How do I find out where this drive is?

# ls /proc/ide/
drivers hdc ide1 piix

# ls /proc/scsi/
scsi


# fdisk /dev/hda

Unable to open /dev/hda


# fdisk /dev/sda

Unable to open /dev/sda (or b,c,d)


Last edited by BrianK; 03-22-2004 at 02:10 PM.
 
Old 03-22-2004, 02:33 PM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Did you run 'fdisk -l' ?
SATA drives are often named the same way ide drives are.
For ide:hda=primary master,hdb=primary slave...
With SATA:Sometimes they come first and push the names of the ide drives up, or they come last, like maybe hde,hdg.
 
Old 03-22-2004, 02:34 PM   #3
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 32
what doest 'fdisk -l' say?
it should display list of hard drives/partitions in computer
 
Old 03-22-2004, 02:47 PM   #4
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
::sigh:: thanks guys - I didn't know that you could do fdisk -l without an argument.

the HD is on /dev/hdc, so guess it thinks it's on secondary master. Usually that's my CD-ROM, but I've removed the CD-ROM from that machine. Never put 2 & 2 together that hdc was showing up & the CD wasn't there.

Thanks again!
 
Old 04-12-2004, 06:28 PM   #5
Mouse_103
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware
Posts: 4

Rep: Reputation: 0
i got nothing after i type fdisk -l

vmware on winxp

im trying to install slackware 9.1
 
Old 04-13-2004, 01:06 AM   #6
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 32
What is nothing? Either u get a list of available hard drives (and list of partitions on them) or u get an error message (plz note that -l in fdisk -l is L not I). You can also get any empty list of partitions if u dont have any hard drive in your virtual machine. I have used Slackware on VmWare and it worked without problem.

Anyway I would recommend u to create virtual machine manually in vmware bc default linux machine has SCSI hard drives.
 
Old 11-10-2004, 11:09 PM   #7
mdrtech
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
unable to find /dev/hda

Hi all.....I have been having the same problem with gentoo as well, but alas it is no longer so.

all you have to do as mentioned above is do a
$ fdisk -l
and it will list your partions
in my case the were /dev/hdb1 rather than the hankbook example of /dev/hda which would be the most common set up.
 
Old 11-11-2004, 04:20 PM   #8
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 532

Rep: Reputation: 30
Hi,
fdisk should be run as root
ciao
 
Old 11-12-2004, 01:30 PM   #9
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
"fdisk should be run as root" Geez, it won't even run the command unless you are root...
 
Old 11-12-2004, 07:43 PM   #10
borrrden
Member
 
Registered: May 2004
Location: Philadelphia
Distribution: Fedora Core 3
Posts: 98

Rep: Reputation: 15
My hard drive has always been /dev/hdc.....
 
Old 04-24-2007, 05:12 PM   #11
tommerstigen
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
not listing

when I type fdisk -l there is actually no response not so ever...
 
Old 04-24-2007, 05:35 PM   #12
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by tommerstigen
when I type fdisk -l there is actually no response not so ever...
wow, this is an old thread!

in any event, depending on the distribution you're running, sometimes only root or a sudoer can get the return from fdisk -l. Try "sudo fdisk -l" or su to root, then run "fdisk -l"
 
  


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
forcing the order of /dev/sda /dev/sdb etc.. jdaniel Linux - Software 5 05-23-2006 07:41 AM
where did my SATA drive go? not /dev/hde or /dev/sda edman007 Linux - Hardware 1 01-16-2005 10:23 PM
/dev/sda and /dev/sda1 disappeared using sii3112A striderstrahan Linux - Software 0 09-16-2004 05:00 AM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM


All times are GMT -5. The time now is 03:31 PM.

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