Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
A strange thing has happened to my usb stick and my digicam memory card.
I had used both on only win xp until recently.
First thing was my digicam lost half of its storage space on the memcard.Then my usb stick appeared to have only 256MB(its a 512MB stick) when using windows.
When I'm using a linux distro and plug in the stick it appears as 2 removable drives?
One is the stuff I saved using win.(win can see this one also)The other is files I saved to the stick while using linux.
Is there a way I can format the stick and mostly my digicam memory card so the cam sees the rest of the memcard again?
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
One problem I had with mine some time ago was the .trash directory. I had deleted the files, but of course they went into the trash. Open up a terminal, cd to the USB stick (probably /media/usb) and run "du -sh *" and see what is taking up all the room. Also, try "df -h" to make sure that Linux sees the full size.
Make sure that you always umount the drive before removing it. Either run "umount /media/usb", assuming that is your usb drive, or right click on the icon and select Unmount. Not unmounting can lead to strange problems sometimes.
sda1 and sda2 are in fact one 512MB usb stick.I think something is wrong with it.
You were right about the trash.Thats when my cams memcard lost space is when I used Mandriva to read the pics and then I deleted them from the card(or so I thought).
Is there any saving the card or the usb drive?I'm not sure what to try?
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Does this drive have multiple partitions??? That is what it looks like, seeing as it is being recognised as sda1 and sda2. But surely you would have known if you partitioned your usb stick
"du -sh *" s to find out the individual disk usage of each file. That was just trying to find out if there is a hidden file taking up space.
Is it possible to use fdisk to partition a USB stick? Maybe someone who knows can reply before you stuff anything up on my say-so If so, you will be able to re-partition it.
Thats what I suspect also.and no I havent partitioned them.Never really even thought about the xd card and the usb stick as having a file system.
Somehow from using them with different OS's has created a linux filesystem on a separate partition.I think this was created when I deleted(or moved to trash) pics and files.
I think xp wont admit to seeing the partition same way it does with hd partitions.
I will mess with the usb stick first and try some partitioning tools on it.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
USB drives usually have a FAT filing system, so they can be read by Windows and Linux and whatever else. So Linux can see both, but windows can see only one? Try using cfdisk to check out the partition table, "cfdisk /dev/sda" as root. It is possible that Mandriva may have created a new ext2 or ext3 partition out of the free space when it automounted it, but I have no idea why it would do that.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Probably.
It may be easier to delete both, and then create a new FAT32 partition, that is the full size of the disk.
It would be interesting to know how you have ended up with two partitions though. I use my USB drive all the time between Linux and Windows, and I have never seen anything like this...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.