LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-24-2011, 11:45 AM   #1
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
OSX86 Thumb Drive Cannot Be Repartitioned


A friend of mine gave me a thumb drive that he's been unable to fix. He installed OSX on it in an attempt to make a "Hackintosh". Attached is a screenshot of the device's current partition scheme. Any time I try to modify the device's partition scheme it fails. I've tried doing it with GParted and the Gnome Disk Utility (palimpsest), as well as doing the following command as root to try and force a low level format.
Code:
dd if=/dev/zero of=/dev/sdc
The command completed successfully and said that all 8 GB were duplicated, but it didn't actually affect the device.

The type of thumb drive in question is an 8 GB Centon Datastick Pro. There is no write protection measure that I'm aware of on this thumb drive, I have several of them identical to it that are 4 GB and other than two small holes in the end to attach a wrist strap, there are no physical features on the device.

Running dmesg reveals these lines of output, along with a few others, regarding the device /dev/sdc
Code:
[10304.701316] sd 9:0:0:0: [sdc] Add. Sense: Write protected
[10304.701320] sd 9:0:0:0: [sdc] CDB: Write(10): 2a 00 00 00 00 00 00 00 28 00
I've installed hfsutils and all the other hfs programs recommended to me, but even without those you'd think that using dd to do a low level format would wipe the drive regardless of what was on it, but it didn't.

I'm out of solutions for this problem, can any of you guys offer any suggestions?
Attached Thumbnails
Click image for larger version

Name:	thumb_drive.png
Views:	10
Size:	36.6 KB
ID:	8051  
 
Old 09-24-2011, 11:50 AM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Original Poster
Rep: Reputation: 56
Update: Just tried using Windows disk management on a friend's Windows PC to delete the partition and I got the following error, "The operation is not supported on removeable media."
 
Old 09-24-2011, 01:28 PM   #3
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Original Poster
Rep: Reputation: 56
Update

In another forum I posted this thread and they referred me to this, which basically details using fdisk to reformat the drive. No luck there. I also installed and tried "parted" and here's what happened.
Code:
root@marcus-laptop:/home/marcus# parted /dev/sdc
GNU Parted 2.3
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mktable                                                          
New disk label type? msdos                                                
Warning: The existing disk label on /dev/sdc will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? Yes                                                               
Error: Input/output error during write on /dev/sdc                        
Retry/Ignore/Cancel?
 
Old 09-24-2011, 01:33 PM   #4
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Original Poster
Rep: Reputation: 56
Update

I booted my Windows XP VM and forwarded the device to that, then went into disk management. It doesn't show the unallocated space or the FAT32 partition, but lists the whole drive as a "GPT Protected Partition". All the right click options were grayed out. I'll be doing research on how to get rid of one of those.
 
Old 09-25-2011, 05:05 PM   #5
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Google offers a few options
Try this one
http://www.digital52.com/help/gptremoval.html
 
  


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
triple booting windows, ubuntu and osx86: passing boot options from grub to osx86? opaltoad Linux - General 1 01-05-2010 08:38 PM
How to recover files from a repartitioned drive lexthoonen Linux - General 10 05-14-2009 05:11 AM
repartitioned xp 2nd hard drive while trying to install Ubuntu-now shows up as "Bad" pulper Linux - Hardware 2 08-23-2006 01:41 PM
Recovering data from repartitioned ntfs drive booyabazooka Linux - Software 2 09-20-2004 10:37 PM
Recovering NTFS partition off repartitioned hard drive jhayden Linux - Hardware 3 08-30-2004 10:51 AM

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

All times are GMT -5. The time now is 04:43 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
Open Source Consulting | Domain Registration