LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   free space on xubuntu persistent (https://www.linuxquestions.org/questions/ubuntu-63/free-space-on-xubuntu-persistent-724290/)

alaios 05-06-2009 09:56 PM

free space on xubuntu persistent
 
Hi everyone. I enjoy xubuntu on my usb drive. I try to calculate how much free space is left on the device. So i ve tried the following method

mount /dev/loop0 /mnt/ro

root@ubuntu:/home/ubuntu# df -h /mnt/ro
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 567M 567M 0 100% /mnt/ro
root@ubuntu:/home/ubuntu# du -sh /mnt/ro
1.5G /mnt/ro


1)df gives file space usage which it is 567M
2)du give the estimate file usage which says it is 1.5GB
I believe that the 1) is the disk space currently used and
the 2)the total available to write on


Can u help me a little more?

DragonSlayer48DX 05-08-2009 05:47 PM

Actually, 1) says:

Size=567 | Used=567 | Avail=0 | Use=100%

What's the actual total size of the drive, and is it possible that you only formatted what was needed to install the system rather than the entire drive?


All times are GMT -5. The time now is 09:46 PM.