You are not logged in.

#1 2011-10-02 15:42:46

possiblefool
Member
From: UK
Registered: 2011-06-18
Posts: 29

USB and parted issues

Im having some strange problems with usb memory sticks that I'm hoping someone can shed some light on.
When I first insert the stick it mounts automatically and it all reports fine, however if I copy files over, after moving the data any remaining space dissapears and if I delete anything from the the stick the space the file took up also dissapears. I've tried this on 2 sticks with the same result each time.
Using parted's rescue function finds the missing space but any attempts to use it result in it being lost again.

I then used parted to remove the partitions and start a fresh, however I cant set the file system.
I can create a partition on its own with;

(parted) mkpart primary 1 2056 

But comparing the help options to the man page and on line docs I seem to be missing most options to do with fs, so cant then select one.
If I erase that partition and try to create partition and fs together I get;

(parted) mkpart primary [fat32] 1 2056
parted: invalid token: [fat32]
File system type?  [ext2]? 

ext2 is ok (tho not ideal) for my stick, but the other one is my sisters and needs to be windows friendly (and REALLY needs to fixed before she asks for it back!).

Does anyone have an idea why my system has started killing memory sticks and whether I can save them?

Im on lxde so pcmanfm is the file manager doing the auto mounting and I'm running the latest arch kernel. The usb's are different makes so not a specific incompatability issue. I have used my stick without a problem on several previous linux instalations but I think this is the first time I've used it on my current one.

Offline

#2 2011-10-02 18:58:03

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: USB and parted issues

Use mkfs like:

parted /dev/sda (or whatever device it is) 
(parted) mkfs 1 fat32

Offline

#3 2011-10-02 21:05:43

possiblefool
Member
From: UK
Registered: 2011-06-18
Posts: 29

Re: USB and parted issues

Thanks but all that does is return the help list (the list of possible options) mkfs isnt there, nor is mkpartfs.

I've found this which contains the following in one of the examples;

(parted) mkfs
WARNING: you are attempting to use parted to operate on (mkfs) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs.  We recommend
you use parted only to manipulate partition tables, whenever possible.
Support for performing most operations on most types of file systems
will be removed in an upcoming release.

Which makes me think that (despite the article only being 4 days old) the functionality has now been removed? (damn bleeding edge Arch!)
e2fsprogs looks to be ext fs specific so I'm currently looking round for other options.

Offline

Board footer

Powered by FluxBB