Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 18 Oct 2017, 18:28
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to remove Puppy Linux partition from USB stick?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Tonto

Joined: 31 Oct 2008
Posts: 10

PostPosted: Sat 01 Nov 2008, 06:19    Post subject:  How to remove Puppy Linux partition from USB stick?  

I have a 1 Gb usb stick, which I divided in 2 partitions:
- Partition 1 is 500 Mb ext3 boot
- Partition 2 is 500 Mb fat16
I installed Puppy Linux on Partition 1 and everything worked fine, until I decided to enlarge Partition 1. Somehow I screw up in trying to achieve that.

Now Puppy isn't booting anymore and I'm trying to start from scratch again.
But I can't remove both partitions or even remove files from Partition 1.
I'm getting I/O errors.

I tried repartitioning the stick with GParted. This is the message I got
GParted 0.3.3
Libparted 1.8.8
Delete /dev/sdb2 (ext2, 486.34 MiB) from /dev/sdb 00:11 ( ERROR )

calibrate /dev/sdb2 00:01 ( SUCCES )

path: /dev/sdb2
start: 996030
end: 1992059
size: 996030 (486.34 MiB)
delete partition 00:10 ( ERROR )
libparted messages ( INFO )

Input/output error during write on /dev/sdb

========================================

Delete /dev/sdb1 (ext3, 486.31 MiB) from /dev/sdb

========================================



With Fdisk, CFdisk and also in Windows with Power Quest Partition Magic and Paragon Partition Manager I keep getting error messages.
I also tried to change permissions on the puppy files with chmod, but that didn't help either.

Attached is the result of ls command.

Can somebody help me out?
Back to top
View user's profile Send private message 
freamon


Joined: 12 Aug 2008
Posts: 19

PostPosted: Sat 01 Nov 2008, 12:45    Post subject:  

This isn't very helpful, but I had a similar situation once, and like you I couldn't get Gparted or Fdisk to actually make any changes. I even tried hexediting it to wipe out the partition table completely, but that didn't work either (it looked like it did, but re-opening it showed the same contents as before).

I may well be wrong, but I've a horrible feeling that once flash memory gets corrupted, it's dead and only suitable for the bin.

If you want to try hexedit though, go here: http://merd.sourceforge.net/pixel/hexedit.html
and download:
http://rigaux.org/hexedit-1.2.12.bin.i386.dynamic.tgz

Then do "hexedit -s /dev/sdb" on the unmounted stick and zero out the first few lines. Then put a new DOS partition table back using Fdisk. You never know, it might work.
Back to top
View user's profile Send private message 
Tonto

Joined: 31 Oct 2008
Posts: 10

PostPosted: Sat 01 Nov 2008, 18:30    Post subject:  

When I do: hexedit -s /dev/sdb
I get: Permission denied
Back to top
View user's profile Send private message 
Tonto

Joined: 31 Oct 2008
Posts: 10

PostPosted: Sat 01 Nov 2008, 19:17    Post subject:  

Oops I forgot to give the command with sudo.
I've done it but after that I still couldn't do anything
Back to top
View user's profile Send private message 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Sun 02 Nov 2008, 00:54    Post subject:  

Tonto wrote:
Oops I forgot to give the command with sudo.
I've done it but after that I still couldn't do anything


No sudo, no *buntu.

If the stick is bad, it is bad. We can't fix that of course.

Supposing it's not bad?

Then you can setup the partitions as wanted, what exactly do you want? If I know, I think I can give specific help.

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
d4p


Joined: 12 Mar 2007
Posts: 426

PostPosted: Sun 02 Nov 2008, 03:17    Post subject:  

Quote:
If the stick is bad, it is bad.

Low level format may help
http://www.softpedia.com/get/System/Hard-Disk-Utils/HDD-Low-Level-Format-Tool.shtml
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Sun 02 Nov 2008, 03:26    Post subject:  

If you have a Windows machine handy, plug in the stick, right click on the drive in Explorer, and select 'format'. I had this problem too a few weeks back, and for some reason, that fixed it when Linux could not.
Back to top
View user's profile Send private message 
Tonto

Joined: 31 Oct 2008
Posts: 10

PostPosted: Sun 02 Nov 2008, 05:07    Post subject:  

Bruce B: I'm trying to make the stick usable again by deleting the current partitions and setup a new partition.
The low level format tool was what I was looking for, but too bad I got errors when running a low level format. After that the old partitions show up again in Gparted and I cannot reformat or remove them.
Looks like the stick is dead.
Back to top
View user's profile Send private message 
Doglover

Joined: 24 Jun 2006
Posts: 262
Location: Humboldt

PostPosted: Sun 02 Nov 2008, 23:15    Post subject: Use Parted Magic
Subject description: boot with live cd and use Testdisk
 

Try this... download a copy of Parted Magic

http://downloads.partedmagic.com/

Burn as iso and boot up with it,

Gparted as well as other tools are on the disk, I would try Testdisk, Worth a shot.
Back to top
View user's profile Send private message 
Tonto

Joined: 31 Oct 2008
Posts: 10

PostPosted: Mon 03 Nov 2008, 15:58    Post subject:  

Doglover,
Thx for the tip, now I have one more tool to check out things I messed up.
Too bad Test Desk didn't help. I even tried Shred but that gave me a fdata sync I/O error.
I think I'll have to throw the stick in the bin.

Thanks everybody for trying to help me out.
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Mon 03 Nov 2008, 16:03    Post subject:  

Tonto .................. would House give up? Smile
Back to top
View user's profile Send private message 
Tonto

Joined: 31 Oct 2008
Posts: 10

PostPosted: Tue 04 Nov 2008, 16:12    Post subject:  

DaveS,
You're right. I'll give it another shot. I'll try Vista to see if that helps. Keep you posted.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0788s ][ Queries: 11 (0.0066s) ][ GZIP on ]