LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2005, 01:31 PM   #1
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
df -h says that mp3player storage is used 78%


My mp3player (samsung yepp yp-mt6x) has no files or folder in it. When I start the player it says that about 495 mb is free. However, when I mount /dev/sda1 (or sdb1, sdc1... udev probably wants to change it everytime) to /mnt/tmp df -h says

Filesystem Size Used Avail Use% Mounted on
...
/dev/sda1 495M 382M 114M 78% /mnt/tmp

This is totally wrong. I have not used 78%, I have used none!

Can anybody tell me what I should do to make Linux understand that I haven't used that much.

Thanks!
 
Old 05-01-2005, 03:17 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Run "ls -l" (no quotes) to do a directory listing. That will show which files are there, along with their sizes -- J.W.
 
Old 05-01-2005, 05:47 PM   #3
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
There's nothing there. except for the settings.dat file (made by the player)

[root@arch tmp]# du -sh /mnt/tmp/
8.0K /mnt/tmp/

[root@arch tmp]# ls -al /mnt/tmp/
total 12
drwxr--r-- 2 root root 4096 1970-01-01 00:00 .
drwxr-xr-x 10 root root 4096 2005-04-07 09:26 ..
-r-xr--r-- 1 root root 951 2002-12-27 18:44 settings.dat

And I still get

[root@arch tmp]# df -h
...
/dev/sda1 495M 382M 114M 78% /mnt/tmp


It's probably information stored somewhere that I can change?
I haven't had this problem with my other mp3players. The only thatt differs is that I today deleted the files in the player with the players delete-function.
 
Old 05-01-2005, 05:59 PM   #4
2mcm
LQ Newbie
 
Registered: Apr 2004
Location: New Zealand
Distribution: Slackware 10.0, Gentoo ( no version )
Posts: 21

Rep: Reputation: 15
Quote:
The only thatt differs is that I today deleted the files in the player with the players delete-function.
Hmm could the file system that your device uses have a bug in it ?
Try
Code:
mount | grep /mnt/tmp
to see what filesystem linux has mounted.
You could possibly try formatting the disk which would fix any errors in the FS.
I think the difference between the usage as calculated by df and du is the df get the free space by reading a piece of the disk that is ment to have stored the ammount used. While du gets the file sizes for each file and adds them up.
 
Old 05-01-2005, 06:04 PM   #5
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
[root@arch mnt]# mount | grep /mnt/tmp
/dev/sda1 on /mnt/tmp type vfat (rw)

It's vfat as in the other players I've used. The thing is, it's brand new and it feels... strange if I already would have problem with the filesystem. Do you think I should format it?
 
Old 05-01-2005, 06:18 PM   #6
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
I fixed it! I forgot how nice dosfstools are =)
I just did:

[root@arch mnt]# fsck.vfat -a /dev/sda1
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Free cluster summary wrong (28988 vs. really 126555)
Auto-correcting.
Performing changes.

and when I mounted again it was it old self again! =)

Thanks for your time
 
Old 05-01-2005, 06:21 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Cool - congrats on solving the problem and thanks for posting back with the solution, that will definitely be helpful to future readers who may encounter the same issue. -- J.W.
 
  


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
boot linux from mp3player possible? Itachi Linux - Newbie 3 09-10-2005 08:18 AM
sweex 128mb, a mp3player punker Linux - Hardware 2 04-17-2005 10:10 AM
MP3player hari78 Linux - Software 2 12-12-2004 05:35 AM
Controlling /dev-device for USB-Mp3player (and other) Trygleren Linux - Hardware 2 08-30-2004 05:15 AM
help w/ mp3player chile712 Fedora 11 04-12-2004 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration