Sunday, July 15, 2018

error unknown filesystem entering rescue mode grub rescue ubuntu

In this POST I will show how to get rid of

error: unknown filesystem.
Entering rescue mode...
grub rescue
Switch on the System, wait untill you get the Grub Rescue Screen.
Type the following commands



  • ls
  • It will display list of partions you had in your system.
    You will get something like this (hd0),(hd0,msdos1)(hd0,msdos2)(hd0,msdos3) based on no of partitions

  • set prefix= (hd0,msdos1)/boot/grub
  • If it’s not the root drive you will get an error message "unknown filesystem". In that case try the same command with the next partion.
    You need to find which drive is Ubuntu root. For that type the following:
    Ex: set prefix=(hd0,msdos2)/boot/grub
  • set prefix=(hd0,msdos1)/boot/grub
  • insmod normal
  • normal
  • sudo update-grub
  • sudo grub-install /dev/sda

  • If you are not getting an error: You can proceed to the next command after that:
    Your PC will now boot successfully. Now select Ubuntu & login.
    Open Terminal( Ctr+Alt+T or use the search)
    Now the bootloader error is fixed you should be able to boot your System normally & even your data is intact.

    Monday, January 29, 2018

    How to get Geolocation with out using domain name or SSL connection

    In this post I will show how to get Geolocation with out using domain name or SSL connection. In the previous POST I had shown how to get Geolocation using html.
    In the previous post its not possible to get Geolocation with out using SSL connection or Domain Name.

    OutPut:

    How to Get Geolocation in HTML

    In this post I will show how to get Geolocation.

    OutPut:


    Tuesday, December 12, 2017

    How to create a file, write, read and append to file in python

    In the post I will show how to create a File, Write, read and append in python.

    Before that lets see the File Modes in Python


    File Modes in Python
    Mode
    Description
    'r'
    Open a file for reading. (by default)
    'w'
    Open a file for writing. Creates a new file if it does not exist or deleates the file if it exists.
    'x'
    Open a file for exclusive creation. If the file already exists, the operation fails.
    'a'
    Open for appending at the end of the file without replacing it. Creates a new file if it does not exist.
    't'
    Open in text mode. (by default)
    'b'
    Open in binary mode.
    '+'
    Open a file for updating (reading and writing)