• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1083
  • Last Modified:

Linux FDISK -l error message .....doesn't contain a valid partition table

I've formatted the hard with ext3 twice but get the following error message when I run fdisk -l.   The drives are on an ISCSI SAN.   I am able to read and write to it though once it's mounted.


Disk /dev/sdh: 1649.2 GB, 1649267441664 bytes
255 heads, 63 sectors/track, 200512 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdh doesn't contain a valid partition table
0
dorianit
Asked:
dorianit
  • 4
  • 3
  • 3
  • +2
3 Solutions
 
omarfaridCommented:
how can you mount it if it doesn't contain a valid partition table?

May be you use the wrong device name!!!
0
 
dorianitAuthor Commented:
I know, that is wierd but I am able to mount to it.  Maybe I should ignore that message??
0
 
omarfaridCommented:
what device name do you use with the fdisk and what device name do you use with mount?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
omarfaridCommented:
Please see link below:

http://linux.die.net/man/8/fdisk

it says

fdisk doesn't understand GUID Partition Table (GPT) and it is not designed for large partitions. In particular case use more advanced GNU parted(8).
0
 
joolsCommented:
You said you mount the disk, do you mount using /dev/sdh??

You really should create a partition on the disk, whilst it may not be necessary, if this is for a company, anyone else supporting the system would expect to see a valid partition on the disk.

Can you post your df and mount output with the disk mounted.
0
 
dorianitAuthor Commented:
yea, I'm mounting with /dev/sdh

mount /dev/sdh /media/p4300
0
 
omarfaridCommented:
which device name you used with fdisk?
0
 
drj003Commented:
specify the partition.  You are missing the 1.

mount /dev/sdh1 /media/p4300
0
 
joolsCommented:
You need to create a partition on sdh then.


fdisk /dev/sdh
n
p
1
<enter>
<enter>
w
(I think they are the things to type anyway!)
Then format ext3 or 4 (whatever you use!) then mount using /dev/sdh1

The error can be ignored but the next person to admin the system might get confused so if it were me I'd redo it.
0
 
NetRolller3DCommented:
Chances are, your disk is using an unusual partition table format. Likely not GPT, as Fdisk would then print the "protective MBR", rather than an error message.
0
 
joolsCommented:
I got the impression that there was no partition created in the first place as the asker was just using the whole disk to mount, in which case fdisk would always say there was no valid partition table because there never was.
0
 
dorianitAuthor Commented:
I ran fdisk as instructed and then formatted with ext3.  Everything appears good according to fdisk -l now.

Thank you everyone.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now