KDE crash due to insufficient space

Greetings guys. Need help here.

So the story is I installed PhotoRec to recover a file my colleague deleted.

On the selection sda part, I’m not sure which folder to recover hence i blindly chose 1.

Next thing i know the KDE crashed, with only black screen.

Did some googling and it turns out i don’t have enough space on /root or /home to run KDE.

inserted this command df -h and this shows;

http://s12.postimg.org/jimf6kfcd/IMG_20150519_180705.jpg

Please advise what is my next step as im noob to opensuse.

On 2015-05-19 12:26, thivaakar wrote:

> [image: http://s12.postimg.org/jimf6kfcd/IMG_20150519_180705.jpg]

Your root ("/") is full. You have to delete files.
If you need them, move them somewhere else, like /home/somewhere.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Note you could have used snapshot to recover the files if they were on / (root). Also sda2 is root and sda3 is home. Where were you trying to recover??? And why would you give a colleague access to your important files ??

On 2015-05-19 14:06, gogalthorp wrote:
>
> Note you could have used snapshot to recover the files if they were on /
> (root). Also sda2 is root and sda3 is home. Where were you trying to
> recover??? And why would you give a colleague access to your important
> files ??

The information is incomplete, but photorec I doubt very much that it
supports btrfs. My assumption is that he tried to recover files from
another disk, perhaps a usb stick. Photorec saves what it finds to a
different media, and he selected root, so it filled up with what it
found. He should have selected home.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

thivaakar donned his tin foil hat and penned:

>
> Greetings guys. Need help here.
>
> So the story is I installed PhotoRec to recover a file my colleague
> deleted.
>
> On the selection sda part, I’m not sure which folder to recover hence i
> blindly chose 1.
>
> Next thing i know the KDE crashed, with only black screen.
>
> Did some googling and it turns out i don’t have enough space on /root or
> /home to run KDE.
>
> inserted this command df -h and this shows;
>
> [image: http://s12.postimg.org/jimf6kfcd/IMG_20150519_180705.jpg]
>
> Please advise what is my next step as im noob to opensuse.
>
>

Have you tried removing some snapshots using “snapper”, can be found in
Yast, I had exactly the same prob yesterday and so deleted all snapshots and
de-installed ( a bit drastic I know and not really wise ) but I don`t need
it here.

I go nearly half of my / partition back :wink:

HTH


Mark
Nullus in verba
Caveat emptor
Nil illigitimi carborundum

“PhotoRec ignores the file system and goes after the underlying data, so it will still
work even if your media’s file system has been severely damaged or reformatted.”
http://www.cgsecurity.org/wiki/PhotoRec

By default PhotoRec searches for many file types and the recovered data could take up a lot of space.
You would need to select only the appropriate file type(s) to recover:
http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step#Selection_of_files_to_recover

On 2015-05-19 15:06, DanneStrat wrote:

>
> “PhotoRec ignores the file system and goes after the underlying data, so
> it will still
> work even if your media’s file system has been severely damaged or
> reformatted.”
> http://www.cgsecurity.org/wiki/PhotoRec

I know, so they claim. But btrfs is special.

> By default PhotoRec searches for many file types and the recovered data
> could take up a lot of space.

It only works more or less right with photos and some other multimedia
files.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

On 2015-05-19 14:27, Baskitcaise wrote:
> Have you tried removing some snapshots using “snapper”, can be found in
> Yast, I had exactly the same prob yesterday and so deleted all snapshots and
> de-installed ( a bit drastic I know and not really wise ) but I don`t need
> it here.

He copied a lot of files. I doubt that the snapshots make a lot of
difference in his case.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

so i should delete the snapshots first?

how do i ensure this would not happen again?

i was trying to recover an excel file on /home/somewheressomwhere.

I guess i should revamp my system… any suggestions?

Looks like what ever you did “recover” went to root filling it up. Without haveing looked over you shoulder at the time you did it I have no idea what you did.

As mentioned BTRFS is special and photrec may not understand it to write to it properly?? Who knows???

I’d first try zapping the snapshots they do take up room and that may give you the edge you need to start KDE. But it is not the solution. You have to find where those files you recovered went and either delete them or move them to home somewhere

Note you must use the snapper tool to actually remove the snapshots. man snapper should give you some clues

On 2015-05-19 16:36, thivaakar wrote:
>
> so i should delete the snapshots first?

You can try.

> how do i ensure this would not happen again?

By checking, before you do an operation, where is it going to write to,
and how much space it is going to use. I mean photorec.

>:-)

Like crossing the street. Don’t you look out for incoming cars? It is
your responsibility.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

On 2015-05-19 17:06, thivaakar wrote:
> i was trying to recover an excel file on /home/somewheressomwhere.

If you were trying to recover a file from the /home filesystem, and it
was mounted, your chances of recovering something are close to nil. Very
possibly the space was reused and overwritten.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Carlos E. R. donned his tin foil hat and penned:

> He copied a lot of files. I doubt that the snapshots make a lot of
> difference in his case.
>

I agree Carlos but it might give him enough space to get the system up and
running in KDE to make it easier for him to see what is what if he is not
comfortable in the CLI.

Cheers.


Mark
Nullus in verba
Caveat emptor
Nil illigitimi carborundum

http://s29.postimg.org/go4o1zwtv/snapshort.jpg](http://postimg.org/image/go4o1zwtv/)

phew. removed .snap files and /var/tmp stuff. and i can Use KDE now.

now which folder may i clear? im not familiar with some of these files.

On 2015-05-19 18:56, thivaakar wrote:
>
> ‘[image: http://s29.postimg.org/go4o1zwtv/snapshort.jpg]’
> (http://postimg.org/image/go4o1zwtv/)
>

15 GB free. Quite a lot. I’m surprised.

> phew. removed .snap files and /var/tmp stuff. and i can Use KDE now.
>
> now which folder may i clear? im not familiar with some of these files.

Well, paste here the output of “ls /”, inside a code tags block (’#’ button)


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

On 2015-05-19 17:59, Baskitcaise wrote:
> Carlos E. R. donned his tin foil hat and penned:
>
>
>> He copied a lot of files. I doubt that the snapshots make a lot of
>> difference in his case.
>>
>
> I agree Carlos but it might give him enough space to get the system up and
> running in KDE to make it easier for him to see what is what if he is not
> comfortable in the CLI.

True…


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

BOOMGROW:~ # ls /
.readahead  Shan  boot  etc  home  lib64  opt   root  sbin     share1  sys  usr
.snapshots  bin   dev   ftp  lib   mnt    proc  run   selinux  srv     tmp  var


here you go bro. what’s next?

On 2015-05-21 11:26, thivaakar wrote:
>
> robin_listas;2710803 Wrote:

>>> now which folder may i clear? im not familiar with some of these
>> files.
>>
>> Well, paste here the output of “ls /”, inside a code tags block (’#’
>> button)

> Code:
> --------------------
> BOOMGROW:~ # ls /
> .readahead Shan boot etc home lib64 opt root sbin share1 sys usr
> .snapshots bin dev ftp lib mnt proc run selinux srv tmp var
>
>
> --------------------
>
>
> here you go bro. what’s next?

I do not know… I do not see an obvious directory where the photorec
output would go.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

/proc
Check if it has a lot of lovely numbered directories with one that has a root inside of it… I’m just guessing but that will be there, with /proc right there for you as well… with a lot of numbered directories inside… want to guess what one of those has inside it self? Same number as before no doubt…
Essentially, that’s where all your free space went - in my case 30G snarled up in there.
ls /proc/1/root/proc/1/root/proc/1/root/proc/1/root/proc/1/root/proc/1/root…
you get the drift…