LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-15-2006, 11:54 AM   #1
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Rep: Reputation: 30
usb disc - size mismatch


my camera has about 1gb space on its memory card. this is also the information i receive in sysinfo. but even though only 64kb are on the memory card, there are over 200mb of space that "disappear". how do i fix it? screenshot.

regards
ungua
 
Old 11-16-2006, 05:11 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
That 64kb could be the size of the sda directory, not the contents. Use
Code:
du /mnt/sda1
to determine the space that /mnt/sda1 uses and compare that to the total-free space. If you just check out directory's prefences, the window might just well give you the actual size of the directory (the special file) and not the contents' size, as you might expect after getting used to the Windows way. KDE can give you the whole size used, but I recall you needed to check the prefences window from a certain place and click a button to make it calculate the size. It's easier to use du (disk usage) to see used disk space of some directory/file (and df (disk free) to see free disk space).

Last edited by b0uncer; 11-16-2006 at 05:12 AM.
 
Old 11-21-2006, 04:04 PM   #3
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
i tried to assess the data's size on the disc as you said, but i cannot make it work: http://home.arcor.de/noroli/usbdisk-size_noaccess.png
in the screenshot i wrote "media", but i get the same results with "mnt", even as root as you can see. now i have used the camera to transfer some files to my xp-partition, but, unfortunately, one text file "howto.txt" (0b) cannot be deleted. not in windows and not in linux either. this is new, preventing me also from formatting the camera's memory, as i aimed to do when everything else failed (which is now). can you (or anybody else) help me!? can i format it in FAT from suse linux 10.1!?

regards
ungua
 
Old 11-29-2006, 07:38 PM   #4
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
In your 1st screenshot, I see system:/media/sda1 as url. This is, as far as I know, very specific to konqueror. I suggest you to mount your usb stick by yourself. Or you can go to /media/ see what is listed there. In my knowledge, kde mounts usb stick as something like 'usb-somethingsomethingsomething' and not as sda1. If so, go in that directory and use du -hs.
Or you can just do
Code:
su
mkdir /mnt/usb
mount /dev/sda1 /mnt/usb
Remember, sda1 here is anything like sdaN (N = any number)
 
Old 12-05-2006, 02:57 PM   #5
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
i am so sorry for my newbie-behaviour, but if i type /media/sda/, which is my mp3-player plugged in right now that "lost" 200mb (of 512mb!), too, it does not work. do i type /media/ the console tells me "/media/ is a directory". do i try "du -hs" followed by /media/sda/ the message is that there is no access. so what shall i do now!? and how do i format usb-devices in linux suse?? i do not find this option anywhere! it is pretty annoying that all my usb-stuff seems to shrink.

regards
ungua

edit: wow, for the first time i get something like a message that makes sense:
Code:
ungua@ungua:~> du -hs /media/usbdisk/
345M    /media/usbdisk/
but my mp3-player has a disc space of 512mb, as i said. what now!?

edit_2: a screenshot, just to make sure that you see suse is detecting the usb-drive correctly.

Last edited by ungua; 12-05-2006 at 03:02 PM.
 
Old 12-06-2006, 09:26 AM   #6
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
du -hs gives how much data has been stored. 512mb is the total capacity of your usb stick, and 345mb has been filled up.
 
Old 12-06-2006, 11:18 AM   #7
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
okay, so why can't i use the rest of the space then? as you can see from my screenshot, 2,27mb are "free". it should be about 167mb. i would be very grateful for any help!! it is the same problem i have with my camera. maybe it's a virus-for-linux!? can my harddisc be affected, too? i always wonder why there is so ridiculous little space left... (see also *)

regards
ungua
 
Old 12-08-2006, 06:16 AM   #8
ungua
Member
 
Registered: Oct 2004
Location: bergen, norway
Distribution: OpenSuSe (SuSe 10.1), Win XP Pro
Posts: 539

Original Poster
Rep: Reputation: 30
regarding the camera: now i lost the ability to delete anything on it! when i try to delete pictures / move them to my harddisc, it won't work. according to "properties" i am allowed to do so. formatting the cameras memory card does not work from windows either, since also there the data seems mysteriously protected. is it somehow possible to use dban on a usb-drive!?

regards
ungua
 
  


Reply



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
apt-get Failed to fetch...Size mismatch noeffort Linux - Software 2 03-24-2007 02:55 PM
Help with partition for a usb external disc alek66 Linux - General 3 06-27-2006 08:33 AM
How can I detect USB flash disc with programming in C? kasimtasdemir Linux - Hardware 2 06-24-2006 03:40 AM
Installing Linux on external (USB) disc jia Linux - Hardware 1 05-24-2006 07:05 AM
apt-get - Size mismatch jayprakash Debian 9 04-07-2006 01:43 AM

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

All times are GMT -5. The time now is 02:58 AM.

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
Open Source Consulting | Domain Registration