Warning Warning Will Robinson !!!! strange linux instructions approaching and usual disclaimers of all responsibility. last edited Oct 8 2012
( click on images below for larger ones ) 
This page was about themes but has be seconded to be a page about backing up ...... first partition your ATA OCTANE SSD to the 4 divisions below ) you may need help as it sometimes complains about 4 being to many so create a extended part as shown below in disk tool ( should use gparted for that as I trust that more and have more experience in it ) you may need to resize the extended first if it is there, giving
 you enough space to resize any daughter drives (logical drives).

Note also you should back up to a EXTERNAL drive for data security i just do it
this way so save on software errors but wont protect you from hard drive failures.

Just use this below for a simple inexpensive solution to back up your Ubuntu file systems first to a SSD drive mounted device called preciseBak you should make the directory for the mounted filesystem to reside on your system 

Unmount ( umount command ) anything else in that folder ( /media ) that you may have there in case of script errors. ( less chance of a segmentation fault if you back up what you are supposed to be locating or doing a infinite loop in programmer terms that will call this error message )

 mkdir /media/preciseBak and then 

mount /dev/sda6 /media/preciseBak ( sda6 was the last part created under the extended in the pic above )

First command to build system

mkfs.ext4 /dev/sdf1  ( to make a filesystem on the device make sure you have the right device! you can find it using disk utility i put all my test drives behind a hub so you can less easily make a mistake .... here is one defined as a peripheral device called Generic USB Storage SDC confusedly termed as it is actually /dev/sdf1 here so don't make a error when executing it on the command line later )

don't forget to cd to the root ( for some reason it doesn't work ... bug with find command if not in root dir or bug in me :)

cd /

( this next command is the vegetarian soy sausage in the sandwich .... it uses the find command to locate each file on the system and pipes that information to the cpio command which then does the copying.  Note you need the brackets in the line exactly as below as they help find avoid the media directory and stop infinite loop happening and the -xdev switch stops copying of special system devices like null that will cause problems to cpio )

Command ( if the next line is on 2 lines it is one line command )

 find . -xdev -type d \( -name media -o  -name backups \) -prune -o -print | cpio -p /media/preciseBak/

the ( -name media ) makes sure cpio doesn't loop endlessly by copying from media directory

OR ( not both commands .....the  next command does it to a file instead of media directory mounted drive )

tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/media --exclude=/sys /


you may get errors like this in cpio command ..

cpio: ./home/stevenxyz/.abc: Cannot stat: Permission denied

thats ok to ignore them they may not be able to be copied ( program config files you may have to copy using a special user permission )

After copy extras and all in one copies

This will copy all devices ( special system files the OS needs to start running things like solid state drives etc that mkfs doesn't do they are all prefixed with the letters sd ( scsi device )

  cp -dpR /dev/sd* /media/MavMeerkatBackup/dev 


 cp -dpR /dev/tt* /media/MavMeerkatBackup/dev 

 for all your coms devices like a modem to get you online again and out of trouble :)


or to do the thing in one command try the remote synchronise command rsync

rsync -avxW --progress / /media/newdisk
note this is pretty useless though as it gets into a loop baking up it's own
media directory so the next one is advised ( note all paths are relative so make sure you cd into the root ( cd / ) first.
rsync -aAXv /* /path/to/backup/folder --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
# gedit /path/to/backup/etc/fstab
tmpfs        /tmp          tmpfs     nodev,nosuid             0   0

/dev/sdb1    /             ext4      defaults                 0   1

Testing procedures and waiting game ( read warzone 2100 build instructions epic tome or have a cup of coffee time :)

now use the command

 grub-install   ( drive ) then

update-grub   (drive..... note i had to reboot into 10.04 to get this correctly done to order it correctly relative to the bios order of drives you can avoid this complexity by just updating it to all the drives using update-grub sda update-grub sdb etc for all your drives.... remember to order your bios boot to reflect the new list of drives if not done this way ........ if you don't know what i mean skip that ....... but be aware that your automatically generated  script using update-grub may not list the drives correctly and a possible debug option for later  )

Generating grub.cfg ... ( note output below is incorrect see note above there should be 2 times 12.04 like the 10.04 entries as sda6 is missing due to me not ordering the bios list before generating the grub list  )

( output from update-grub script from command line as follows )

Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae

Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae

Found memtest86+ image: /boot/memtest86+.bin

Found Ubuntu 10.04 LTS (10.04) on /dev/sda1

Found Ubuntu 10.04 LTS (10.04) on /dev/sda2

Found Ubuntu 12.04 LTS (12.04) on /dev/sda6


oh and do this for grub 2
  •  $ ls -l /dev/disk/by-uuid/
  • Edit the file /boot/grub/menu.lst. Change the UUID of the appropriate entries at the bottom of the file to the new one.

sudo add-apt-repository ppa:ricotz/testing 

To Install Gnome Shell on Ubuntu 12.04 (Press Ctrl+Alt+T) and copy the following commands in the Terminal:
To Install Gnome Shell on Ubuntu 12.04 (Press Ctrl+Alt+T

sudo add-apt-repository ppa:ricotz/testing 
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update && sudo apt-get dist-upgrade

sudo apt-get install gnome-shell gnome-tweak-tool

now you have Gnome shell then logout and login to find the screen with
your login name and see the gear wheel click on that and select gnome ( no effects) first and set
the panel properties by holding Alt and then right click on the panel at the top to
select autohide if you want to use it on something like a notebook

http://www.noobslab.com/2011/11/themes-collection-for-ubuntu-1110-unity.html TO GET THEMES

To organise the window gadgets terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:

  • gconftool-2 --set /apps/metacity/general/button_layout \
  • > --type string "menu:minimize,maximize,close"
  • or use gconf-editor and click on apps > metacity and
  •  general > button_layout and insert the text menu:minimize,maximize,close
you can also use gconf-editor pictured below to do the same thing *note some websites have this instruction but leave out the menu: on the left side this is needed i think to split the window gadgets so don't forget it :)

to backup a NTFS partition use

Save an NTFS to a file in the special image format:
cd into the drive you want to save the image to
     in my case external backup drive to save system image backups on

cd /media/stevop777/3C147D937B07414/BackupISOs/

ntfsclone --save-image --output winXPntfsclone-back.img /dev/sda5 
( backs up a ntfs on /dev/sda5 )

Restore an NTFS from a special image file to its original partition:
ntfsclone --restore-image --overwrite /dev/sda5 winXPntfsclone-back.img