LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-16-2012, 01:19 PM   #1
vihag
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Disk doesn't contain a valid partition table?


The disk is mounted and seems to be working properly. In fact, I have about 800GB of data on it.

fdisk tells me this:


"Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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

Is this a problem?

When I created the filesystem, I think I did a mkfs .../dev/sdb

Should I have instead used sdb1?

Thanks
 
Old 01-16-2012, 01:28 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,692

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

Hi vihag,

Welcome to LQ!!!

How did you create the partition. I mean using disk druid at the time of install or later using fdisk or parted.

If you created the partition using parted then it is normal that you get such warning because both tool works do the same thing but in a different way.

I doubt that you ran mkfs /dev/sdb because that will not work.
 
Old 01-16-2012, 01:36 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,365
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
Quote:
Originally Posted by T3RM1NVT0R View Post
I doubt that you ran mkfs /dev/sdb because that will not work.
Yes, it will work. You don't need to make partitions to make a filesystem on a disk, although it is recommended.

To the OP: While the approach to use the entire disk without partitions is rather unusual there should be no problems with it, except for some programs that don't expect it to be that way. Make sure that you don't let those programs alter anything on the disk, or you may loose your data.
I personally don't like this approach, I would make a backup of that data, repartition the drive and then put a new filesystem on the partition, not the whole disk. But this is just my opinion, if it works for you then use it that way.
 
1 members found this post helpful.
Old 01-16-2012, 01:55 PM   #4
vihag
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I will back everything up and recreate it. I didn't create a partition. I'm a Linux CLI amateur and I thought mkfs would take care of that, or at least complain if everything wasn't in order.

Thanks for the info.
 
Old 01-16-2012, 02:10 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,692

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

It does war you before you try to run mkfs on the device itself. See below:

Code:
mkfs /dev/sdd 
mke2fs 1.41.12 (17-May-2010)
/dev/sdd is entire device, not just one partition!
Proceed anyway? (y,n)
 
Old 01-16-2012, 04:46 PM   #6
ModServ
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Rep: Reputation: 2
Hello,

I'm using this:

Code:
mkfs.ext3 /dev/sdb1
* After creating the partition of course.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk /dev/sdb doesn't contain a valid partition table cytchiu Linux - Enterprise 4 06-03-2009 04:14 PM
Disk doesn't contain a valid partition table baldurpet Linux - Newbie 17 05-10-2009 03:25 AM
Disk doesn't contain a valid partition table expatCM Linux - Hardware 9 10-01-2007 02:38 AM
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


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