>20% of my usbdisc is used regardless of no files on it
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
>20% of my usbdisc is used regardless of no files on it
when empty, my mp3-player is recognised as having available 390.2 of 496.9mb (512mb). that seems strange to me, since there are no files on the disc at all! to illustrate the problem, a screenshot. how do i format a usbdisc in suse? i have only formated disc in linux with a knoppix-live-cd before.
The -m flag allows you to change how much space is reserved for the root user (and his daemons). So set it to 0, and you should now have the majority of the space available. Also you do not necessarily need the -j (journal) flag if you arent bothered by the partition being ext2.
I would be a bit careful before formatting the usbdisc.
The screenshot you posted shows this:
/dev/sdc ? 496,9 MB /media/usbdisk 390,2 MB .....
/dev/sdc => a device is found, but no partition layout.
? => no filesystem is detected. That could mean 2 things, there is no FS present or there is one but it is not recognized!
Are you sure your mp3-player is still going to work if you format the disk with ext2 or ext3 or reiserfs or etc. ??
What kind of a player is it? Note that most USB players have somekind of software on them, to be able to play songs. It usually means that they have a certain kind of filesystem (sometimes it's luckily FAT, but not always), maybe a database (but in that case special software is usually needed to transfer music to and from the player, to write the changes to the database too) and so on. So disk space can be needed by the player, even if there are no media files on it. And like druuna pointed, even if this was not the case, the player might not recognize ext2 (or other filesystems for that matter), and simply stop working after the format. The usual filesystem is FAT (because it's recognized/supported by a lot of operating systems), and I haven't seen any commercial mp3 player till today that would use or understand ext filesystems (if there are some, tell me; of course I know about iPodLinux, but I mean 'official' Linux players here). Apple iPods may use HFS (was it right?), some of them use FAT, but they don't work if you just go about formatting the player to ext (you'd then need to replace the firmware too, with one that understood ext filesystem).
So better leave it alone, or at least first study how to rever the changes and have the player 100% back to factory settings including filesystem and firmware, so that it works, before you start. Because if you don't, and it stops working, you can forget every warranty you might have - they all state somewhere (maybe small print) that any usermade changes void warranty.
it's this player and i am very sure that it's filesystem is fat. furthermore, it was not such that that much space was reserved when the player was new for two years ago - i then had the full space of just below 500mb available. i wouldn't dare to format it with a non-windows compatible file system ...
Ok, seems like a "regular" mp3 player to me (using either FAT16 which is very commonly used with this kind of players, or FAT32) - it works by just copying the audio files there, right? Without any special programs to do that?
You could try to format it as FAT if you liked, it would probably work then. You can of course first take an image of the player disk, so you could later put it back if you wanted, to revert the changes. The image sould be easy to take and put back with dd (there's a very good thread about dd usage here at LQ). You can create FAT filesystem with mkfs.vfat I think:
Quote:
mkfs.vfat (8) - create an MS-DOS file system under Linux
But like I said, first dd an image of the player as a backup. You could also check the partition table of the disk with fdisk -l, just to make sure.
EDIT: one thing that came to my mind from pwc101:s post is that it's possible there is a trash directory on the drive (called .trash or .Trash - so it's usually hidden in Linux's file manager view). When deleting songs from the device they should usually be removed right away, but I've (once or twice) bumped into a situation myself where the file manager I used didn't remove the file, but instead put it into the "trash bin". And not into a trash bin on my harddisk, but it created a trash directory onto the device itself, and stored the files there - so instead of removing them (and freeing up space) it just moved the files into a usually-not-shown directory. Check if .trash or .Trash exists, and if it does, remove it.
wow, thank you for a very comprehensive post, or i might even call it a "guide"! i have checked if there are any hidden files by going to "show" > "show hidden files" in konqueror, i assume that's same like using these shell commands? (i'm a gui-guy )
it seems there are no hidden files on the disc? i tried the "la -alh"-command (result). running dd creates a 0b-image, so it doesn't seem to recognize what's in the "lost" section either (screenshot)!? i don't really dare to format if i'm not 100% sure it will work afterwards...
very strange: i just copied zappa's "absolutely free" to my mp3-player. in its menue i couldn't see the album, so i connected it to the notebook again. the folder "zappa" then was completely empty, but the disc space in use. so i deleted the folder, but that didn't free these 80,3mb of disc space!! how weird is that?? that leaves 309 out of 512mb.
the mkfs-command is not recognised in the shell, but i will format the drive in windows later today. i just wanted to post this strange happening, it's really not understandable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.