LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-24-2006, 09:21 AM   #1
bombman
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, 09:37 AM   #2
Walman
Member
 
Registered: Jun 2004
Location: Venezuela
Distribution: RHEL ,Ubuntu, Slax, Kali
Posts: 95

Rep: Reputation: 15
Bombman

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

.
 
Old 08-24-2006, 09:50 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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, 10:43 AM   #4
bombman
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, 08:53 AM   #5
bombman
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, 10:59 AM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
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.
Code:
$ 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, 11:53 AM   #7
bombman
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 11:54 AM. Reason: more info
 
  


Reply

Tags
fdisk, partition, table



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 AM.

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