Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
01-12-2015, 10:29 AM
|
#31
|
Member
Registered: Feb 2011
Posts: 43
Original Poster
Rep:
|
HDD out of space with 50+ Gb
Quote:
Originally Posted by rtmistler
To determine where the space is used up, maybe try: to see a report of the space used per directory. It will also report on hidden directories such as .config.
|
This command indicates that around 1Gb is free. But I just deleted more than 40 Gb!
See attached result of du...
|
|
|
01-12-2015, 10:32 AM
|
#32
|
Member
Registered: Feb 2011
Posts: 43
Original Poster
Rep:
|
HDD out of space with 50+ Gb
Quote:
Originally Posted by rtmistler
Where's this 50+G of files? Largest I see is the Desktop at 445M. Perhaps a different part of the du result?
What's the output of df?
Don't include me in any consensus that feels deleted files are hiding. I don't buy that and I've not yet seen enough information to know that you do or don't have space freed up.
|
See other reply for
|
|
|
01-12-2015, 10:38 AM
|
#33
|
Member
Registered: Feb 2011
Posts: 43
Original Poster
Rep:
|
HDD out of space with 50+ Gb
Quote:
Originally Posted by rtmistler
Where's this 50+G of files? Largest I see is the Desktop at 445M. Perhaps a different part of the du result?
What's the output of df?
Don't include me in any consensus that feels deleted files are hiding. I don't buy that and I've not yet seen enough information to know that you do or don't have space freed up.
|
See other reply for du. df is attached.
I definitely moved many Gbs of files to another drive. The files no longer appear in the original directory. According to my reckoning, I should have recovered 20+ Gbs on the last operation alone. But...
And I know I do not have the space cos half my apps wont run (out of space error) and every disk test I tried shows it.
|
|
|
01-12-2015, 10:46 AM
|
#34
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,938
|
OK. I understand that the "free" is not showing correctly, and that 127G minus 119G is actually 14G which you say you've deleted. When you use the du command you do see that the directory where these files formerly were is not longer taking up that 14G of space? It's either gone, or smaller?
Have you powered off your system and done so via a correct shutdown? I do see that the sync command had no apparent impact, but in this case I would shutdown the system via "sudo poweroff" or via the Window manager shutdown option. And then restart and see what the state of the system shows.
Finally, you have mentioned trying to avoid reformatting the drive, so you do realize that's an option. Another option I've mentioned a few times is to boot off a live distribution, either via USB or CD/DVD and then mount your existing hard drive, and search it, remove files, etc, also run an fsck on that disk. Why? Because when running off that drive, the file system is in use, and /home is supposed to be mounted as rw (a reason why I asked to see the output of the mount command by the way), but when booted off of a live distribution, it may or may not automatically mount that internal hard drive, but you can mount it from within the live distro as read-write and then do virtually anything to the files you wish; with the presumption that you will not be removing system files just instead removing any of these recovered archive files, if any are still left. And you can run a disk check to diagnose/fix any anomalies. All else does fail, then it would seem that your main option does become to take all the data off that you need from other parts of the drive and then reformat and re-install.
As someone else said, Photorec can create some very obtuse file and directory names, so it's worth checking to see if there are other parts keeping too much space up.
|
|
|
01-12-2015, 11:13 AM
|
#35
|
Member
Registered: Feb 2011
Posts: 43
Original Poster
Rep:
|
Quote:
Originally Posted by rtmistler
OK. I understand that the "free" is not showing correctly, and that 127G minus 119G is actually 14G which you say you've deleted. When you use the du command you do see that the directory where these files formerly were is not longer taking up that 14G of space? It's either gone, or smaller?
Have you powered off your system and done so via a correct shutdown? I do see that the sync command had no apparent impact, but in this case I would shutdown the system via "sudo poweroff" or via the Window manager shutdown option. And then restart and see what the state of the system shows.
Finally, you have mentioned trying to avoid reformatting the drive, so you do realize that's an option. Another option I've mentioned a few times is to boot off a live distribution, either via USB or CD/DVD and then mount your existing hard drive, and search it, remove files, etc, also run an fsck on that disk. Why? Because when running off that drive, the file system is in use, and /home is supposed to be mounted as rw (a reason why I asked to see the output of the mount command by the way), but when booted off of a live distribution, it may or may not automatically mount that internal hard drive, but you can mount it from within the live distro as read-write and then do virtually anything to the files you wish; with the presumption that you will not be removing system files just instead removing any of these recovered archive files, if any are still left. And you can run a disk check to diagnose/fix any anomalies. All else does fail, then it would seem that your main option does become to take all the data off that you need from other parts of the drive and then reformat and re-install.
As someone else said, Photorec can create some very obtuse file and directory names, so it's worth checking to see if there are other parts keeping too much space up.
|
The original rogue directory is now deleted. But again seems not to have affected the space.
From the maligned file manager I am seeing 1.1 Gb space now.
I have shutdown the computer several times during this saga. Using the shutdown command seems to work best atm. I have forced fsck several times on this system.
All directories shown by the mount cmd are rw including current /home/myuser.
Fundamentally, having used photorec before with no problem, I am surprised at the problems now.
The option to recover to another drive or memory stick is not too happy, since this can be very slow (especially the latter). My present run is taking 30 hours +. :-(
If I have to go back to the install disk I will reinstall. It is simpler and maybe quicker. I have copies of all important data already.
|
|
|
01-12-2015, 11:19 AM
|
#36
|
Member
Registered: Feb 2011
Posts: 43
Original Poster
Rep:
|
HDD out of space with 50+ GB
The 50+ Gb was what was available after the last format operation.
The operations done since then were:
Run photorec until HDD full
Move recovered files off to another drive
test drive space
Check HDD
Still full!
|
|
|
01-12-2015, 04:25 PM
|
#37
|
Member
Registered: Apr 2012
Distribution: Gentoo
Posts: 616
Rep:
|
Quote:
Originally Posted by joey00
If I have to go back to the install disk I will reinstall. It is simpler and maybe quicker. I have copies of all important data already.
|
If you have your /home copy you might to boot with liveCD/USB, re-format your home partition and restore it's content from backup. No need to re-install all the system.
|
|
|
All times are GMT -5. The time now is 02:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|