You are not logged in.
Hello.
I bought some time ago an ssd disk on which i installed arch. After some free time I changed my laptop optical drive with standard hdd and moved /home and folder with data (mainly music collection) to standard drive. To my surprise my ssd was filled as it were before. My fstab from beginning have had TRIM option enabled:
LABEL=root / ext4 rw,noatime,discard,commit=600,barrier=0 0 1
tmpfs /var/log tmpfs defaults,size=5% 0 0
tmpfs /var/spool tmpfs defaults,size=5% 0 0
LABEL=karta /run/media/kaira/karta/ ext4 rw,noatime,barrier=0,commit=600,data=writeback 0 1
LABEL=home /home ext4 rw,noatime,barrier=0,commit=600,data=writeback 0 1
LABEL=dane /dane/ ext4 rw,noatime,barrier=0,commit=600,data=writeback 0 1 where the last three lines were added after second disk was installed.
And now the great mystery for me:
du -h / |sort -h -r|head -n 5:
3,7G /
2,7G /usr
1,6G /usr/lib
845M /usr/share
771M /vardf:
System plików rozm. użyte dost. %uż. zamont. na
/dev/sdb1 118G 27G 90G 24% /
devtmpfs 3,8G 0 3,8G 0% /dev
tmpfs 3,8G 1,4M 3,8G 1% /dev/shm
tmpfs 3,8G 4,0M 3,8G 1% /run
tmpfs 3,8G 0 3,8G 0% /sys/fs/cgroup
tmpfs 3,8G 13M 3,8G 1% /tmp
tmpfs 389M 32K 389M 1% /var/log
tmpfs 389M 0 389M 0% /var/spool
/dev/sda1 50G 241M 49G 1% /home
/dev/sdc1 30G 45M 29G 1% /run/media/kaira/karta 27G was the state before most data was transfered to different hard drive.
Both commands where executed after partition with music was unmounted.
I executed also fstrim / command, but it changed nothing.
Is this behavior normal, or maybe i didn't made something important/ my disk is damaged?
I know that 24% fulfillment is trivial, but now it definitely should show 3,5%.
Last edited by kaira (2013-11-01 19:45:31)
Offline
Run
LC_ALL=C <command>to get the output in English.
Did you run 'du -h / |sort -h -r|head -n 5' as root?
How did you move the data?
Offline
Yes, I run this command as a root. I manage to repair this problem by mounting root partition in ubuntu live cd. I found folder which should get deleted, but it still was in filesystem. Unfortunetly I don't remeber, how i copy files. Propably i used rsync and forget to delete files. Now it's too late too check this theory, but I'm really happy with proper sizes:
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 118G 3.6G 113G 4% /
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 6.0M 3.8G 1% /dev/shm
tmpfs 3.8G 3.9M 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
tmpfs 3.8G 356K 3.8G 1% /tmp
tmpfs 389M 0 389M 0% /var/spool
tmpfs 389M 32K 389M 1% /var/log
/dev/sda2 410G 25G 381G 7% /daneLesson learned - never manage important system changes after getting up, without enough sleep time.
Thank you for you're help, and sorry for wasting time with my mistakes.
Offline
If you did it from your shell, as opposed to using a GUI app, you should be able to check your command history and find out if you used rsync etc.
Offline
I know that i used rsync, but at that time I have also opened SpaceFM with intention to delete already copied files. I really can't tell why I didn't used simple rm -r after this operation, well, as I mentioned before, being tired and sleepy isn't helpful. But here lies great advantage in linux over windows, most of mistakes can be easily repaired, thanks to great documentation and active community.
If you wonder where your post went, you hit the 'report' link, not the 'reply' link. It happens more often than you might imagine ![]()
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
If you wonder where your post went, you hit the 'report' link, not the 'reply' link. It happens more often than you might imagine
Sorry for yet another problem. Going to sleep to prevent any future mistakes ![]()
Offline