You are not logged in.

#1 2013-09-05 02:21:30

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Bleachbit wiping crash, million files in dir[SOLVED]

Hi,

I reecently try to wipe my home partition with bleachbit, but a crash occured when i was almost done with the wiping, the next bleachbit option was thumbnail cache clean. I dont know if it s the wiping or the thumbnail but i think it the wiping that cause those trounle

Now I have a folder called CybSZ78Xy3 inside /home/user

I try first to remove it with rm -rf but it was just showing no output and not working.

i try to check my partion with fsck but it said no error found.

Luckely the corrupted folder is only 200 MB, but still it s not clean to have this.

systemd[1]: Starting Cleanup of Temporary Directories...

systemd-tmpfiles[2315]: stat(/run/user/1000/gvfs) failed: Permission denied


I dont know if its related...

The folder is maybe full of file that doest let me see them.

Should I wipe again ?

Why bleachbit doesnt create 1 big file instead of plenty files while wiping ?

A need advises please, I am using ext4


regards

Last edited by maxarsys (2013-09-05 10:46:48)

Offline

#2 2013-09-05 02:55:40

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Bleachbit wiping crash, million files in dir[SOLVED]

are you sure it was not working? it takes time when large. bleachbit does not wipe anything it deletes them even though if you have a trash bin it will not show there. when things are deleted they are flaged as non-use and are still there till overwritten especially on file systems with a journaling FS.

I have never had anything like you speak from bleachbit....are you sure it is from such?

also what exactly are you trying to do? it sounds like you are trying to wipe free space but correct me if I am wrong.

Last edited by bleach (2013-09-05 03:19:40)

Offline

#3 2013-09-05 03:04:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Bleachbit wiping crash, million files in dir[SOLVED]

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-09-05 07:08:55

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Bleachbit wiping crash, million files in dir[SOLVED]

Hi,

Yes it s definitelz bleachbit that is altering badly my ext4fs rrrrrrrr.

I try to use bleachbit again and a second corrupted folder appeareed in my home/user and of course bleachbit crashed again.

My log shows XT4-fs warning (device sda6): ext4_dx_add_entry:2006: Directory index full!

Offline

#5 2013-09-05 07:12:11

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Bleachbit wiping crash, million files in dir[SOLVED]

Wow, I hope you have backups if you are doing such questionable things with your working $HOME…

Offline

#6 2013-09-05 07:20:36

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Bleachbit wiping crash, million files in dir[SOLVED]

So since it s corrupted I will backup delete my /home partition and copy it again, but i want to know how to do it properly without making the systeme unstable
my fstab :

# UUID=1f62f7d9-9009-4a8b-b288-1c65cb5444b2
/dev/sda4               /boot                   ext2            defaults,relatime,stripe=4      0       2



/dev/sda5               /                       ext4            defaults,noatime,data=writeback 0        1



/dev/sda7               /home/maxime/Download   vfat            rw,noatime,uid=1000,gid=100,user   0       0



/dev/sda6               /home                   ext4            defaults,noatime,data=ordered   0        2



/dev/sda1   /boot/efi                           vfat            defaults        0       1

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        42G  4.0G   36G  11% /
dev             1.9G     0  1.9G   0% /dev
run             1.9G  988K  1.9G   1% /run
tmpfs           1.9G   72K  1.9G   1% /dev/shm
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           1.9G  396K  1.9G   1% /tmp
/dev/sda4       248M   24M  208M  11% /boot
/dev/sda6        93G  1.6G   87G   2% /home
/dev/sda7       107G  584M  106G   1% /home/maxime/Download
/dev/sda1       197M   22M  176M  11% /boot/efi


ׁHow do I copy my home without those two corropted folder (with million files insides).
I have an external HDD if it s necessary with Arch Linux on.

Luckely I use refind but i change the default ext4fs driver to ext2fs at least the /home/ partition are ignored on startup avoiding crashes.

Please I need your help

Last edited by maxarsys (2013-09-05 07:33:54)

Offline

#7 2013-09-05 07:40:30

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Bleachbit wiping crash, million files in dir[SOLVED]

So since it s corrupted I will backup delete my /home partition and copy it again, but i want to know how to do it properly without making the systeme unstable
my fstab :

/dev/sda4               /boot                   ext2            defaults,relatime,stripe=4      0       2



/dev/sda5               /                       ext4            defaults,noatime,data=writeback 0        1



/dev/sda7               /home/maxime/Download   vfat            rw,noatime,uid=1000,gid=100,user   0       0



/dev/sda6               /home                   ext4            defaults,noatime,data=ordered   0        2



/dev/sda1   /boot/efi                           vfat            defaults        0       1

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        42G  4.0G   36G  11% /
dev             1.9G     0  1.9G   0% /dev
run             1.9G  988K  1.9G   1% /run
tmpfs           1.9G   72K  1.9G   1% /dev/shm
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           1.9G  396K  1.9G   1% /tmp
/dev/sda4       248M   24M  208M  11% /boot
/dev/sda6        93G  1.6G   87G   2% /home
/dev/sda7       107G  584M  106G   1% /home/maxime/Download
/dev/sda1       197M   22M  176M  11% /boot/efi

$ls -l

