LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2017, 11:26 PM   #1
andrew262
LQ Newbie
 
Registered: May 2014
Posts: 8

Rep: Reputation: Disabled
Downloads folder is seen as hidden data


Hello everybody,


I used to have a perfectly running Ubuntu 14.04 until the disaster has struck due to my ignorance and now I"ve lost my "Downloads" folder - 40GB without any trace.

I ran Testdisk on the hard drive (160Gb) and I've got the message:


" Hidden sectors are present.

size 312500000 sectors
user_max 312500000 sectors
native_max 312500000 sectors
dc0 312500000 sectors

Drive Configuration Overlay (DCO) present.

Continue even if there are hidden data. "


This very hidden data is the data I need to recover and Testdisk cannot access it.


How I got here: I tried to tidy up my Ubuntu 14.04 and from "Home" folder I had deleted some "unnecessary" folders like "Public", "Templates", "Examples" and I've renamed others.

Then I tried to do the same with the "Downloads" folder, but when I wanted to open it, I got the message: " the folder contains unreadable data and the content cannot be displayed"; however I had opened it before I've played with the "Home" folders!!

Next I've restarted the computer but the "Downloads" folder couldn't be found - it disappeared without any trace; however the free space on the hard drive has been increased by 40 GB the size of this folder.

Now my "Downloads" folder became the hidden data!!

What can I do? Please help me!


Thank you very much,

Andrew
 
Old 05-21-2017, 12:49 AM   #2
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 3,267
Blog Entries: 1

Rep: Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102
This situation is one of the reasons why backups are important. If you have a backup of Downloads, simply restore it. If not, maybe next time you need one you'll have one.

The restart may have eliminated filesystem corruption that included your Downloads. Using admin privileges you may be able to find something in the lost+found directory on the disk containing /home, but don't get your hopes up.

When trying to deal with "hidden" files or directories it's typically much easier to use an OFM for access than an ordinary file manager. MC can be used either in a GUI terminal or on one of the VTTYs to see all files on a filesystem. If MC isn't installed, install it. It's in the standard repos. Maybe using it you'll be able to get lucky and find Downloads moved or renamed and you can move it back.
 
Old 05-21-2017, 03:03 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,262
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
may i also suggest opening a terminal and issuing
Code:
ls -al ~
 
Old 05-21-2017, 03:03 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,262
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
may i also suggest opening a terminal and issuing
Code:
ls -al ~
 
Old 05-21-2017, 09:43 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
The size of the hidden sectors reported by testdisk is 160 GB.
 
Old 05-21-2017, 10:18 PM   #6
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 3,267
Blog Entries: 1

Rep: Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102
312500000 sectors * 512 bytes is 160GB, which is probably the whole HD.
 
Old 05-23-2017, 06:28 AM   #7
andrew262
LQ Newbie
 
Registered: May 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello everybody,

thank you guys for your replies - now I need to search the entire hard drive for the lost folder or its sub folders.

Could I run the midnight commander from the Ubuntu or could I launch it from a rescue cd?

Thanks,
Andrew
 
Old 05-23-2017, 06:48 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
To add to the other answers, in cases like this the first thing you should be doing is making an offline image of your hard disk, or the relevant partition(s), to another location so that you have a safely backed up copy of the drive before you start mucking around with it trying to recover data. This is because you risk worsening the situation with your recovery attempts.

Also, my apologies for saying this, but I would emphasise what an earlier poster said - back up your data regularly. You should always have at least two copies of your data (including the original) on separate media, and preferably in two separate locations.

All the best with your recovery attempts.
 
Old 05-23-2017, 08:54 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
what did you do to get your data to go into hide and seek mode? if you know you could try reversing the process.
 
Old 05-23-2017, 09:13 AM   #10
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 3,267
Blog Entries: 1

Rep: Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102
Quote:
Originally Posted by andrew262 View Post
Could I run the midnight commander from the Ubuntu or could I launch it from a rescue cd?
It shouldn't matter. Rescue media may or may not have MC on it, just like MC may or may not have been installed in Ubuntu. Knoppix used as rescue media always has it. MC has many features useful in a rescue environment, such as file search, text editor, archive viewer and FTP client.
 
  


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
[SOLVED] Everything Has Disappeared From My Downloads Folder xjonquilx Linux - Software 20 08-17-2019 05:20 PM
Configuring Dosbox from a hidden folder Seff Linux - Software 3 09-22-2015 03:34 PM
Hidden folder does not show tranphat Linux - Newbie 15 08-24-2014 10:04 PM
All of my folder icons changed to the Downloads folder icon? Supreme1012 Linux - Software 1 08-17-2010 04:45 PM
How to transfer file to hidden folder Brosky SUSE / openSUSE 4 02-27-2005 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 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
Open Source Consulting | Domain Registration