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

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
User avatar
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

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
67GTA
Level 6
Level 6
Posts: 1300
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

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

Post by 67GTA »

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
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

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
67GTA
Level 6
Level 6
Posts: 1300
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

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

Post by 67GTA »

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: 1300
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

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

Post by 67GTA »

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
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

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
67GTA
Level 6
Level 6
Posts: 1300
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

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

Post by 67GTA »

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
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

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
67GTA
Level 6
Level 6
Posts: 1300
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

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

Post by 67GTA »

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
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

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

Post by newW2 »

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
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!

Post by eeezzzeee »

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
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

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
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!

Post by eeezzzeee »

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
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

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
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!

Post by eeezzzeee »

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"
plevans
Level 1
Level 1
Posts: 41
Joined: Wed Apr 29, 2009 7:28 pm

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

Post by plevans »

Hi Fred,

When I run the script and select 'No' when asked 'Do you wish to restore your files?' the terminal window closes. Being a Linux newbie, I have no idea where to go from here.

I am using Gloria with GNOME 2.26.1.

Help!

Patti
User avatar
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

plevans,

At first glance it appears you may have made a mistake in the configuration section. Please post what you have in the first part of the file, down to the section below.

# # Begin - Begin --- Don't change anything below this line.
#
# ==========================================
#
# # Begin - Begin --- Start of Restore Utility v 1.4b by Fred

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.
plevans
Level 1
Level 1
Posts: 41
Joined: Wed Apr 29, 2009 7:28 pm

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

Post by plevans »

Code: Select all

# Change the folders mounted to other partitions below to
# indicate the data partitions and folders in your /home
# directory that you don't want backed up. You can exclude
# up to 5 folders/partitions from back-up. Always exclude
# the back-up folder if mounted in your /home. If you do
# not have data or back-up partitions mounted in your
# /home this doesn't apply to you. Put "no" in all 5
# positions.

fldr1="no"
fldr2="no"
fldr3="no"
fldr4="no"
fldr5="no"

# Set the mounting partitions that correspond to any data
# folders in your /home above, that are being excluded.
# If you do not have data or back-up partitions mounted in
# your /home this doesn't apply to you. Put "no" in all 5
# positions.

prtn1="no"
prtn2="no"
prtn3="no"
prtn4="no"
prtn5="no"

# If you wish to disable the clean-up portion of this script,
# change the "no" entry for skip to "yes".

skip="no"

# If you have a Windows install or another Linux install
# you want to back-up, enter the partition designator, sdxx,
# of your other install below. Enter "no" if you don't have
# another install or you don't wish to back it up.

win="no"

# If you are backing up another install above and wish to
# back-up a recovery partition or a /home partition. Enter
# the partition designator below in the form "sdxx" or "no".

winr="no"

# Do you want to automatically back-up your another install
# every time the back-up script runs? Enter "yes" below for
# automatic or "no" to be given a choice each time, or if
# you aren't backing up another install.

winrun="no"

# Do you want to automatically back-up your Windows Recovery
# partition or another /home partition every time the back-up
# script runs? Enter "yes" below for automatic or "no" to be
# given a choice each time, or if you aren't backing up
# Windows Recovery or another /home partition.

winrrun="no"

# NOTE!: Make sure your Linux system has read/write access
# to your Windows partition and your Windows Recovery
# partition through /media/sdxx for both partitions before
# running the script and attempting to back-up or restore
# Windows or Windows Recovery.

# Set the 3 days of the week you wish to run the backup.
# I use Monday, Thursday, and Saturday. You can set all
# 3 to the same day if you only want to run it once a week.

bak1="Mon"
bak2="Thu"
bak3="Sat"

# If you want it to run anytime the script is called, put
# "anytime" in bak4 below. "stop" will prevent the back-up
# and clean-up portion of this script from running except
# on the 3 days a week specified above. 

bak4="anytime"

# The Restore portion of the routine will run whenever
# bakclean is run, regardless of the settings above.

# Create folders on your back-up partition to hold your
# back-up data and files. You can create a master folder
# to hold all of these folders if you want. Create folders
# on your back-up partition sdxx. Change them if you wish.
# Note! -- No spaces allowed in folder names. You must
# back-up and create folders for dataBF and configBF. Enter
# "none" for any folders you choose not to back-up. If you
# are not backing up Windows or Windows recovery, put "none"
# in those two entries also. I called mine:

dataBF="BackUpData"
configBF="BackUpConfig"
usrBF="BackUpUsr"
etcBF="BackUpEtc"
bootBF="BackUpBoot"
binBF="BackUpBin"
sbinBF="BackUpSbin"
libBF="BackUpLib"
devBF="BackUpDev"
varBF="BackUpVar"
winBF="BackDenRoot"; # winBF could be "WindowsXP";
winrBF="BackDenHome"; # winrBF could be "WinRecovery";

# You only have to create folders for dataBF and configBF.
# All the others are optional. If you don't wish to back
# other folders up enter "none" for each.

# Do you have or want a master back-up folder on your back-up
# partition that contains all the back-up folders above? 
# If so, what is it's name? Enter "no" or "folder_name".

bakM="MasterBackUp"

# Would you like the script to make these back-up storage
# folders for you? Enter "yes" or "no" below.

makeBF="yes"

# Put your back-up partition designator in below.

bakP="sdd1"
User avatar
Fred
Level 10
Level 10
Posts: 3337
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Post by Fred »

plevans,

The only thing that I saw that appeared incorrect is the creation of the two folders below. This should probably be "none" since it appears you are not backing up Windows or another install.

winBF="BackDenRoot"; # winBF could be "WindowsXP";
winrBF="BackDenHome"; # winrBF could be "WinRecovery";

should be:

winBF="none"; # winBF could be "WindowsXP";
winrBF="none"; # winrBF could be "WinRecovery";

Check and make sure all the information is correct for your system.

Having said that, it probably shouldn't have caused the routine to crash. Correct this and see if anything changes. Does it give you any kind of error message? Does it crash on the first screen, second screen? What exactly does the last screen you see say?

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.
plevans
Level 1
Level 1
Posts: 41
Joined: Wed Apr 29, 2009 7:28 pm

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

Post by plevans »

I neglected to say in my original post that I ran the script originally with this configuration:

Code: Select all

# Change the folders mounted to other partitions below to
# indicate the data partitions and folders in your /home
# directory that you don't want backed up. You can exclude
# up to 5 folders/partitions from back-up. Always exclude
# the back-up folder if mounted in your /home. If you do
# not have data or back-up partitions mounted in your
# /home this doesn't apply to you. Put "no" in all 5
# positions.

fldr1="no"
fldr2="no"
fldr3="no"
fldr4="no"
fldr5="no"

# Set the mounting partitions that correspond to any data
# folders in your /home above, that are being excluded.
# If you do not have data or back-up partitions mounted in
# your /home this doesn't apply to you. Put "no" in all 5
# positions.

prtn1="no"
prtn2="no"
prtn3="no"
prtn4="no"
prtn5="no"

# If you wish to disable the clean-up portion of this script,
# change the "no" entry for skip to "yes".

skip="no"

# If you have a Windows install or another Linux install
# you want to back-up, enter the partition designator, sdxx,
# of your other install below. Enter "no" if you don't have
# another install or you don't wish to back it up.

win="no"

# If you are backing up another install above and wish to
# back-up a recovery partition or a /home partition. Enter
# the partition designator below in the form "sdxx" or "no".

winr="no"

# Do you want to automatically back-up your another install
# every time the back-up script runs? Enter "yes" below for
# automatic or "no" to be given a choice each time, or if
# you aren't backing up another install.

winrun="no"

# Do you want to automatically back-up your Windows Recovery
# partition or another /home partition every time the back-up
# script runs? Enter "yes" below for automatic or "no" to be
# given a choice each time, or if you aren't backing up
# Windows Recovery or another /home partition.

winrrun="no"

# NOTE!: Make sure your Linux system has read/write access
# to your Windows partition and your Windows Recovery
# partition through /media/sdxx for both partitions before
# running the script and attempting to back-up or restore
# Windows or Windows Recovery.

# Set the 3 days of the week you wish to run the backup.
# I use Monday, Thursday, and Saturday. You can set all
# 3 to the same day if you only want to run it once a week.

bak1="Mon"
bak2="Thu"
bak3="Sat"

# If you want it to run anytime the script is called, put
# "anytime" in bak4 below. "stop" will prevent the back-up
# and clean-up portion of this script from running except
# on the 3 days a week specified above. 

bak4="anytime"

# The Restore portion of the routine will run whenever
# bakclean is run, regardless of the settings above.

# Create folders on your back-up partition to hold your
# back-up data and files. You can create a master folder
# to hold all of these folders if you want. Create folders
# on your back-up partition sdxx. Change them if you wish.
# Note! -- No spaces allowed in folder names. You must
# back-up and create folders for dataBF and configBF. Enter
# "none" for any folders you choose not to back-up. If you
# are not backing up Windows or Windows recovery, put "none"
# in those two entries also. I called mine:

dataBF="data"
configBF=config"
usrBF="none"
etcBF="none"
bootBF="none"
binBF="none"
sbinBF="none"
libBF="none"
devBF="none"
varBF="none"
winBF="none"; # winBF could be "WindowsXP";
winrBF="none"; # winrBF could be "WinRecovery";

# You only have to create folders for dataBF and configBF.
# All the others are optional. If you don't wish to back
# other folders up enter "none" for each.

# Do you have or want a master back-up folder on your back-up
# partition that contains all the back-up folders above? 
# If so, what is it's name? Enter "no" or "folder_name".

bakM="LinuxBackUp"

# Would you like the script to make these back-up storage
# folders for you? Enter "yes" or "no" below.

makeBF="no"

# Put your back-up partition designator in below.

bakP="sdd1"
At this point I really can't remember how far it got when I ran it, but the 2 backup folders I had created were empty.

So I decided to revert everything to the default settings except the changes I noted in the first code I posted. The first screen to come up is the 'Alert! Do You wish to continue with the Restore Utility? Do you wish to restore your files?'. When I select 'No', the terminal window closes.

When I corrected the creation of the two Windows folders which I had overlooked, then ran the script again I got the same results.
Post Reply

Return to “Tutorials”