Bug 150181 - digikam wants to delete the whole database (24.000Images) at startup when USB-Disk with the Photos is not connected
Summary: digikam wants to delete the whole database (24.000Images) at startup when USB...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 11:23 UTC by andreas woelfel
Modified: 2019-12-25 15:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andreas woelfel 2007-09-25 11:23:39 UTC
Version:           0.9.2 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

Hello,

I have stored about 24.000 Pictures on an external USB-Disk because the internal HD is too small.

The Bug:

Sometimes when I start digikam it happens that the USB-Disk is not mounted or switched off.
But if i insert a card while USB-Disk is not mounted digikam says that it can only start when i erase the database. 
I accidentialy said ok.
So all my keywords were lost afther digikam had rebuilt the database when USB-Disk was remounted...

I except this Behaviour:

Digikam recognizes that USB-Disk is not connected.
Digikam stores the Photos in a temporarily folder.
When restarting digikam - it moves / copies (I wish to have a choice here) the Photos from the temporarily folder(e.g. /home/user/pictures/temp/) to the default location (e.g. /USB-Disk/photos/).

Comment:

This behaviour is very useful when USB-Disk is for a period of time not available.
(e.g. a yourney where I use only the Notebook without the need of carrying external devices)
Comment 1 Arnd Baecker 2007-09-25 16:56:01 UTC
See these related wishes:
  http://bugs.kde.org/show_bug.cgi?id=103201
  http://bugs.kde.org/show_bug.cgi?id=107871
  http://bugs.kde.org/show_bug.cgi?id=125474
  http://bugs.kde.org/show_bug.cgi?id=126821
Not sure, whether the current one there qualifies as a duplicated of any of
these... Andreas, could you have a look and comment here
(or at any of the above, if it makes sense).

General remarks:
I would always recommend to have also the root directory
of digikams images on the external disk 
(which includes the database file digikam3.db).
Then you could write a small wrapper script, which checks, whether
the USB disk is mounted and only then really start digikam.
In addition, of course the general statement about a backup of
all images applies (I know this does not help anymore if the whole database
is gone; very annoying, I perfectly understand!).

Best, Arnd
Comment 2 Marcel Wiesweg 2007-10-02 19:40:28 UTC
Checking for availability of album roots (with that, multiple album roots of course) will come with the KDE4 version of digikam - it is only possible with help of the new "Solid" API.
Comment 3 Arnd Baecker 2008-01-03 19:27:40 UTC
In my opinion this is in spirit a duplicate of bug 126821.
Andreas, could you please add any missing thoughts of your report 
in that bug. Thanks a lot, Arnd

*** This bug has been marked as a duplicate of 126821 ***
Comment 4 caulier.gilles 2019-12-25 15:52:30 UTC
Not reproducible using digiKam 7.0.0 beta1.