drwxr-xr-x 5 maxime users       4096 Sep  5 00:31 AUR
-rwxr-xr-x 1 maxime users     412801 Sep  3 01:06 background.png
drwxr-xr-x 3 maxime users       4096 Sep  4 00:47 BACKUP
drwxr-xr-x 2 maxime users  118935552 Sep  5 04:20 CybSZ78Xy3
drwx------ 2 maxime users       4096 Sep  5 01:49 Desktop
drwxr-xr-x 6 maxime users      32768 Jan  1  1970 Download
drwxr-xr-x 2 maxime users 1062559744 Sep  5 10:04 goH9eJdq2
-rw-r--r-- 1 maxime users       1131 Sep  5 00:38 mail-icon.gif
drwxr-xr-x 5 maxime users       4096 Sep  5 02:31 RECOVERY

ׁHow do I copy my home without those two corropted folder (with million files insides).
I have an external HDD if it s necessary with Arch Linux on.

Or i looked over google and i found this :

export i=0; time ( while [ true ]; do ls -Uf | head -n 3 | grep -qF '.png' || break; ls -Uf | head -n 10000 | xargs rm -f 2>/dev/null; export i=$(($i+10000)); echo "$i..."; done )

But i dont know how to use it in my case and i see grep -qf .png but i dont think my files are png.

How to do ?

Luckely I use refind but i change the default ext4fs efi driver to ext2fs efi driver at least the /home/ partition are ignored on startup avoiding crashes. When booting "The Linux way" with EFI

Please I need your help

Last edited by maxarsys (2013-09-05 07:47:09)

Offline

#8 2013-09-05 08:11:35

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Bleachbit wiping crash, million files in dir[SOLVED]

ׁHow do I copy my home without those two corropted folder (with million files insides).

Maybe use rsync with --exclude.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#9 2013-09-05 08:21:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Bleachbit wiping crash, million files in dir[SOLVED]

maxarsys wrote:

Or i looked over google and i found this :

export i=0; time ( while [ true ]; do ls -Uf | head -n 3 | grep -qF '.png' || break; ls -Uf | head -n 10000 | xargs rm -f 2>/dev/null; export i=$(($i+10000)); echo "$i..."; done )

But i dont know how to use it in my case and i see grep -qf .png but i dont think my files are png.


Why would you think some random script you found on google would be relevant? Perhaps you should slow down and reassess what it is you are doing and why. Your judgement is showing all the impairment of someone in a state of panic. Just leave the machine, get some rest and come back to it when you are able to think things through rationally.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2013-09-05 08:59:26

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Bleachbit wiping crash, million files in dir[SOLVED]

jasonwryan wrote:
maxarsys wrote:

Or i looked over google and i found this :

export i=0; time ( while [ true ]; do ls -Uf | head -n 3 | grep -qF '.png' || break; ls -Uf | head -n 10000 | xargs rm -f 2>/dev/null; export i=$(($i+10000)); echo "$i..."; done )

But i dont know how to use it in my case and i see grep -qf .png but i dont think my files are png.


Why would you think some random script you found on google would be relevant? Perhaps you should slow down and reassess what it is you are doing and why. Your judgement is showing all the impairment of someone in a state of panic. Just leave the machine, get some rest and come back to it when you are able to think things through rationally.

Lol you right I need some rest, luckely the dir are small in size

I will add the option writeback to my /home partition and execute while [ true ]; do ls -Uf | head -n 10000 | xargs rm -f 2>/dev/null; done )

i m not yet really aware of bash script and  but it seems to be a better script.

i will see if Its work.

Offline

#11 2013-09-05 09:03:59

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Bleachbit wiping crash, million files in dir[SOLVED]

You really want to delete all files in /home? because that is what this command does.
Here is what I would do:
copy all important data from /home to a backup disk
logout
login as root
reformat /home (mkfs.***)
mkdir, chown USERNAME, and chmod 700 for /home/USERNAME
logout
login as USERNAME
get all data from backup disk back

Last edited by progandy (2013-09-05 09:07:54)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#12 2013-09-05 09:54:30

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Bleachbit wiping crash, million files in dir[SOLVED]

progandy wrote:

You really want to delete all files in /home? because that is what this command does.

No it removes files from the current directory, I just do cd to the directory i want to remove.

To have a better "view of what s going on it s better to do

(while [ true ]; do ls -Uf | head -n 10000 | xargs rm -f 2>/dev/null; export i=$(($i+10000)); echo "$i..."; done )

Last edited by maxarsys (2013-09-05 09:55:06)

Offline

#13 2013-09-05 10:29:12

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Bleachbit wiping crash, million files in dir[SOLVED]

maxarsys wrote:
progandy wrote:

You really want to delete all files in /home? because that is what this command does.

No it removes files from the current directory, I just do cd to the directory i want to remove.

All right then. You just mentioned /home amd the command in the same sentence so I thought you want to execute it directly in your home directory.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#14 2013-09-05 10:45:38

maxarsys
Member
Registered: 2013-09-01
Posts: 61

Re: Bleachbit wiping crash, million files in dir[SOLVED]

yes right but this command bash was wrong since i am on a ext4 it s very easy to delete millions files, this issue was for ext3 fs.

In case this problem occurs very simply do :

$ du -ks large
4022660 large
$ time rm -r large

With large the name of the directory

It takes few minutes, while it was few hours with older ext filesystems.

Last edited by maxarsys (2013-09-05 10:47:51)

Offline

#15 2013-09-05 13:16:09

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 512

Re: Bleachbit wiping crash, million files in dir[SOLVED]

Just an advice, most wipe techniques are reversable (I think I read that on phrack magazine or something like that) , wouldn't be relying much on that, try full-encryption would be more reliable.

Offline

Board footer

Powered by FluxBB