Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-14-2009, 07:48 AM   #1
Registered: Jan 2009
Location: on my pc!
Distribution: openSUSE 11.2 opensolaris 2009.06
Posts: 218
Blog Entries: 7

Rep: Reputation: 32
boot a windows partition without win/longhorn installed

hi all,
i just removed windows on my grandads pc cos my nephew screwed windows but i kept the recovery part so now he wants win back but how do i boot it? from grub without longhorn?
Old 08-15-2009, 05:03 PM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Assuming you can boot a Linux distribution from GRUB (or a Live CD for some distribution), you can do a sudo /sbin/fdisk -l /dev/sd? to identify all the partitions on the drive. One of those should be the recovery partition for the Windows system. Here's what this laptop looks like:
$ sudo /sbin/fdisk -l /dev/sd?
[sudo] password for Peter:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa602a602

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        8820    70846618+   7  HPFS/NTFS
/dev/sda2            8821       17926    73143945    5  Extended
/dev/sda3           17927       19457    12297757+   7  HPFS/NTFS
/dev/sda5            8821       13184    35053767   83  Linux
/dev/sda6           17550       17926     3028221   82  Linux swap / Solaris
/dev/sda7           13185       17549    35061831   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00032256

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          25      200781   83  Linux
/dev/sdb2              26       38913   312367860   8e  Linux LVM
As you can see, my recovery partition is /dev/sda3. To boot that partition, I have this stanza in my /boot/grub/grub.conf file:
title           Windows Vista Recovery (hd0.1)
rootnoverify    (hd0,1)
chainloader     +1
(Note that sda3 is (hd0,1) to GRUB, since it labels drive and partitions starting from 0, not 1, and does not count "extended" partitions.)

Anyhow, all you need to do is add the appropriate stanza to you grub.conf file. (Some distributions use menu.lst instead of grub.conf - check you /boot/grub directory to see which is used by your distribution.)
Old 08-16-2009, 03:24 AM   #3
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
If there is a recovery partition, the system should have come with a way to access it. E.g a special CD/floppy. You can try to locate it. If you post make and model of the PC, somebody might be able to shine somemore light on it.
Old 08-16-2009, 08:47 AM   #4
Registered: Jan 2009
Location: on my pc!
Distribution: openSUSE 11.2 opensolaris 2009.06
Posts: 218
Blog Entries: 7

Original Poster
Rep: Reputation: 32
well i know the recovery is /dev/sda1 and no i dont have a disk but i think i can sort it cos super grub disk has a option to boot to win


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wine installed a program onto my windows partition, Windows BSOD on boot. DJGCrusader Linux - Enterprise 9 08-14-2009 09:25 AM
Cannot boot already installed ubuntu on newly installed win xp abhi_337 Ubuntu 1 07-13-2006 04:33 AM
HD partition dual boot with Win Xp windycity_linux Linux - Newbie 6 05-02-2006 07:11 PM
win***s restarting when I boot the windows partition KiwiPingu General 3 12-07-2004 03:12 AM
New Windows Longhorn kaloyer General 31 07-05-2004 11:27 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration