Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Monday, January 9, 2012

Recover or Rescue Grub from live Ubuntu CD

In Last Post We Have Discussed About Restoring Windows From Grub.This Post Explains A Method Of Restoring Linux Installations Like Ubuntu Using Linux Live Desktop Cd Or a Server Cd.

Steps To Be Followed.

1.Boot From The Ubuntu Or Any Linux Variant Live Cd.
2.Open Terminal .

Applications> Accessories> Terminal.
3. In Terminal type sudo fdisk -l   . 
    It will display all the Available partition on the disk.


Identify the partition which have Linux under System column is your drive in which ubuntu linux is installed. 


4. Mount the ubuntu partition drive
       sudo mount /dev/sdXX /mnt  (example 'sudo mount /dev/sda11 /mnt' ,Here XX Stands For Your Drive.)


5.Only if you have a separate boot partition: 
            sudo mount /dev/sdYY /mnt/boot.


 6.  Mount the virtual file systems: 
            
            sudo mount --bind /dev /mnt/dev
        sudo mount --bind /proc /mnt/proc 
        sudo mount --bind /sys /mnt/sys


7. To ensure that only the grub utilities from the LiveCD get executed, mount /usr     
     sudo mount --bind /usr/ /mnt/usr 
     sudo chroot /mnt  


8. If there is no /boot/grub/grub.cfg or it's not correct, create one using 
            update-grub 
      or  update-grub2


9.Now reinstall Grub  
         grub-install /dev/sda     


 10. Verify the install 
        sudo grub-install --recheck /dev/sdX


11. Exit chroot : CTRL-D on keyboard.


12. Unmount virtual filesystems:  
           sudo umount /mnt/dev 
           sudo umount /mnt/proc
           sudo umount /mnt/sys 


If you mounted a separate /boot partition:  
           sudo umount /mnt/boot 


13. Unmount the LiveCD's /usr directory: 
          sudo umount /mnt/usr


14. Unmount last device: 
           sudo umount /mnt
15. Reboot. 
         sudo reboot.


NOTE: If you are getting /usr/sbin/grub-probe: error: cannot stat 'aufs'  error then the possible reason is that you didn't follow the commands listed above. Specifically you did not do chroot.


Credits:Sidh.

Sunday, October 3, 2010

How to install a software in ubuntu


Ubuntu is an open source operating system which is Linux based, and thus can be edited by many people. It is free to install and contains many free programs, so it is a great low-cost alternative to Windows.There is an increasing trend in the grwoth of ubuntu users in last couple of years ,As this is a freely available version to users are opting this than the windows which costs around some $200 or even more.Ubuntu is constantly updated by enthusiastic people all around the world.Ubuntu updated its recent version which have various applications,we have Office which supports all ms office formats and we got wine where a virtual envionment is created,it can help to run all our windows applications .
But what makes the users who recently migrated and who want to jump into this world is how to install a software ,Most of the users confuse at this where they download a certain software from third party websites and they wont find a graphical easy interface to install it.
For all those beginners this post will help them to install any kind of software in ubuntu.
Installing through Ubuntu software centre:

Ubuntu comes with a built in application manager which lessens your burden in searching the softwares .
Follow this steps to install a new software:
*Go to Applications
*select Ubuntu Software Center.
*click on  Free software.
*select the department or just go for search
*after searching ,select the one you want and double click it and install by giving authentication,permission.
Installing Manually:
Second way of insatlling is by manually ,when you did'nt find the software requried.
download from the webistes of the software product a .deb extension file
After downloading just double click and install it.
The another of installing software is getting packagae from ubuntu ,in linux distributions software  is often reffered as package
Go to terminal
*change to adminstrator by typing su and then root password
*type the command
sudo apt-get install "software"(software==package you want without quotes)
ex:
sudo apt-get install wine