LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-15-2005, 03:26 AM   #1
temm
LQ Newbie
 
Registered: May 2005
Location: Thessaloniki,Greece
Distribution: RHEL-3-U4
Posts: 18

Rep: Reputation: 0
Not valid partition table


I have an external storage which i tried to expand(with succes) and then de-expand(no succees). The Storage manager didn't support this type of function so i had to create again the physical and logical drives.

I had to clear the partition since linux was indicating different partition size and physical size with corrupt partition table error message

so I used
fdisk /dev/sdb
and the prompt
: o (create a new empty dos partition table) and
: w

after that
mkfs -t ext3 /dev/sdb
mount -t ext3 /dev/sdb /stdb

the drive mounts OK but when i issue
fdisk -l
it gives me the following

Disk /dev/sdb: 291.4 GB, 291481059328 bytes
255 heads, 63 sectors/track, 35437 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

What does this mean (doesn't contain a valid partition table)

It seems that the drive works OK (copying files) but is it?

Thank you.
Teo Emmanuel
 
Old 12-15-2005, 07:33 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,294

Rep: Reputation: 123Reputation: 123
You made a small mistake:
you created an empty partition table, but didn't add any partitions.
I find it a bit strange it works, but apparently it does? I have no idea if it can be reliable, if I were you I'd redo it:

in fdisk, add a partition with
# fdisk /dev/sdb
a (for add)
1 (partition number)
then let it cover the entire disk, simply accept default start & end.
w (write and exit)

Maybe all your files are still on it? Could be worth checking, it might be you don't have to reformat - again, I have no idea if the partition can be relied upon without reformatting.
 
1 members found this post helpful.
Old 12-15-2005, 07:54 AM   #3
temm
LQ Newbie
 
Registered: May 2005
Location: Thessaloniki,Greece
Distribution: RHEL-3-U4
Posts: 18

Original Poster
Rep: Reputation: 0
Wow, it worked. Thanks alot.

I'm quite new to this and it didn't cross my mind.
add partition is 'n', at least in my distro.

I'am not concerned about the files, yet, because i am doing some testing with the raid.

Thanks again.
Teo
 
Old 12-15-2005, 09:08 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,294

Rep: Reputation: 123Reputation: 123
Code:
dd partition is 'n', at least in my distro.
Did I say 'a'? Oooppss ... that was a typo, it sure is 'n'!
Anyway, glad it worked!
 
Old 10-07-2007, 07:05 AM   #5
danishka
LQ Newbie
 
Registered: May 2007
Posts: 6

Rep: Reputation: 0
I have created RAID 5 using hda5,hda6 and hda7 while installing RHEL 5.
But still it works. But for the #fdisk -l command I got the message "Disk /dev/md0 doesn't contain a valid partition table"

whatis the wrong?

[root@dhcp6-85 ~]# fdisk -l

Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1288 10241437+ 83 Linux
/dev/hda3 1289 1419 1052257+ 82 Linux swap / Solaris
/dev/hda4 1420 4870 27720157+ 5 Extended
/dev/hda5 1420 1550 1052226 fd Linux raid autodetect
/dev/hda6 1551 1681 1052226 fd Linux raid autodetect
/dev/hda7 1682 1812 1052226 fd Linux raid autodetect

Disk /dev/md0: 3232 MB, 3232235520 bytes
2 heads, 4 sectors/track, 789120 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table
 
Old 07-23-2008, 04:28 AM   #6
mzalfres
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by danishka View Post
I have created RAID 5 using hda5,hda6 and hda7 while installing RHEL 5.
But still it works. But for the #fdisk -l command I got the message "Disk /dev/md0 doesn't contain a valid partition table"

whatis the wrong?

[/COLOR]
Exactly nothing. fdisk is trying to look for partition table on /dev/md0 device. It cannot find it there so it gives this information. fdisk cannot in any way guess that /dev/md0 is not a 'real' disk (strange but true).
 
  


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
Disk /dev/hdb doesn't contain a valid partition table LOLobo Linux - Hardware 11 11-06-2008 01:47 AM
Disk /dev/hdb doesn't contain a valid partition table manudath Linux - Hardware 2 09-01-2006 02:23 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM


All times are GMT -5. The time now is 09:44 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