LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-10-2010, 03:55 AM   #1
Hypertenzion
LQ Newbie
 
Registered: Oct 2010
Location: Copenhagen, Denmark
Distribution: Debian
Posts: 21

Rep: Reputation: 0
Disk /dev/sdh doesn't contain a valid partition table


I just got an extra HDD for backup.

HDD name: Samsung Spinpoint F4EG HD204UI 2 TB (Internal HDD)

My case doesn't allow more than 1 HDD, therefore I use a "USB 2.0 to SATA & IDE adapter".

Next thing as usual with any HDD: Format and partition.

HDD recognised just fine and listed when executing "fdisk -l":

Code:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 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: 0xd46fd46f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          18      144553+  83  Linux
/dev/sda2              19         516     4000185   82  Linux swap / Solaris
/dev/sda3   *         517      243201  1949367262+  83  Linux

Disk /dev/sdh: 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/sdh doesn't contain a valid partition table
I executed "fdisk /dev/sdh", then "w" to write changes, then "mkfs.ext3 /dev/sdh", then "mount /dev/sdh /mnt/hd" and the "Disk /dev/sdh doesn't contain a valid partition table" pops up when executing "fdisk -l".

Note: I CAN ACCESS THE HDD JUST FINE AND WRITE/READ FROM IT when it's mounted!

The problem is the "fdisk -l" not listing the HDD as an ext3 partition but listing it as an invalid partition etc.

The command "df -k" also lists the HDD just fine:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 1918779404 1405697740 415613304 78% /
tmpfs 1023544 0 1023544 0% /lib/init/rw
udev 1018644 192 1018452 1% /dev
tmpfs 1023544 0 1023544 0% /dev/shm
/dev/sda1 139985 23228 109530 18% /boot
/dev/sdf 1922860936 200160 1824985048 1% /mnt/hd
/dev/sdg1 1922860936 200160 1824985048 1% /mnt/hd
/dev/sdh 1922860936 200160 1824985048 1% /mnt/hd


Help is much appreciated

Last edited by Hypertenzion; 11-10-2010 at 04:06 AM.
 
Old 11-10-2010, 04:15 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
fdisk doesn't understand GPT, but other partition management tools do, such as parted and gparted.

To learn more about GPT, point your browser at www.google.com/linux, and search for "guid partition table", then start reading.
 
Old 11-10-2010, 04:24 AM   #3
Hypertenzion
LQ Newbie
 
Registered: Oct 2010
Location: Copenhagen, Denmark
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 0
Thx for the quick reply!

Edit:
Found out myself.

Fixed the problem by creating the first partition table in /dev/sdh:

- "fdisk /dev/sdh"
- "n"
- "p"
- "1"
- "w"

Afterwards:

- "mkfs.ext3 /dev/sdh1"

I didn't know that I had to format and install the filesystem on another part of the HDD, so I just replaced the /dev/sdh before.

No need for using GPT.

Last edited by Hypertenzion; 11-11-2010 at 02:55 AM.
 
  


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
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
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Hardware 1 04-12-2006 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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