LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2013, 01:32 PM   #1
puntino
Member
 
Registered: Sep 2006
Location: Italy
Distribution: Suse 10.1
Posts: 78

Rep: Reputation: 15
/dev/hda does not contain a valid partition table


Hello,
the fdisk -l command prompts the message
/dev/hda does not contain a valid partition table

Despite I tried the following commands (their execution is error free):
$PREFIX=/home/work/mysql

sudo /sbin/mkfs.ext3 -L MYSQL_TEST -F -q /dev/hdb

sudo mount -L MYSQL_TEST $PREFIX/testdir

after the former command the partition dev/hdb appears among mounted devices (I checked it up with "mount").

Thank you in advance
 
Old 01-05-2013, 02:54 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Once you use /dev/hda and another /dev/hdb, I assume you mean /dev/hda. Message you get is correct. /dev/hda is not partitioned. By doing mkfs.ext3 on hda you only formated whole drive, by using -F you should known what you are doing. To partition disk, you first need to use partitioning tool, for example
Code:
fdisk /dev/hda
and then, after creating partition, format it (/dev/hda1 for example) by mkfs. Do not use -F to if you do not want that behavior.
 
Old 01-05-2013, 05:33 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,316

Rep: Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905Reputation: 1905
As already stated you formatted the entire drive vs a partition i.e hdb vs hdb1. There is nothing wrong except if the drive was previously partitioned and contains other data.
 
  


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
[SOLVED] Disk /dev/sdh doesn't contain a valid partition table Hypertenzion Linux - Hardware 2 11-10-2010 05:24 AM
Disk /dev/sdb doesn't contain a valid partition table cytchiu Linux - Enterprise 4 06-03-2009 05:14 PM
Disk /dev/hdb doesn't contain a valid partition table LOLobo Linux - Hardware 11 11-06-2008 02:47 AM
Disk /dev/hdb doesn't contain a valid partition table manudath Linux - Hardware 2 09-01-2006 03:23 PM
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Software 10 04-15-2006 12:19 AM

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

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