LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-04-2007, 03:16 PM   #1
Taysider
LQ Newbie
 
Registered: Nov 2007
Location: Scotland
Posts: 3

Rep: Reputation: 0
Angry USB 4gig drive


I know i should have unmounted it first but....being fairly new i forgot and just pulled it out, now my 4gig shows 8meg!
I ran dmesg and it sees both 4gig and 8meg but does not come up on desktop. I even put it in my friends Xp to try to format it but it can't, although i can see and open it in explorer.
I've tried to mount it ...no luck.
Any ideas before i throw it in the bin and put it down to the learning curve.
 
Old 12-04-2007, 03:24 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try using testdisk to fix the partition table. Beyond that, I'd try shredding the drive (shred -f -n=1 /dev/sdxx -- of course use the right device -- shred will overwrite the data block by block). Then try to reformat it with GParted or fdisk.
 
Old 12-04-2007, 03:34 PM   #3
Taysider
LQ Newbie
 
Registered: Nov 2007
Location: Scotland
Posts: 3

Original Poster
Rep: Reputation: 0
Question

Hi pljvaldez,

Tried the testdisk...no luck only seeing 8mg
shred coming up with the following

shred: =1: invalid number of passes

Dave.
 
Old 12-04-2007, 03:40 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Sorry, it should be shred -f -n 1 /dev/sdxx without the equal sign.

As for testdisk, did you run through trying to recover the partition table?
 
Old 12-04-2007, 04:10 PM   #5
Taysider
LQ Newbie
 
Registered: Nov 2007
Location: Scotland
Posts: 3

Original Poster
Rep: Reputation: 0
Angry

pljvaldez

testdrive coming back with:
Disk /dev/sdf - 8388 KB / 8192 KiB - CHS 1024 1 16
Analyse cylinder 6/1023: 00%

and shred saying
shred: /dev/sdf: fdatasync failed: Input/output error
 
Old 12-04-2007, 04:19 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Hmmm. You can try dd directly. dd if=/dev/zero of=/dev/sdf bs=512 count=1 which should overwrite the drive with zeros.

You can also try using dosfsck -a /dev/sdf. It's a bit like running scandisk on the drive.
 
Old 12-04-2007, 11:28 PM   #7
jesseruu
LQ Newbie
 
Registered: Oct 2007
Distribution: Open SUSE 10.2, DSL
Posts: 19

Rep: Reputation: 0
hi,

Thats what i think could have happend to my USB,
it used to be 1 gig now it under 50 mb.
I can not remember ever unmounting it : (
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 01:46 PM
using GRUB 1.5 with boot on sata-drive and system on usb drive(ipod photo) Scorp-D Linux - Laptop and Netbook 1 03-16-2007 02:34 AM
cannot delete drive from root desktop - cannot mount usb flash drive - openSuSE 10.2 bluecog6 Linux - General 6 01-29-2007 03:18 PM
rh3 + 4gig memory saustin99 Red Hat 1 08-25-2005 03:52 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM

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

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