Results 1 to 10 of 16

Thread: Grub Rescue Shell, Ubuntu partition deleted

Hybrid View

  1. #1
    Join Date
    Jan 2013
    Beans
    7

    Question Grub Rescue Shell, Ubuntu partition deleted

    Hi guys,

    I've had a Windows XP and Ubuntu setup on my netbook (Samsung N130) for some time, but I was running low of hard disk space so opted to format the parition with Ubuntu installed (i know, i know - but for this netbook I prefer XP).

    This decision has rendered my system unbootable, on a restart I get the following:

    error: unknown filesystem.
    grub rescue>


    I attempted to fix my MBR using a bootable flash drive with XP installed as detailed in this guide http://helpdeskgeek.com/how-to/fix-mbr-xp-vista/.

    The operation completed successfully, though I receive the same problem on reboot, perhaps I did something wrong? Should it have not been on the C:\WINDOWS> command line, the parition I removed was originally on D:. I'm completed lost!

    Thanks

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Grub Rescue Shell, Ubuntu partition deleted

    Moved to OtherOS as Windows issue.

    Did you run fixMBR as that is what writes the Windows boot loader to the MBR overwriting the grub boot loader in the MBR?

    How to restore the Ubuntu/XP/Vista/7 bootloader
    https://help.ubuntu.com/community/Re...ta/7Bootloader
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Jan 2013
    Beans
    7

    Re: Grub Rescue Shell, Ubuntu partition deleted

    Hi oldfred - thanks for the reply,

    I followed the instructions on the link you provided as follows:

    1. Booted from my Windows XP drive and chose to repair the Windows installation by pressing "r".
    2. When prompted 'Which Windows installation would you like to log onto' I entered 1.
    3. When prompted for an admin password I just pressed enter as I don't believe I have one.
    4. At the C:\WINDOWS> command line I entered fixboot which produced the following:

    The target partition is C:
    Are you sure you want to write a new bootsector to the partition? (entered y)

    The file system of the startup parition is NTFS

    FIXBOOT is writing a new boot sector

    The new bootsector was successfully written


    5. I then ran fixmbr - received the usual:

    ** Caution ** this computer appears to have a non-standard or invalid boot record ... Are you sure you want to write a new MBR? (entered y to proceed)

    The new master boot record has been successfully written.

    6. Typed exit to restart the system, which brought me back to my bootable flash drive with Windows XP.
    7. Restarted the system again after removing the flash drive, greeted with the same error: unknown filesystem.

    EDIT: If it makes the process any easier - I'm prepared to lose any and all data currently on my hard drive.
    Last edited by JoshDude; January 13th, 2013 at 12:36 PM.

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Grub Rescue Shell, Ubuntu partition deleted

    If you have an XP install that should have fixed it.

    Post this from Ubuntu liveCD. Will not fix Windows issues, but may show what is wrong.

    Post the link to the BootInfo report that this creates. Is part of Boot-Repair:
    https://help.ubuntu.com/community/Boot-Info
    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair
    You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration and diagnose advanced problems.
    Install in Ubuntu liveCD or USB or Full RepairCD with Boot-Repair (for newer computers)
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Jan 2013
    Beans
    7

    Re: Grub Rescue Shell, Ubuntu partition deleted

    Hello again oldfred,

    I created a new bootable flash drive with an Ubuntu-Secure-Remix iso, and was successfully able to boot into Ubuntu.

    Fom here I selected to 'Try Ubuntu', from where I ran Boot-Repair and selected to 'Create a BootInfo summary'. Noticed I could see all of the files on both my Windows XP C:/ drive as well as the empty D:/ drive.

    Here is the URL that was output from the Boot-Info: http://paste.ubuntu.com/1532264/

    Thanks for your help so far

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Grub Rescue Shell, Ubuntu partition deleted

    Boot-Repair cannot do much to fix Windows. Your configuration looks ok, but then something internal to Windows is wrong. Normally chkdsk is the first thing to try.

    You have to have the 3 boot files shown in your sda2. Partition shows as NTFS and partition boot signature says it is ok. Sometimes that is not and a rebuild with testdisk may fix it. Not sure if fixBoot just restores backup and if backup has issues then fixBoot does not work. Sometimes just replacing ntldr works. But depending on where copied from may need attributes reset.

    If files are still missing you can do this to copy from CD to C:\:
    COPY [CDDRIVE]:\I386\NTLDR C:\
    COPY [CDDRIVE]:\I386\NTDETECT.COM C:\
    Where [CDDrive] is location of cd or D: etc.
    or:
    Can you boot into Ubuntu? If so you can mount your Windows drive and navigate to C:\windows\ServicePackFiles\i386 folder and copy
    ntdetect.com and ntldr to root of C:\.

    Boot files may need attributes also from Windows repair console:
    attrib +r c:\filename
    attrib +h c:\filename
    attrib +s c:\filename


    Instructions
    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
    http://www.cgsecurity.org/wiki/Menu_Analyse
    http://www.cgsecurity.org/wiki/TestD..._file_for_NTFS


    See if testdisk reports partition boot sector as ok and backup as ok.
    As described, it has an option to "Recover NTFS boot sector from its backup"
    If Backup BS isn't available, choose RebuildBS.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







Tags for this Thread

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
  •