v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Tue Jun 24, 2008 9:46 pm

Greetings,

I pulled the clean-up portion of the bakclean script out and made it stand-alone. You can now use the added script to clean-up your system without having to go to the trouble of configuring the back-up script and having to click through the menus.

It turned out that it was a good move because I found a bug that prevented it from emptying the trash cans when very large files and folder trees were in them. I should have known not to use the rm command but I did and it choked on large amounts of data. I fixed it in the 1.4b version.

The bakclean script was updated to fix the clean-up bug also.

You can find the stand-alone cleanout script in the original post at the beginning of the thread.

As usual, any and all feed-back is welcomed and encouraged.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Linux Mint is funded by ads and donations.
 

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby pjnsmb on Wed Jun 25, 2008 2:02 am

Fred
After becoming interested in the clean-up script I have followed the instructions and can get as far as the script running and showing "the clean-out routine will begin in 5 seconds" followed by :



Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initialising package states... Done
Building tag database... Done     
Freed 0B of disk space
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initialising package states... Done
Building tag database... Done     
Hit http://archive.canonical.com hardy Release.gpg
Ign http://archive.canonical.com hardy/partner Translation-en_GB               
Hit http://security.ubuntu.com hardy-security Release.gpg                       
Ign http://security.ubuntu.com hardy-security/main Translation-en_GB           
Ign http://packages.linuxmint.com elyssa Release.gpg                           
Ign http://packages.linuxmint.com elyssa/main Translation-en_GB                 
Ign http://packages.linuxmint.com elyssa/upstream Translation-en_GB             
Ign http://packages.linuxmint.com elyssa/import Translation-en_GB               
Hit http://archive.ubuntu.com hardy Release.gpg                                 
Hit http://archive.ubuntu.com hardy/main Translation-en_GB                     
Hit http://archive.ubuntu.com hardy/restricted Translation-en_GB               
Hit http://archive.canonical.com hardy Release                                 
Hit http://packages.medibuntu.org hardy Release.gpg                 
Ign http://packages.medibuntu.org hardy/free Translation-en_GB       
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_GB
Ign http://security.ubuntu.com hardy-security/universe Translation-en_GB
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_GB
Hit http://archive.ubuntu.com hardy/universe Translation-en_GB                 
Hit http://archive.ubuntu.com hardy/multiverse Translation-en_GB               
Hit http://archive.ubuntu.com hardy-updates Release.gpg                         
Ign http://archive.ubuntu.com hardy-updates/main Translation-en_GB             
Ign http://archive.ubuntu.com hardy-updates/restricted Translation-en_GB       
Ign http://archive.ubuntu.com hardy-updates/universe Translation-en_GB         
Ign http://archive.ubuntu.com hardy-updates/multiverse Translation-en_GB       
Get:1 http://packages.linuxmint.com elyssa Release [7841B]                     
Hit http://security.ubuntu.com hardy-security Release                           
Ign http://packages.medibuntu.org hardy/non-free Translation-en_GB             
Hit http://archive.ubuntu.com hardy Release                                     
Hit http://packages.medibuntu.org hardy Release                                 
Hit http://archive.ubuntu.com hardy-updates Release                             
Hit http://archive.canonical.com hardy/partner Packages                         
Hit http://security.ubuntu.com hardy-security/main Packages                     
Hit http://archive.ubuntu.com hardy/main Packages                               
Ign http://packages.linuxmint.com elyssa/main Packages                         
Hit http://security.ubuntu.com hardy-security/restricted Packages   
Hit http://security.ubuntu.com hardy-security/universe Packages     
Hit http://security.ubuntu.com hardy-security/multiverse Packages   
Hit http://packages.medibuntu.org hardy/free Packages               
Hit http://archive.ubuntu.com hardy/restricted Packages             
Hit http://archive.ubuntu.com hardy/universe Packages               
Hit http://archive.ubuntu.com hardy/multiverse Packages             
Hit http://archive.ubuntu.com hardy-updates/main Packages           
Ign http://packages.linuxmint.com elyssa/upstream Packages           
Hit http://packages.medibuntu.org hardy/non-free Packages           
Hit http://archive.ubuntu.com hardy-updates/restricted Packages     
Hit http://archive.ubuntu.com hardy-updates/universe Packages
Hit http://archive.ubuntu.com hardy-updates/multiverse Packages
Ign http://packages.linuxmint.com elyssa/import Packages
Hit http://packages.linuxmint.com elyssa/main Packages
Hit http://packages.linuxmint.com elyssa/upstream Packages
Hit http://packages.linuxmint.com elyssa/import Packages
Fetched 7841B in 0s (8825B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initialising package states... Done
Building tag database... Done     
The following packages have been automatically kept back:
  dbus-x11 hal-info linux-image-generic linux-restricted-modules-common
  linux-restricted-modules-generic xserver-xorg-video-intel
The following packages have been kept back:
  dbus hal libdbus-1-3 libhal-storage1 libhal1 linux-generic
  linux-headers-generic util-linux-locales xserver-xorg-core
  xserver-xorg-video-cirrus
0 packages upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initialising package states... Done
Building tag database... Done     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initialising package states... Done
Building tag database... Done     
The following packages have been automatically kept back:
  dbus-x11 hal-info linux-image-generic linux-restricted-modules-common
  linux-restricted-modules-generic xserver-xorg-video-intel
The following packages have been kept back:
  dbus hal libdbus-1-3 libhal-storage1 libhal1 linux-generic
  linux-headers-generic util-linux-locales xserver-xorg-core
  xserver-xorg-video-cirrus
The following packages will be REMOVED:
  linux-ubuntu-modules-2.6.22-14-generic{p}
0 packages upgraded, 0 newly installed, 1 to remove and 16 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
(Reading database ... 85205 files and directories currently installed.)
Removing linux-ubuntu-modules-2.6.22-14-generic ...
Purging configuration files for linux-ubuntu-modules-2.6.22-14-generic ...
FATAL: Could not open '/boot/System.map-2.6.22-14-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Cannot find /lib/modules/2.6.22-14-generic
update-initramfs: failed for /boot/initrd.img-2.6.22-14-generic
dpkg: error processing linux-ubuntu-modules-2.6.22-14-generic (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-ubuntu-modules-2.6.22-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initialising package states... Done
Building tag database... Done     
gstreamer0.10-plugins-bad-multiverse libgtkhtml3.16-cil libgtk-vnc-1.0-0 python-gnupginterface python-launchpad-integration libpam-smbpass mozilla-thunderbird openoffice.org-l10n-common bogofilter libdeskbar-tracker libdebconfclient0 python-gtkhtml2 gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly-multiverse python-gst0.10 liblpint-bonobo0 libpt-1.10.10 gvfs-fuse




the terminal window then just stalls with a black flashing cursor and does not progress past this point .

Any ideas please ?

thanks
pjnsmb
pjnsmb
Level 1
Level 1
 
Posts: 4
Joined: Sat Mar 29, 2008 3:24 am

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Wed Jun 25, 2008 6:15 pm

pjnsmb,

It appears that it found an inconsistency with your kernel install that it doesn't know how to deal with. Have you had problems with this install?

I would suggest that you run:

sudo aptitude -y install linux-image-generic; sudo aptitude -y reinstall linux-image-generic

Reboot and this should put everything back into order. Then run cleanout again and everything should be ok.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby pjnsmb on Thu Jun 26, 2008 5:12 am

Fred
thanks for the advice .

I tried your recommendation but it continues to stall.

I am dual booting with Ubuntu but showing the Mint Grub screen, and have consequently modified my menu.lst

It seems it is this set up that is causing the conflict .

Seems I will have to do without your little tool - but thanks anyway

regards
pjnsmb
pjnsmb
Level 1
Level 1
 
Posts: 4
Joined: Sat Mar 29, 2008 3:24 am

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby 67GTA on Thu Jun 26, 2008 12:38 pm

I just tried the cleanout script on Elyssa Gnome. I had the same hangup as pjnsmb with 2.6.22-14-generic kernel. I manually created the directories it was complaining about, and it finished. It seems the 2.6.22-14 kernel did not get a clean removal and was only partially still in the file system, and it couldn't finish the script. Should the script display the "Clean-Out has successfully completed!" dialog when it's done? I never saw that. After getting past the kernel error, and running a second time, it just stops.
Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Freed 0B of disk space
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Hit http://archive.ubuntu.com hardy Release.gpg                                                                 
Ign http://packages.linuxmint.com elyssa Release.gpg                                                                                       
Hit http://archive.canonical.com hardy Release.gpg                                                                                             
Hit http://security.ubuntu.com hardy-security Release.gpg                                                                                       
Hit http://packages.medibuntu.org hardy Release.gpg                                                                                                         
Ign http://archive.ubuntu.com hardy/main Translation-en_US                                                                                                   
Ign http://packages.linuxmint.com elyssa/main Translation-en_US                                                                                 
Ign http://security.ubuntu.com hardy-security/main Translation-en_US                                                                             
Ign http://archive.canonical.com hardy/partner Translation-en_US                                                                             
Ign http://packages.medibuntu.org hardy/free Translation-en_US                                                                               
Ign http://archive.ubuntu.com hardy/restricted Translation-en_US                                                                                 
Ign http://packages.linuxmint.com elyssa/upstream Translation-en_US                                                                             
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US                                                                       
Ign http://archive.ubuntu.com hardy/universe Translation-en_US                                                                               
Hit http://archive.canonical.com hardy Release                                                                                                               
Ign http://packages.medibuntu.org hardy/non-free Translation-en_US                                                                                           
Ign http://packages.linuxmint.com elyssa/import Translation-en_US                                                                             
Ign http://archive.ubuntu.com hardy/multiverse Translation-en_US                                                                                 
Hit http://archive.canonical.com hardy/partner Packages                                                                                     
Hit http://packages.medibuntu.org hardy Release                                                                                             
Ign http://security.ubuntu.com hardy-security/universe Translation-en_US                                               
Ign http://packages.linuxmint.com elyssa/backport Translation-en_US                                                     
Hit http://archive.ubuntu.com hardy-updates Release.gpg                                                                   
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_US                                             
Hit http://packages.medibuntu.org hardy/free Packages                                                                   
Ign http://packages.linuxmint.com elyssa/community Translation-en_US                                                   
Ign http://archive.ubuntu.com hardy-updates/main Translation-en_US                                                                                         
Hit http://security.ubuntu.com hardy-security Release                                                                 
Hit http://packages.medibuntu.org hardy/non-free Packages                                                             
Ign http://packages.linuxmint.com elyssa/romeo Translation-en_US                                 
Ign http://archive.ubuntu.com hardy-updates/restricted Translation-en_US                             
Hit http://security.ubuntu.com hardy-security/main Packages                                         
Ign http://archive.ubuntu.com hardy-updates/universe Translation-en_US
Get:1 http://packages.linuxmint.com elyssa Release [7841B]                                       
Hit http://security.ubuntu.com hardy-security/restricted Packages                               
Ign http://archive.ubuntu.com hardy-updates/multiverse Translation-en_US                         
Ign http://packages.linuxmint.com elyssa/main Packages                                           
Hit http://security.ubuntu.com hardy-security/universe Packages     
Hit http://archive.ubuntu.com hardy-backports Release.gpg                                         
Ign http://packages.linuxmint.com elyssa/upstream Packages                                       
Ign http://packages.linuxmint.com elyssa/import Packages             
Ign http://packages.linuxmint.com elyssa/backport Packages           
Ign http://packages.linuxmint.com elyssa/community Packages         
Hit http://security.ubuntu.com hardy-security/multiverse Packages   
Ign http://packages.linuxmint.com elyssa/romeo Packages
Ign http://archive.ubuntu.com hardy-backports/main Translation-en_US
Hit http://packages.linuxmint.com elyssa/main Packages                                                                                                       
Ign http://archive.ubuntu.com hardy-backports/restricted Translation-en_US                                                                                   
Ign http://archive.ubuntu.com hardy-backports/universe Translation-en_US                                                                                     
Hit http://packages.linuxmint.com elyssa/upstream Packages                                                                                                   
Ign http://archive.ubuntu.com hardy-backports/multiverse Translation-en_US                                                                                   
Hit http://packages.linuxmint.com elyssa/import Packages                                                                                                     
Hit http://archive.ubuntu.com hardy-proposed Release.gpg                                                                                                     
Hit http://packages.linuxmint.com elyssa/backport Packages                                                                                                   
Ign http://archive.ubuntu.com hardy-proposed/main Translation-en_US                                                                                         
Hit http://packages.linuxmint.com elyssa/community Packages               
Ign http://archive.ubuntu.com hardy-proposed/restricted Translation-en_US     
Hit http://packages.linuxmint.com elyssa/romeo Packages                   
Ign http://archive.ubuntu.com hardy-proposed/universe Translation-en_US   
Ign http://archive.ubuntu.com hardy-proposed/multiverse Translation-en_US
Hit http://archive.ubuntu.com hardy Release         
Hit http://archive.ubuntu.com hardy-updates Release                       
Hit http://archive.ubuntu.com hardy-backports Release                     
Hit http://archive.ubuntu.com hardy-proposed Release                     
Hit http://archive.ubuntu.com hardy/main Packages                         
Hit http://archive.ubuntu.com hardy/restricted Packages
Hit http://archive.ubuntu.com hardy/universe Packages
Hit http://archive.ubuntu.com hardy/multiverse Packages
Hit http://archive.ubuntu.com hardy-updates/main Packages
Hit http://archive.ubuntu.com hardy-updates/restricted Packages
Hit http://archive.ubuntu.com hardy-updates/universe Packages
Hit http://archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://archive.ubuntu.com hardy-backports/main Packages
Hit http://archive.ubuntu.com hardy-backports/restricted Packages
Hit http://archive.ubuntu.com hardy-backports/universe Packages
Hit http://archive.ubuntu.com hardy-backports/multiverse Packages
Hit http://archive.ubuntu.com hardy-proposed/main Packages
Hit http://archive.ubuntu.com hardy-proposed/restricted Packages
Hit http://archive.ubuntu.com hardy-proposed/universe Packages
Hit http://archive.ubuntu.com hardy-proposed/multiverse Packages
Fetched 7841B in 1min1s (127B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done


If I hit enter it just reruns the above and stops again. Am I clean? :D
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Thu Jun 26, 2008 2:02 pm

67GTA and pjnsmb,

I am going to have to dig into this issue deeper. I haven't seen this before. The program is exiting because it has a situation it can't deal with.

If it doesn't exit on errors you should get the completed screen and then a graceful automatic close after 10 sec of display.

Exactly what version of Linux are you running it on? Have you upgraded anything. What I would like to do is set up an identical system and try to recreate the error on my end.

Any help would be appreciated.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby 67GTA on Thu Jun 26, 2008 2:18 pm

I'm running Elyssa Gnome with all repos enabled, and all updates applied through apt(not mintupdate). If you look in synaptic after install, the 2.6.22-14 kernel is listed under the "not installed" (residual config) section. Daryna had the same thing. I guess it is left over somehow from the process Clem uses to build Mint. If you try to remove it, apt complains that /lib/modules/2.6.22-14 isn't present and exits with an error(same error that . Upon checking /lib/modules, it only contains 2.6.24-16 & 19. This isn't really a problem with your script, but with apt not being able to remove the residual config for 2.6.22-14 because it wasn't removed cleanly and doesn't know how to resolve it. I manually created the 2.6.22-14 folder in /lib/modules, and the cleanup script (apt) removed it the second time, but stopped when it reached the point that I posted above. I know the 2.6.22 kernel was used early in Hardy development, but was removed from the repos later. You might have to ask Clem about the process he uses that causes this to be left over in each release.
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Thu Jun 26, 2008 2:23 pm

67GTA,

Ok... Thanks much. I still need to deal with it gracefully though. I am going to install plain Mint 5 Gnome now and see what needs to be done to work around this.

Thanks again.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby 67GTA on Thu Jun 26, 2008 2:39 pm

I ran the cleanup script on my lappy(exact same setup). I fixed and removed the 2.6.22-14 residual config before running the script. It keeps hanging(same as desktop after fixing 2.6.22-14 problem). It has been at the same place for 15 min with no HD activity. There were no errors except for some normal dpkg errors while removing 2.6.24-16 kernel.
Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  xserver-xorg-video-amd
The following packages will be REMOVED:
  xserver-xorg-video-amd
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 41.0kB disk space will be freed.
(Reading database ... 122091 files and directories currently installed.)
Removing xserver-xorg-video-amd ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done             
Del ttf-opensymbol 1:2.4.1~rc2-1ubuntu1 [332kB]
Del xserver-xorg-input-all 1:7.3+10ubuntu10.1 [1036B]
Del cpp 4:4.2.3-1ubuntu5 [34.5kB]
Del samba-common 3.0.28a-1ubuntu4.1 [2839kB]
Del libsmbclient 3.0.28a-1ubuntu4.1 [886kB]
Del libebook1.2-9 2.22.2-0ubuntu1 [79.6kB]
Del libldap-2.4-2 2.4.7-6ubuntu4.2 [181kB]
Del nvidia-glx-new-dev-envy 169.12+2.6.24.500-500.29 [160kB]
Del linux-ubuntu-modules-2.6.24-19-generic 2.6.24-19.27 [4606kB]
Del xserver-xorg 1:7.3+10ubuntu10.1 [180kB]
Del linux-libc-dev 2.6.24-19.33 [695kB]
Del libcamel1.2-11 2.22.2-0ubuntu1 [304kB]
Del libedataserver1.2-9 2.22.2-0ubuntu1 [113kB]
Del playonlinux 3.0.6 [818kB]
Del xorg 1:7.3+10ubuntu10.1 [1258B]
Del linux-image-2.6.24-19-generic 2.6.24-19.33 [18.4MB]
Del xutils 1:7.3+10ubuntu10.1 [1082B]
Del libegroupwise1.2-13 2.22.2-0ubuntu1 [107kB]
Del libedataserverui1.2-8 2.22.2-0ubuntu1 [77.3kB]
Del xserver-xorg-video-all 1:7.3+10ubuntu10.1 [1202B]
Del winbind 3.0.28a-1ubuntu4.1 [2247kB]
Del linux-headers-2.6.24-19 2.6.24-19.33 [8130kB]
Del openssl-blacklist 0.3.3+0.4-0ubuntu0.8.04.1 [6333kB]
Del libgdata1.2-1 2.22.2-0ubuntu1 [60.0kB]
Del libecal1.2-7 2.22.2-0ubuntu1 [242kB]
Del mintassistant 2.4 [10.7kB]
Del libglib2.0-0 2.16.3-1ubuntu2 [752kB]
Del smbclient 3.0.28a-1ubuntu4.1 [4862kB]
Del nvidia-glx-new-envy 169.12+2.6.24.500-500.29 [6394kB]
Del openssl-blacklist 0.1-0ubuntu0.8.04.4 [4237kB]
Del playonlinux 3.0.5 [813kB]
Del gnome-applets-data 2.22.2-0ubuntu1 [4224kB]
Del libasound2 1.0.16-0ubuntu0.1 [356kB]
Del libgdata-google1.2-1 2.22.2-0ubuntu1 [12.7kB]
Del gnome-applets 2.22.2-0ubuntu1 [189kB]
Del linux-headers-2.6.24-19-generic 2.6.24-19.33 [644kB]
Del xbase-clients 1:7.3+10ubuntu10.1 [1184B]
Del base-files 4.0.1ubuntu5.8.04.1 [59.9kB]
Del x11-common 1:7.3+10ubuntu10.1 [364kB]
Del libedata-cal1.2-6 2.22.2-0ubuntu1 [57.1kB]
Del evolution-data-server 2.22.2-0ubuntu1 [418kB]
Del libedata-book1.2-2 2.22.2-0ubuntu1 [47.6kB]
Del xserver-xorg-core 2:1.4.1~git20080131-1ubuntu9.1 [4076kB]
Del evolution-data-server-common 2.22.2-0ubuntu1 [74.3kB]
Del nvidia-new-kernel-source-envy 169.12+2.6.24.500-500.29 [2810kB]
Del gcc 4:4.2.3-1ubuntu5 [5086B]
Del openoffice.org-calc 1:2.4.1~rc2-1ubuntu1 [638kB]
Freed 77.9MB of disk space
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Hit http://archive.ubuntu.com hardy Release.gpg                                                                                       
Hit http://security.ubuntu.com hardy-security Release.gpg                                                                             
Hit http://archive.canonical.com hardy Release.gpg                                                                                                           
Ign http://packages.linuxmint.com elyssa Release.gpg                                                                                                         
Hit http://playonlinux.botux.net hardy Release.gpg                                                                                                           
Hit http://packages.medibuntu.org hardy Release.gpg                                                                                                         
Ign http://archive.ubuntu.com hardy/main Translation-en_US                                                                                                   
Ign http://archive.canonical.com hardy/partner Translation-en_US                                                                       
Ign http://security.ubuntu.com hardy-security/main Translation-en_US                                                                   
Ign http://playonlinux.botux.net hardy/main Translation-en_US                                                                                               
Ign http://packages.linuxmint.com elyssa/main Translation-en_US                                                                                             
Ign http://packages.medibuntu.org hardy/free Translation-en_US                                                                                               
Hit http://archive.canonical.com hardy Release                                                                                                               
Ign http://archive.ubuntu.com hardy/restricted Translation-en_US                                                                       
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US                                                                                   
Ign http://packages.medibuntu.org hardy/non-free Translation-en_US                                               
Ign http://packages.linuxmint.com elyssa/upstream Translation-en_US                                                                                         
Hit http://playonlinux.botux.net hardy Release                                                                                                               
Ign http://archive.ubuntu.com hardy/universe Translation-en_US                                                                                               
Hit http://archive.canonical.com hardy/partner Packages                                                                                                     
Ign http://security.ubuntu.com hardy-security/universe Translation-en_US                                                                                     
Ign http://playonlinux.botux.net hardy/main Packages                                                                                         
Hit http://packages.medibuntu.org hardy Release                                                                                               
Ign http://packages.linuxmint.com elyssa/import Translation-en_US                                             
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_US                                                                     
Ign http://archive.ubuntu.com hardy/multiverse Translation-en_US                                                                             
Hit http://playonlinux.botux.net hardy/main Packages                                                                                         
Hit http://archive.ubuntu.com hardy-updates Release.gpg                                                                                     
Hit http://security.ubuntu.com hardy-security Release                                     
Hit http://packages.medibuntu.org hardy/free Packages                                     
Ign http://packages.linuxmint.com elyssa/backport Translation-en_US                       
Ign http://archive.ubuntu.com hardy-updates/main Translation-en_US                                                       
Hit http://security.ubuntu.com hardy-security/main Packages                                                           
Ign http://packages.linuxmint.com elyssa/community Translation-en_US                       
Hit http://packages.medibuntu.org hardy/non-free Packages                                                                 
Ign http://archive.ubuntu.com hardy-updates/restricted Translation-en_US                                                   
Hit http://security.ubuntu.com hardy-security/restricted Packages                               
Ign http://packages.linuxmint.com elyssa/romeo Translation-en_US                                                             
Ign http://archive.ubuntu.com hardy-updates/universe Translation-en_US                               
Hit http://security.ubuntu.com hardy-security/universe Packages                                 
Get:1 http://packages.linuxmint.com elyssa Release [7841B]                                       
Ign http://packages.linuxmint.com elyssa/main Packages                                           
Ign http://archive.ubuntu.com hardy-updates/multiverse Translation-en_US
Hit http://security.ubuntu.com hardy-security/multiverse Packages                               
Ign http://packages.linuxmint.com elyssa/upstream Packages                                       
Ign http://packages.linuxmint.com elyssa/import Packages
Ign http://packages.linuxmint.com elyssa/backport Packages
Ign http://packages.linuxmint.com elyssa/community Packages
Hit http://archive.ubuntu.com hardy-backports Release.gpg
Ign http://packages.linuxmint.com elyssa/romeo Packages                   
Hit http://packages.linuxmint.com elyssa/main Packages                                                                                                       
Ign http://archive.ubuntu.com hardy-backports/main Translation-en_US                                                                                         
Ign http://archive.ubuntu.com hardy-backports/restricted Translation-en_US                                                                                   
Hit http://packages.linuxmint.com elyssa/upstream Packages                                                                                                   
Ign http://archive.ubuntu.com hardy-backports/universe Translation-en_US                                                                                     
Hit http://packages.linuxmint.com elyssa/import Packages                                                                                                     
Ign http://archive.ubuntu.com hardy-backports/multiverse Translation-en_US                                                                                   
Hit http://packages.linuxmint.com elyssa/backport Packages                                                                                                   
Hit http://archive.ubuntu.com hardy-proposed Release.gpg                                                                                                     
Hit http://packages.linuxmint.com elyssa/community Packages               
Ign http://archive.ubuntu.com hardy-proposed/main Translation-en_US                                       
Hit http://packages.linuxmint.com elyssa/romeo Packages                   
Ign http://archive.ubuntu.com hardy-proposed/restricted Translation-en_US 
Ign http://archive.ubuntu.com hardy-proposed/universe Translation-en_US
Ign http://archive.ubuntu.com hardy-proposed/multiverse Translation-en_US
Hit http://archive.ubuntu.com hardy Release         
Hit http://archive.ubuntu.com hardy-updates Release                       
Hit http://archive.ubuntu.com hardy-backports Release                     
Hit http://archive.ubuntu.com hardy-proposed Release                     
Hit http://archive.ubuntu.com hardy/main Packages                         
Hit http://archive.ubuntu.com hardy/restricted Packages
Hit http://archive.ubuntu.com hardy/universe Packages
Hit http://archive.ubuntu.com hardy/multiverse Packages
Hit http://archive.ubuntu.com hardy-updates/main Packages
Hit http://archive.ubuntu.com hardy-updates/restricted Packages
Hit http://archive.ubuntu.com hardy-updates/universe Packages
Hit http://archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://archive.ubuntu.com hardy-backports/main Packages
Hit http://archive.ubuntu.com hardy-backports/restricted Packages
Hit http://archive.ubuntu.com hardy-backports/universe Packages
Hit http://archive.ubuntu.com hardy-backports/multiverse Packages
Hit http://archive.ubuntu.com hardy-proposed/main Packages
Hit http://archive.ubuntu.com hardy-proposed/restricted Packages
Hit http://archive.ubuntu.com hardy-proposed/universe Packages
Hit http://archive.ubuntu.com hardy-proposed/multiverse Packages
Fetched 7841B in 1min5s (119B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
The following packages will be REMOVED:
  linux-headers-2.6.24-16{p} linux-headers-2.6.24-16-generic{p} linux-image-2.6.24-16-generic{p} linux-restricted-modules-2.6.24-16-generic{p}
  linux-ubuntu-modules-2.6.24-16-generic{p}
0 packages upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 193MB will be freed.
Writing extended state information... Done
(Reading database ... 122086 files and directories currently installed.)
Removing linux-headers-2.6.24-16-generic ...
Removing linux-headers-2.6.24-16 ...
Removing linux-restricted-modules-2.6.24-16-generic ...
Purging configuration files for linux-restricted-modules-2.6.24-16-generic ...
Removing linux-ubuntu-modules-2.6.24-16-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.24-16-generic
Purging configuration files for linux-ubuntu-modules-2.6.24-16-generic ...
Removing linux-image-2.6.24-16-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
 you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
 you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-2.6.24-16-generic ...
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

rmdir: failed to remove `/lib/modules/2.6.24-16-generic': Directory not empty
dpkg - warning: while removing linux-image-2.6.24-16-generic, directory `/lib/modules/2.6.24-16-generic/kernel/drivers/video/nvidia' not empty so not removed.
dpkg - warning: while removing linux-image-2.6.24-16-generic, directory `/lib/modules/2.6.24-16-generic/kernel/drivers/video' not empty so not removed.
dpkg - warning: while removing linux-image-2.6.24-16-generic, directory `/lib/modules/2.6.24-16-generic/kernel/drivers/input/misc' not empty so not removed.
dpkg - warning: while removing linux-image-2.6.24-16-generic, directory `/lib/modules/2.6.24-16-generic/kernel/drivers/input' not empty so not removed.
dpkg - warning: while removing linux-image-2.6.24-16-generic, directory `/lib/modules/2.6.24-16-generic/kernel/drivers' not empty so not removed.
dpkg - warning: while removing linux-image-2.6.24-16-generic, directory `/lib/modules/2.6.24-16-generic/kernel' not empty so not removed.
dpkg - warning: while removing linux-image-2.6.24-16-generic, directory `/lib/modules/2.6.24-16-generic' not empty so not removed.
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done             
libgtkspell0 libgnome2.0-cil gstreamer0.10-plugins-bad-multiverse libgtkhtml3.16-cil libgtk-vnc-1.0-0 mozilla-thunderbird libdecoration0 bogofilter libdebconfclient0 libhsqldb-java libcurl3 libgadu3 gstreamer0.10-plugins-ugly-multiverse libgmime2.2-cil libxalan2-java liblpint-bonobo0 libpt-1.10.10 libmeanwhile1 gvfs-fuse libwpd8c2a
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby 67GTA on Thu Jun 26, 2008 2:55 pm

I closed the terminal after 25 min, and restarted cleanout. It does the same thing as the desktop at this point. Not sure which part it is hanging on. Hope this helps.

Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Freed 0B of disk space
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Hit http://archive.ubuntu.com hardy Release.gpg                                                                                       
Hit http://security.ubuntu.com hardy-security Release.gpg                                                                                                   
Hit http://archive.canonical.com hardy Release.gpg                                                                                                           
Hit http://playonlinux.botux.net hardy Release.gpg                                                                                                           
Ign http://packages.linuxmint.com elyssa Release.gpg                                                                                                         
Hit http://packages.medibuntu.org hardy Release.gpg                                                                                                         
Ign http://archive.ubuntu.com hardy/main Translation-en_US                                                                                                   
Ign http://archive.canonical.com hardy/partner Translation-en_US                                                                                             
Ign http://security.ubuntu.com hardy-security/main Translation-en_US                                                                                         
Ign http://playonlinux.botux.net hardy/main Translation-en_US                                                                                               
Ign http://packages.linuxmint.com elyssa/main Translation-en_US                                                                                             
Ign http://packages.medibuntu.org hardy/free Translation-en_US                                                                                               
Ign http://archive.ubuntu.com hardy/restricted Translation-en_US                                                                                             
Hit http://archive.canonical.com hardy Release                                                                                                               
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US                                                                                   
Ign http://packages.linuxmint.com elyssa/upstream Translation-en_US                                                                                         
Hit http://playonlinux.botux.net hardy Release                                                                                                               
Ign http://packages.medibuntu.org hardy/non-free Translation-en_US                                                                                           
Ign http://archive.ubuntu.com hardy/universe Translation-en_US                                                                                               
Ign http://security.ubuntu.com hardy-security/universe Translation-en_US                                                                                     
Hit http://archive.canonical.com hardy/partner Packages                                                                                                     
Ign http://packages.linuxmint.com elyssa/import Translation-en_US                                                                                           
Ign http://archive.ubuntu.com hardy/multiverse Translation-en_US                                                                                 
Ign http://playonlinux.botux.net hardy/main Packages                                                                                         
Hit http://packages.medibuntu.org hardy Release                                                                                             
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_US                                                 
Ign http://packages.linuxmint.com elyssa/backport Translation-en_US                                                                           
Hit http://archive.ubuntu.com hardy-updates Release.gpg                                                                                         
Hit http://playonlinux.botux.net hardy/main Packages                                                                                         
Hit http://packages.medibuntu.org hardy/free Packages                                                                                       
Hit http://security.ubuntu.com hardy-security Release                                     
Ign http://packages.linuxmint.com elyssa/community Translation-en_US                     
Ign http://archive.ubuntu.com hardy-updates/main Translation-en_US                                                         
Hit http://security.ubuntu.com hardy-security/main Packages                                                           
Hit http://packages.medibuntu.org hardy/non-free Packages                                                             
Ign http://packages.linuxmint.com elyssa/romeo Translation-en_US     
Ign http://archive.ubuntu.com hardy-updates/restricted Translation-en_US                             
Hit http://security.ubuntu.com hardy-security/restricted Packages                                   
Get:1 http://packages.linuxmint.com elyssa Release [7841B]                                       
Ign http://archive.ubuntu.com hardy-updates/universe Translation-en_US                           
Ign http://packages.linuxmint.com elyssa/main Packages                                           
Hit http://security.ubuntu.com hardy-security/universe Packages     
Ign http://archive.ubuntu.com hardy-updates/multiverse Translation-en_US                         
Ign http://packages.linuxmint.com elyssa/upstream Packages                                                                                                   
Ign http://packages.linuxmint.com elyssa/import Packages                                                                                                     
Ign http://packages.linuxmint.com elyssa/backport Packages                                                                                                   
Ign http://packages.linuxmint.com elyssa/community Packages                                                                                                 
Hit http://security.ubuntu.com hardy-security/multiverse Packages                                                                                           
Ign http://packages.linuxmint.com elyssa/romeo Packages                                                                                                     
Hit http://packages.linuxmint.com elyssa/main Packages                                                                                                       
Hit http://archive.ubuntu.com hardy-backports Release.gpg                                                                                                   
Ign http://archive.ubuntu.com hardy-backports/main Translation-en_US                                                                                         
Hit http://packages.linuxmint.com elyssa/upstream Packages                                                                                                   
Hit http://packages.linuxmint.com elyssa/import Packages                                                                                                     
Ign http://archive.ubuntu.com hardy-backports/restricted Translation-en_US                                                                                   
Hit http://packages.linuxmint.com elyssa/backport Packages                                                                                                   
Ign http://archive.ubuntu.com hardy-backports/universe Translation-en_US                                                                                     
Hit http://packages.linuxmint.com elyssa/community Packages                                                                                                 
Ign http://archive.ubuntu.com hardy-backports/multiverse Translation-en_US                                                                                   
Hit http://packages.linuxmint.com elyssa/romeo Packages                   
Hit http://archive.ubuntu.com hardy-proposed Release.gpg                   
Ign http://archive.ubuntu.com hardy-proposed/main Translation-en_US
Ign http://archive.ubuntu.com hardy-proposed/restricted Translation-en_US
Ign http://archive.ubuntu.com hardy-proposed/universe Translation-en_US
Ign http://archive.ubuntu.com hardy-proposed/multiverse Translation-en_US
Hit http://archive.ubuntu.com hardy Release         
Hit http://archive.ubuntu.com hardy-updates Release                       
Hit http://archive.ubuntu.com hardy-backports Release                     
Hit http://archive.ubuntu.com hardy-proposed Release                     
Hit http://archive.ubuntu.com hardy/main Packages                         
Hit http://archive.ubuntu.com hardy/restricted Packages
Hit http://archive.ubuntu.com hardy/universe Packages
Hit http://archive.ubuntu.com hardy/multiverse Packages
Hit http://archive.ubuntu.com hardy-updates/main Packages
Hit http://archive.ubuntu.com hardy-updates/restricted Packages
Hit http://archive.ubuntu.com hardy-updates/universe Packages
Get:2 http://archive.ubuntu.com hardy-updates/multiverse Packages [12.0kB]
Hit http://archive.ubuntu.com hardy-backports/main Packages
Hit http://archive.ubuntu.com hardy-backports/restricted Packages
Hit http://archive.ubuntu.com hardy-backports/universe Packages
Hit http://archive.ubuntu.com hardy-backports/multiverse Packages                                                                                           
Hit http://archive.ubuntu.com hardy-proposed/main Packages                                                                                                   
Hit http://archive.ubuntu.com hardy-proposed/restricted Packages                                                                                             
Hit http://archive.ubuntu.com hardy-proposed/universe Packages                                                                                               
Hit http://archive.ubuntu.com hardy-proposed/multiverse Packages                                                                                             
Fetched 19.9kB in 1min11s (278B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Thu Jun 26, 2008 8:31 pm

67GTA,

Well, I have been playing with this for over 2 hours now and still can't get it to hang! Jeeze, don't you love it when that happens. lol

I tried to duplicate your setup as best I could. On a fresh install of Mint 5 I ran the cleanout script. It choked on the 2.6.22 kernel but recovered and continued on through the script to the end. It just couldn't remove the rest of the old kernel files, as you already pointed out.

I then did an apt-get -y upgrade. Tried again, still had the problem with the 2.6.22 kernel remnants but otherwise it worked correctly and pulled a few other orphaned files, as expected.

Did you use:

chmod 755 /home/*/.ShellScripts/cleanout

to set the permissions?

and

sudo cp -a /home/*/.ShellScripts/cleanout /usr/bin

to put it in /usr/bin ?

You aren't by chance trying to use gksu or sudo are you? It should be started as a user. Type as a user "cleanout" in a terminal, without the quotes, to start it.

Scratching my head. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby 67GTA on Thu Jun 26, 2008 9:15 pm

I followed all of the setup instructions in the cleanout file. I actually copied and pasted them into the terminal. I start it as user, and then it asks for my password. It will probably be something obvious when we find it. I will go through the script later tonight and see exactly what it is attempting to do. It may be something I've modified on my end. I'm trying to finish up my opensuse 11 install right now.
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Thu Jun 26, 2008 9:31 pm

No, I don't want to interfere with your other stuff. Just when and if you get a chance. :-)

Thanks,

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby 67GTA on Thu Jun 26, 2008 10:45 pm

I wasn't trying to be a smarty pants. I had just started the install when I got your last message. I got it done now. I always share the HD with opensuse KDE :D I got the script to finish, but only by hitting enter when it seemed to hang. Between each command in the script it would stop and seem to hang indefinitely until I hit enter, and it would go on to the next. It cleaned everything out though :D I thought it would be a simple problem, but now I'm more confused. I don't have any idea why that would happen. My desktop and laptop both have fast dual procs, and both have 3GB RAM. I know it isn't a speed issue. I tried it while using the Mint 5 live CD just for kicks, and it worked like a dream. You don't realize how much junk is hiding in the corners. One thought I had was that you might give a warning about it cleaning the apt archives in case someone who doesn't know any better wants to make a backup of their packages with aptoncd. They will have to do it before the script cleans out the apt archives.
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby newW2 on Mon Jun 30, 2008 12:06 am

Fred,

Your script saved me from my - playing till I broke it - weekend.

Thanks Fred!
:D :D :D :D :D :D :D :D :D
User avatar
newW2
Level 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby eeezzzeee on Mon Aug 18, 2008 1:45 am

I have a question. I am running this script (the standalone cleanup script), and when I type cleanout in the terminal, the terminal without prompting me for a password drops me to a root prompt. Then if i type cleanout again it goes through the process. I am just wondering if that is supposed to happen or am I receiving an unexpected feature with the script?
"If it's stupid and it works.... it's not stupid"
User avatar
eeezzzeee
Level 3
Level 3
 
Posts: 160
Joined: Sun Feb 10, 2008 9:28 pm

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Mon Aug 18, 2008 2:47 am

eeezzzeee,

No, shouldn't be an unexpected feature. The script has to run in root to do most of the tasks that it does. Remember that sudo can give you root privileges. Those privileges will stay in force in the terminal for some period of time, 5 or 10 min. I think, and you will then have to reenter your password to do root tasks. I suspect you had used sudo in the terminal in that time that sudo was active so you didh't have to reenter your password to continue as root.

The script sets the root environment instead of your user environment. When the root environment is set with sudo power it is persistent until the script ends, even if it takes longer than the 5 or 10 min. max. time. It is probably unusual for you to see a true root prompt instead of the user prompt. This is because when you use sudo the default is to use the user environment as root instead of the root environment.

Hope that wasn't too confusing. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby eeezzzeee on Mon Aug 18, 2008 1:32 pm

Thats exactly what had happened. I should have realized that before I posted. Would this script work on a debian or ubuntu box without adjustment, or is it written for use on a mint system?
Thanks for the reply and the script.
"If it's stupid and it works.... it's not stupid"
User avatar
eeezzzeee
Level 3
Level 3
 
Posts: 160
Joined: Sun Feb 10, 2008 9:28 pm

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Mon Aug 18, 2008 3:38 pm

eeezzzeee,

You should be able to use this on any Debian or derivative system that has sudo loaded on the system. I thought about modifying it so it didn't need to use sudo but haven't done it.

There are a couple other issues that need attention too. There have been a couple reports that while in one of the loops it stops and you have to hit enter to get it to continue. It seems to be hardware related. I haven't been able to duplicate the problem on my end but I suspect it is a timing issue with a spawned process.

The other problem is with Deborphan. Even though I have it running in a low aggressiveness mode it is still possible for some badly packaged deb codecs to be removed. This has not been a problem with Mint as Clem has done his homework, but it is a theoretical risk when using downloaded codecs of poor packaging quality. The only way I know to get around this is to generate a safe list of any codec packages that have this problem and hold them back from removal. But I haven't done this yet either.

I hope it is useful to you. If you have any problems with it or any suggestions please pass them back to me.

Thanks,

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby eeezzzeee on Mon Aug 18, 2008 8:30 pm

Fred Thanks for the info. I haven't had any problems with the script stopping and everything seems to still work fine. Although after I ran it the next time I booted my computer my conky script didn't load. I readded it to my start programs and it came back fine. My Debian setup is located in a virtualbox, I have just been using it to learn on, so if the script were to do something to it wouldn't cause me any major problems, maybe jsut make another learning experience.
"If it's stupid and it works.... it's not stupid"
User avatar
eeezzzeee
Level 3
Level 3
 
Posts: 160
Joined: Sun Feb 10, 2008 9:28 pm

Linux Mint is funded by ads and donations.
 
PreviousNext

Return to Tutorials / Howtos

Who is online

Users browsing this forum: mturei and 11 guests