Backup whole OS

I have to format my entire disk and reinstall Ubuntu. I have installed a lot of software on my current system. And I will have to reinstall all those updates, drivers and applications too. Is there any way I can make an .iso image of my installed Ubuntu along with all the software, preferences, drivers … Read more

I run `sudo apt-get remove python2.7`, can I restore my Ubuntu now?

I wanted to remove and reinstall python2.7 interpreter on 12.04 But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever I’ve removed? Answer While reinstalling Ubuntu is probably the easiest way, it’s worth pointing out that it’s possible to recover without reinstalling everything. … Read more

How to restore .bashrc file?

The terminal shows this when it opens: bash: /home/atlas/.bashrc: line 73: syntax error near unexpected token `[‘ bash: /home/atlas/.bashrc: line 73: `if [ -x /usr/bin/dircolors ] ; then ‘ I’ve tried to fix it using: cp /ect/skel/.bashrc ~/ And I get this: cp: cannot stat `/ect/skel/.bashrc’: No such file or directory I’m unsure of why … Read more

How to partclone an NTFS partition to a smaller disk without having space for the full image

Every now and then I have got the following problem: A disk fails and the replacement disk is smaller. The data often easily fits the smaller disk, but partclone simply does not shrink the filesystem to match the smaller partition size. You can simply image the whole disk onto your temporary drive then shrink. But … Read more