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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2007, 03:16 PM
|
#1
|
LQ Newbie
Registered: Nov 2007
Location: Scotland
Posts: 3
Rep:
|
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.
|
|
|
12-04-2007, 03:24 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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.
|
|
|
12-04-2007, 03:34 PM
|
#3
|
LQ Newbie
Registered: Nov 2007
Location: Scotland
Posts: 3
Original Poster
Rep:
|
Hi pljvaldez,
Tried the testdisk...no luck only seeing 8mg
shred coming up with the following
shred: =1: invalid number of passes
Dave.
|
|
|
12-04-2007, 03:40 PM
|
#4
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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?
|
|
|
12-04-2007, 04:10 PM
|
#5
|
LQ Newbie
Registered: Nov 2007
Location: Scotland
Posts: 3
Original Poster
Rep:
|
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
|
|
|
12-04-2007, 04:19 PM
|
#6
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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.
|
|
|
12-04-2007, 11:28 PM
|
#7
|
LQ Newbie
Registered: Oct 2007
Distribution: Open SUSE 10.2, DSL
Posts: 19
Rep:
|
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 : (
|
|
|
All times are GMT -5. The time now is 10:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|