Results 1 to 12 of 12

Thread: Booting problem

  1. #1
    Right Off the Assembly Line
    Join Date
    Jul 2011
    Posts
    33

    Default Booting problem

    Hi guys...

    Whenever I boot my laptop it says "unknown file system" and is redirected to "grub rescue>" prompt. How can I fix it???


    Reason for this:::::

    I had windows 7 home premium installed on my lappy. Then I installed ubuntu 11.04 as dual boot (wubi perhaps,not sure). Then I installed backbox by editing partition table. Then I accidentally deleted the partition containing backbox from my computer=>manage.
    After on I am unable to boot my laptop. I think it has something to do with grub and MBR. I have very few knowledge about them.

    What I have tried::::

    In INTERNET I got to know about repairing it using live cd. I tried and got menu.lst file. I don't know how to edit it.

    I also got the following commands on net.

    set prefix=(hd x,y)/boot/grub

    insmod(hdx,y)/boot/grub/linux.mod

    insmod part_msdos
    insmod ext2
    insmod gzio

    set root=(hdx,y)
    linux /boot/vmlinuz-3.0.0-1-686-pae root=/dev/sdXX ro


    After a long HIT-TRIAL process I came to know x=0,y=11
    What is sdXX?
    I've tried sda1,sda2,....sda12 with no result.
    All the time it said "file not found"

    When instead of last line I tried
    "initrd /boot/initrd.img-3.0.0-1-686-pae"
    it said "you need to load the kernel first".

    What else can I do?????????????

  2. #2
    Mmmph!!! doomgiver's Avatar
    Join Date
    Nov 2010
    Location
    Mmmphhmph Mmphph
    Posts
    1,972

    Default Re: Booting problem

    you actually edited the partition tables by hand? you might be the bravest or the craziest guy i've ever met.

    1. any important data on the hdd?
    2. do you have another hdd?
    3. do you want to save any data on the current busted up hdd?
    Mmmphh-mphhhh-mmphh mhh!!!

  3. #3
    Right Off the Assembly Line
    Join Date
    Jan 2012
    Posts
    6

    Default Re: Booting problem

    The hdx,y refers to your partition in linux. hd0, hd1...hd3 all refer to the primary partitions (Max you can have is 4). hd4 refers to the extended partition and hd5 onwards refers to the logical partitions. They are also referred as hda, hdb...Same logic.

    Since you had windows installed, the hd0 is taken by windows. The hd can be sd also depending on your config

    Now how to repair it.
    Use a live cd and get to the terminal. Type
    sudo apt-get install ms-sys
    sudo fdisk -1


    It will give some output. Note down the following

    sda1 (or whatever it outputs) aaaaaaaaa NTFS

    The important part is to note the first entry with NTFS in the end.
    then type

    sudo ms-sys -m /dev/sda

    Remember its without any numbers. (the sda can be hda or hdb or sdb..whatever). This will give you the windows bootloader. If you want grub, instead, figure out which partition linux is on using gparted or whatever partition manager is there on the live cd.

    then type
    sudo grub-install /dev/aaaaa (aaaaaa is the partition name with linux). Once you have grub installed just google how to add windows entry to it.


    @doomgiver - life is not so pessimistic. He can still recover the entire thing easily using testdisk. Refer http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

  4. #4
    Right Off the Assembly Line
    Join Date
    Jul 2011
    Posts
    33

    Default Re: Booting problem

    I am an enthusiast and a crazy guy (coz: It's a new laptop, 2 months old). I was trying to learn about partition table by experimenting with it cause i didn't get much info on net.

    I can access all my files using live cd. So I have recovered the important files. I also have recovery disk at home (I'm in hostel). I'll go home after 25 days and fix it.

    I'm just trying to fix it without format or recovery and trying to know more about grub rescue> , linux and partition table.

    Any suggestions????

  5. #5
    Mmmph!!! doomgiver's Avatar
    Join Date
    Nov 2010
    Location
    Mmmphhmph Mmphph
    Posts
    1,972

    Default Re: Booting problem

    vipul, i didnt say recovery isnt possible, i was just commenting on this guy's adventurous nature xD

    protip : dont have any valuable data on a experimental computer.
    always have a fresh hdd image ready at hand, in case of a fubar, like this one.

    also, hdx refers to a ide drive sdx refers to a sata drive.
    you cannot access a extended partition like sd4, or hd4, you can only access the logical partitions it holds inside, from s/hd5 onwards.
    Mmmphh-mphhhh-mmphh mhh!!!

  6. #6
    In The Zone $$Lionking$$'s Avatar
    Join Date
    Nov 2011
    Posts
    390

    Default Re: Booting problem

    doomgiver - u shud probably introduce him to dd.. for more storage media adventures..
    Sweet mother of all that is good & pure! ;)

  7. #7
    Mmmph!!! doomgiver's Avatar
    Join Date
    Nov 2010
    Location
    Mmmphhmph Mmphph
    Posts
    1,972

    Default Re: Booting problem

    dd_rescue (or was it ddrescue ?_? ) would be more appropriate.
    dd just copies off whatever it finds, regardless of the data and its state.
    Mmmphh-mphhhh-mmphh mhh!!!

  8. #8
    Right Off the Assembly Line
    Join Date
    Jul 2011
    Posts
    33

    Default Re: Booting problem

    Hello
    I've fixed the problem
    I used the following commands in terminal of live cd

    sudo add-apt-repository ppa:yannubuntu/boot-repair

    sudo apt-get update

    sudo apt-get install -y boot-repair

    It created boot-repair file in administration folder
    Then I replaced the grub with MBR which deleted all my linux partitions and window started booting up

    P.S. What is dd_rescue???

  9. #9
    In The Zone $$Lionking$$'s Avatar
    Join Date
    Nov 2011
    Posts
    390

    Default Re: Booting problem

    Doomgiver - Yes, dd does a little more than just copying data... i think u shud play a little more with it too....
    Sweet mother of all that is good & pure! ;)

  10. #10
    Mmmph!!! doomgiver's Avatar
    Join Date
    Nov 2010
    Location
    Mmmphhmph Mmphph
    Posts
    1,972

    Default Re: Booting problem

    Quote Originally Posted by amrutansu garanaik View Post
    Hello
    I've fixed the problem
    I used the following commands in terminal of live cd

    sudo add-apt-repository ppa:yannubuntu/boot-repair

    sudo apt-get update

    sudo apt-get install -y boot-repair

    It created boot-repair file in administration folder
    Then I replaced the grub with MBR which deleted all my linux partitions and window started booting up

    P.S. What is dd_rescue???
    Ddrescue - Forensics Wiki
    Dd rescue - Forensics Wiki
    my bad, both are a bit different.

    also, i know my dd, thanks used it several times for writing data to a usb drive.
    dd | Linux Journal
    dd tutorial, for those who dont know.
    Mmmphh-mphhhh-mmphh mhh!!!

  11. #11
    In The Zone $$Lionking$$'s Avatar
    Join Date
    Nov 2011
    Posts
    390

    Default Re: Booting problem

    doomgiver - I lost a partition to dd about 3 years ago, coz of a typo!!....
    Sweet mother of all that is good & pure! ;)

  12. #12
    Mmmph!!! doomgiver's Avatar
    Join Date
    Nov 2010
    Location
    Mmmphhmph Mmphph
    Posts
    1,972

    Default Re: Booting problem

    yup, deathdisk, is its middle name
    Mmmphh-mphhhh-mmphh mhh!!!

Similar Threads

  1. Booting problem, Please help me :-(
    By bhutanesedude in forum Hardware Q&A
    Replies: 12
    Last Post: 04-02-2010, 09:14 PM
  2. Booting Problem
    By adityaravi1990 in forum Software Q&A
    Replies: 2
    Last Post: 24-03-2009, 05:29 PM
  3. Booting Problem
    By ARJOT SINGH in forum Software Q&A
    Replies: 8
    Last Post: 22-04-2008, 07:08 PM
  4. Booting Problem !!!
    By bajaj151 in forum Software Q&A
    Replies: 6
    Last Post: 23-09-2007, 11:03 PM
  5. BOOTING PROBLEM
    By AVESH NARANG in forum Software Q&A
    Replies: 5
    Last Post: 16-02-2005, 10:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Close