LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-25-2013, 08:23 AM   #1
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 327

Rep: Reputation: 49
Folder has become database!


I have - or had - a folder in ~ called Pictures where I keep RAW files before I process them.

I wanted to download some from the camera but I just noticed that the folder has become a database - any ideas how I can turn it back into a folder? I'm guessing it would have happened while one of my sons was randomly bashing the keyboard. Very weird.

Thanks for any help
 
Old 03-25-2013, 08:34 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,146

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
what does it mean? How could it become a database? What kind of database? How do you know it is a database?
 
Old 03-25-2013, 09:44 AM   #3
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 327

Original Poster
Rep: Reputation: 49
I wish I knew - here's a shot from the Properties dialogue. It's not strictly speaking a database but it's been wrapped up like a sqldump I think.

http://dl.dropbox.com/u/78885605/Scr...%3A28%3A51.png
 
Old 03-25-2013, 07:47 PM   #4
michaelslack
Member
 
Registered: Feb 2013
Location: Sydney
Distribution: slackware
Posts: 94

Rep: Reputation: 35
It may just be that a file in that folder has a certain extension that makes the file manager think it is an SQLite database. Googling I found http://www.sqlite.org/fileformat.html but it is not very illuminating.

If you open a terminal and cd to there and do ls or ls -l or ls -al, does it look like a regular directory?

Michael
 
Old 03-25-2013, 07:58 PM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,660

Rep: Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235
What says "file Pictures"?
 
Old 03-26-2013, 05:39 AM   #6
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 327

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by Didier Spaier View Post
What says "file Pictures"?
It says;

Pictures: SQLite 3.x database
 
Old 03-26-2013, 05:41 AM   #7
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 327

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by michaelslack View Post
It may just be that a file in that folder has a certain extension that makes the file manager think it is an SQLite database. Googling I found http://www.sqlite.org/fileformat.html but it is not very illuminating.

If you open a terminal and cd to there and do ls or ls -l or ls -al, does it look like a regular directory?

Michael
I don't think so - it contained RAW and pngs.

The ls -a and similar just return the value Pictures.
 
Old 03-26-2013, 05:47 AM   #8
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,660

Rep: Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235Reputation: 1235
Quote:
Originally Posted by Bazzaah View Post
It says;

Pictures: SQLite 3.x database
Then I'd try to open it with sqlite3.
 
Old 03-26-2013, 05:54 AM   #9
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 327

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by michaelslack View Post
It may just be that a file in that folder has a certain extension that makes the file manager think it is an SQLite database. Googling I found http://www.sqlite.org/fileformat.html but it is not very illuminating.

If you open a terminal and cd to there and do ls or ls -l or ls -al, does it look like a regular directory?

Michael
Thanks - it's such a weird problem that I think I'll just delete the folder-cum-database and pretend it never happened! I think I have the pictures backed up.

First I'll see if I can find a way of reading what's on there.
 
Old 03-26-2013, 07:34 AM   #10
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 327

Original Poster
Rep: Reputation: 49
Yep, all backed up - I don't see any useful learning experience from this one so I'll discard the errant database I think.

Thanks for your help though people, much appreciated.
 
Old 03-26-2013, 11:10 AM   #11
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,610

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
It would be a good idea to force an fsck of that filesystem. Directories don't somehow turn into ordinary files without leaving a mess behind.
 
Old 03-26-2013, 11:45 AM   #12
commandlinegamer
Member
 
Registered: Dec 2007
Posts: 98

Rep: Reputation: 17
Quote:
Originally Posted by rknichols View Post
It would be a good idea to force an fsck of that filesystem. Directories don't somehow turn into ordinary files without leaving a mess behind.
Furthermore, check for bad blocks on the hard disk, and a memtest wouldn't be out of place either.
 
Old 03-27-2013, 04:29 AM   #13
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 327

Original Poster
Rep: Reputation: 49
Thanks both of you - tests suggest that the partition is OK.
 
  


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] Moving only ONE MySQL database to a different folder, is it possible? lpallard Linux - Server 2 12-30-2012 01:01 PM
How to store voice messages in a folder instead of database(Asterisk) Terry56 Linux - General 3 11-14-2009 06:59 AM
DBI Connect Failed:Access denied for user ''@'localhost' to database <database> error kaplan71 Linux - Software 3 06-05-2009 01:39 PM
Database Programming (database to database transaction) johncsl82 Programming 7 02-02-2007 09:20 AM


All times are GMT -5. The time now is 10:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration