LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12: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, 01:54 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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, 04:33 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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



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 04:24 AM
Disk /dev/sdb doesn't contain a valid partition table cytchiu Linux - Enterprise 4 06-03-2009 04:14 PM
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
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Software 10 04-14-2006 11:19 PM

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

All times are GMT -5. The time now is 09:13 PM.

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
Open Source Consulting | Domain Registration