Results 1 to 6 of 6

Thread: Booting from windows recovery partition

  1. #1
    Join Date
    Aug 2005
    Beans
    134

    [Solved]Booting from windows recovery partition

    I installed Ubuntu on a old laptop running windows 2000


    After the installation the boot loader GRUB II does not give me the option to use the Windows 2000 recovery option. This would be necessary since I to not have a recovery disk. Is there any info about how to include the Windows recovery operation in the boot menu?

    Originally F11 brought up a menu with the option to recover W 2000.
    Last edited by jpaulb; September 25th, 2010 at 06:00 PM.

  2. #2
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,332
    Distro
    Ubuntu Mate Development Release

    Re: Booting from windows recovery partition

    GRUB2 finds other operating systems by scanning for certain files in their partitions. That's why, when folks have the OEM-default Win7 setup, in which the boot loader files are in one partition and the Windows OS files are in a second partition, it typically creates two menu entries for Win7.

    If there are no actual Windows OS files in your Recovery partition (and there might not be if it's a compressed Windows Image file), then GRUB2 sees nothing there and builds no entry.

    Besides, all that GRUB2 does in the case of MS Windows is hand over control to an MS Windows boot loader -- and since there is apparently no such animal in your Recovery partition, even if you DID add an entry, it would not do anything.
    Ubuntu 17.10 Mate, Mint 18.3 Mate; MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  3. #3
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: Booting from windows recovery partition

    Are you sure you still have the recovery partition, and if so, which one is it? What does sudo fdisk -l show?

  4. #4
    Join Date
    Aug 2005
    Beans
    134

    Re: Booting from windows recovery partition

    Quote Originally Posted by psusi View Post
    Are you sure you still have the recovery partition, and if so, which one is it? What does sudo fdisk -l show?

    • Dev start end blocks ID System
    • /dev/sda1 1 637 5116671 c W95 FAT32 (LBA)
    • /dev/sda2 2313 2432 960120 c W95 FAT32 (LBA)
    • /dev/sda7 1863 2312 3614593 7 HPFS/NTFS


    /dev/sda2 is the recovery partition
    /dev/sda7 is the partition I would like to share data on.

  5. #5
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: Booting from windows recovery partition

    I don't see a Linux partition. Do you have a wubi install or something? If you want to boot the recovery partition, hold down shift to make the grub menu come up at boot time ( if it doesn't already ) and hit c to get to the console. Enter the following:

    set root=(hd0,2)
    chainloader +1

    Beware though; the windows recovery will wipe out your Ubuntu install.

  6. #6
    Join Date
    Aug 2005
    Beans
    134

    Thumbs up Re: Booting from windows recovery partition

    Quote Originally Posted by psusi View Post
    I don't see a Linux partition. Do you have a wubi install or something? If you want to boot the recovery partition, hold down shift to make the grub menu come up at boot time ( if it doesn't already ) and hit c to get to the console. Enter the following:

    set root=(hd0,2)
    chainloader +1

    Beware though; the windows recovery will wipe out your Ubuntu install.
    Thanks for your help

    I tried your suggestion without success and had a brain storm, something like a seizure

    Why not copy the code in grub.cfg for the Windows boot and change what is necessary to boot the recovery partition. It worked.
    May not be the most elegant solution

    Code:
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows 2000 Professional recover(on /dev/sda2)" {
    	insmod fat
    	set root='(hd0,2)'
    	
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###

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
  •