Author Topic: Flash drive--invalid partition table  (Read 1323 times)

Offline dougmack

  • Hero Member
  • *****
  • Posts: 961
Flash drive--invalid partition table
« on: December 29, 2012, 12:19:48 AM »
Tried to repartition and reformat a 64 GB flash drive--PC went into screensave shutdown while formatting. Now GParted says
"Invalid partition table on /dev/sdb-wrong signature ffff"
Can this drive be saved?  How?
Thanx--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1910
  • Certified Windows Hater
Re: Flash drive--invalid partition table
« Reply #1 on: December 29, 2012, 12:47:35 AM »
Can you see any partition using the fdisk -l command?
For the whole world, you are someone.
For someone, you are the whole world.

Offline dougmack

  • Hero Member
  • *****
  • Posts: 961
Re: Flash drive--invalid partition table
« Reply #2 on: December 29, 2012, 12:52:38 AM »
No.  GParted shows a completely unallocated partition area.  Windows 7 thinks there is a 29GB partition.
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1910
  • Certified Windows Hater
Re: Flash drive--invalid partition table
« Reply #3 on: December 29, 2012, 12:56:38 AM »
How much GB does this unallocated area show in Gparted? Smaller than 64GB?

As su give the command fdisk -l /dev/sdb
This will show the size of your partition.
For the whole world, you are someone.
For someone, you are the whole world.

Offline dougmack

  • Hero Member
  • *****
  • Posts: 961
Re: Flash drive--invalid partition table
« Reply #4 on: December 29, 2012, 01:30:17 AM »
I just ran GParted again.  Now it shows the ntfs partition (that Windows knew about) and it allowed me to make to make 2 logical partitions in the extended partition area. But it still says the partition table is invalid with signature ffff.  Now I found a window that says libparted bug found--invalid partition table fetc.
I'm not sure what's going on now.  How long should a 32-bit relatively slow machine take to format a couple of 30GB partitions?
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1910
  • Certified Windows Hater
Re: Flash drive--invalid partition table
« Reply #5 on: December 29, 2012, 01:39:13 AM »
So, you have the whole disk available now? And created two partitions of about 30GB each?

I can't know what's going on on your device until you give me the result of the fdisk command.

Just by guessing, I would go to the Device menu of the GParted window and give a try to the option "Create Partition Table"
You can also use "fdisk /dev/sda" and then press "w" to make an attempt to write the partition table to the disk.

Give me some more info about the state of your drive and I will be able to help you further.

For the whole world, you are someone.
For someone, you are the whole world.

Offline dougmack

  • Hero Member
  • *****
  • Posts: 961
Re: Flash drive--invalid partition table
« Reply #6 on: December 29, 2012, 02:05:41 AM »
OK, things were getting past me.  I aborted the so-called format--it didn't seem to be getting anywhere.
But I did the fdisk /dev/sdb   w trick and it said it fixed the partition table. GParted now shows the whole drive unallocated,
as I would expect, and does not come up with the partition table error anymore.  Now I think I have a chance to
get it right, but I'm going to wait until tomorrow--it's 4:03 AM here!

Thanx for the answer on the partition table, and your patience with a tired old man here!

--doug

--
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1910
  • Certified Windows Hater
Re: Flash drive--invalid partition table
« Reply #7 on: December 29, 2012, 02:13:09 AM »
Glad you sorted it out!

You don't need to format the drive.
Just use the unallocated space to create the partition(s) you need with the filesystem you prefer and you're done!

Have a nice rest!
« Last Edit: December 29, 2012, 02:21:25 AM by agmg »
For the whole world, you are someone.
For someone, you are the whole world.

Offline dougmack

  • Hero Member
  • *****
  • Posts: 961
Re: Flash drive--invalid partition table
« Reply #8 on: December 29, 2012, 10:56:08 AM »
That's (welcome) news to me--that I don't have to format the partitions. How come?

I started this whole thing because I decided to backup my whole system, not just pieces, and was encouraged by the PCLINUX Help Knowledge Base,
which is something else I didn't know about until a couple days ago. It's quite useful, and should somehow become more readily obviously
available--I've been using PCLOS for 2-1/2 years and just discovered it.  It may not be on a par with the information the Ubuntu people put out,
but it's certainly a step in the right direction, and I commend the devs who contribute to it!

--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1910
  • Certified Windows Hater
Re: Flash drive--invalid partition table
« Reply #9 on: December 29, 2012, 11:02:11 AM »
When creating a new partition with Gparted it will be formatted with the filesystem you selected.
You don't have to format it unless you want to clean it or change the filesystem.

That is what I meant, sorry if I didn't express myself well :)
For the whole world, you are someone.
For someone, you are the whole world.

Offline dougmack

  • Hero Member
  • *****
  • Posts: 961
Re: Flash drive--invalid partition table
« Reply #10 on: December 29, 2012, 11:45:42 AM »
Let me be clear on this--before I messed with the flash drive, it was formatted in a DOS filesystem, like all flash drives. I'd like to make some partitions with
ext3 filesystem, to copy some Linux partitions onto. You say I don't have to format them, is this correct?

--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1910
  • Certified Windows Hater
Re: Flash drive--invalid partition table
« Reply #11 on: December 29, 2012, 11:52:55 AM »
Before you went to bed :) we were at the point where you recovered the partition table of the drive and had the whole of it as unallocated space.
From that point, use Gparted to create your partition(s) with the ext3 filesystem.

Right click on the drive and select "New" and select ext3 as the filesystem.
If you just need one partition, use all the available space.
If you need more than one, adjust them according to your needs.
The first partition will be a primary one.
Next one will be an extended one containing one or more logical partitions.

When you're done, click "Apply" and Gparted will create them and format them with the selected filesystem.
No need for an extra format as I wrote in my previous post. :)
For the whole world, you are someone.
For someone, you are the whole world.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10601
  • MLUs Forever!
Re: Flash drive--invalid partition table
« Reply #12 on: December 29, 2012, 12:08:09 PM »
Quote
The first partition will be a primary one.
Next one will be an extended one containing one or more logical partitions.

The second, third and fourth partitions (if required) can be primary.

You only need logical partitions if you intend to have more than four partitions on the device ....  in which case the fourth one can be an Extended Partition to hold the Logical Partitions you wish to create.
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1910
  • Certified Windows Hater
Re: Flash drive--invalid partition table
« Reply #13 on: December 29, 2012, 12:16:33 PM »
Quote
The first partition will be a primary one.
Next one will be an extended one containing one or more logical partitions.

The second, third and fourth partitions (if required) can be primary.

You only need logical partitions if you intend to have more than four partitions on the device ....  in which case the fourth one can be an Extended Partition to hold the Logical Partitions you wish to create.

Thanks Just17. By habit, I create all my partitions this way :)
For the whole world, you are someone.
For someone, you are the whole world.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10601
  • MLUs Forever!
Re: Flash drive--invalid partition table
« Reply #14 on: December 29, 2012, 01:00:43 PM »
Quote
The first partition will be a primary one.
Next one will be an extended one containing one or more logical partitions.

The second, third and fourth partitions (if required) can be primary.

You only need logical partitions if you intend to have more than four partitions on the device ....  in which case the fourth one can be an Extended Partition to hold the Logical Partitions you wish to create.

Thanks Just17. By habit, I create all my partitions this way :)

It *can* be important to have primary partitions ......  for instance if writing a suitable hybrid ISO to a partition, it requires a primary partition to boot (apparently). At least I found it would not boot from a logical partition.  ;)
So for multiple hybrid ISOs on partitions the full compliment of primary partitions can be advantageous.

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT