Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Search this Thread
Old 08-24-2006, 10:21 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 4

Rep: Reputation: 0
fdisk said my HD didn't have valid partition table???

I'll try to be descriptive... I have two 80 GB hard drives in my laptop. Now I tried to run fdisk /dev/hdb to partition for slackware but it didn't dectect my hard drive. I tried fdisk /dev/hda, then it said my drive didn't have a valid partition table, then it showed my hard drive as only 660 MB. I tried it booting from the different kernels like baseacpi.i or pportide.i or whatever they're called, but I got the same result. I also tried some different hard drive names like /dev/hdc and stuff. What I really want to do is install linux on that second hard drive which has nothing on it. I guess my drives are nonstandard or something...
Of course Windows XP will show the partitions just fine, but I can't make a Linux partition with their Disk Managment program. Any solution?
Old 08-24-2006, 10:37 AM   #2
Registered: Jun 2004
Location: Venezuela
Distribution: RHEL ,Centos,Debian,Slax , Solaris
Posts: 94

Rep: Reputation: 15

Try using "fdisk /dev/hda1" ," fdisk /dev/hdb1"

Old 08-24-2006, 10:50 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,564

Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
Try "fdisk -l" (lower case ell) - let's see what you have.
hda looks like it might be a CD drive.
Old 08-24-2006, 11:43 AM   #4
LQ Newbie
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
haha, i'm at work right now, so... I guess I can't give any more updates until tomorrow >_> I'll try all your advice though
Old 08-25-2006, 09:53 AM   #5
LQ Newbie
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
problem solved

I typed fdisk -l and nothing showed up, so I figured I was using the wrong kernel. My BIOS is very bare-bones and non-helpful, but I did notice it had SATA support enabled, so I booted from sata.i
sure enough, I found my 2 hard disks under dev/sda and dev/sdb, and dev/hda was indeed the cd-rom, because when I opened the tray, it didn't show up. Thanks for helping.
Old 08-25-2006, 11:59 AM   #6
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,049

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Originally Posted by bombman
I typed fdisk -l and nothing showed up
Possibly because you were not running it as root. You didn't specify how you were running fdisk -l. If it was from some LiveCD (Knoppix, etc.) then you might not have been running it with root privileges. SATA disks are listed with fdisk -l along with others, provided your system recognizes them in the first place, and you are running the command as root.

You can see my SATA listing below. Note the first two attempts were from a normal user (#1 was command not found, #2 was no output). The third attempt was using root privileges, and you can see the output showing my SATA drive.
$ fdisk -l
bash: fdisk: command not found
$ /sbin/fdisk -l
$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        5099    40957686    7  HPFS/NTFS
/dev/sda2            5100       10199    40965750    7  HPFS/NTFS
/dev/sda3           10200       14024    30724312+   c  W95 FAT32 (LBA)
/dev/sda4           14025       19452    43600410    f  W95 Ext'd (LBA)
/dev/sda5   *       14025       14030       48163+  83  Linux
/dev/sda6           14031       14091      489951   82  Linux swap / Solaris
/dev/sda7           14092       14213      979933+  83  Linux
/dev/sda8           14214       19452    42082236   8e  Linux LVM
Old 08-28-2006, 12:53 PM   #7
LQ Newbie
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
no, fdisk only saw the sata drives when I used the sata.i kernel, it didn't work with the other kernels, and I was logged in as root each time.

Last edited by bombman; 08-28-2006 at 12:54 PM. Reason: more info


fdisk, partition, table

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
Disk /dev/hdb doesn't contain a valid partition table LOLobo Linux - Hardware 11 11-06-2008 02:47 AM
Not valid partition table temm Linux - Hardware 5 07-23-2008 05:28 AM
Disk /dev/hdb doesn't contain a valid partition table manudath Linux - Hardware 2 09-01-2006 03:23 PM
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Software 10 04-15-2006 12:19 AM
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Hardware 1 04-12-2006 08:29 PM

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration