LinuxQuestions.org
Visit Jeremy's Blog.
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-11-2010, 06:09 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
After formatting hard disk, invalid partition table


After formatting hard disk, "fdisk -l" shows "invalid partition table".

Quote:
[root@centos-vb backup_script]# mkfs.ext3 -j /dev/sdb
mke2fs 1.39 (29-May-2006)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
122109952 inodes, 244190646 blocks
12209532 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
7453 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@centos-vb backup_script]# fdisk -l

Disk /dev/sda: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 14 104422+ 83 Linux
/dev/sda2 15 17849 143259637+ 8e Linux LVM
/dev/sda3 * 1 1 8001 12 Compaq diagnostics

Partition table entries are not in disk order

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table
Please let me know how to fix this error.

Thanks in advance.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-11-2010, 06:12 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by windstory View Post
After formatting hard disk, "fdisk -l" shows "invalid partition table".
Not a mistery, since you are formmating a whole device, and not a partition, hence destroying everything inside that device (and that includes the partition table).

You can read it yourself on the output you posted:

Code:
[root@centos-vb backup_script]# mkfs.ext3 -j /dev/sdb
mke2fs 1.39 (29-May-2006)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
The solution is easy: repartition the device with fdisk, then format one partition (i.e. /dev/sdb1).
 
2 members found this post helpful.
Old 08-11-2010, 06:15 AM   #3
hurryi
Member
 
Registered: Apr 2010
Distribution: RHEL
Posts: 77

Rep: Reputation: 7
there is no partition on /dev/sdb
so make one
fdisk /dev/sdb #there is help
dont forget to save it after u modified the table with w

and when its done u could use mkfs.xxxx /dev/sdb1
 
2 members found this post helpful.
Old 08-11-2010, 06:37 AM   #4
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Thanks for replies, I made "mount"!
 
  


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
invalid partition table gmvdburg Linux - Newbie 19 02-19-2010 08:41 PM
Invalid partition table for swap partition that I moved with Gparted keith9e Linux - Hardware 16 02-10-2010 01:21 PM
cloning linux partition to different laptop, invalid partition table dsollen Linux - Software 8 11-23-2009 09:50 PM
hard disk partition table crashed! himy Linux - Hardware 1 01-28-2008 04:58 PM
Can dd restore the entire hard disk including partition table and MBR? depam Linux - General 17 01-01-2007 08:05 PM


All times are GMT -5. The time now is 01:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration