Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> Finding A partition, finding partition to use in grub
post Mar 13 2009, 04:46 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 4
Joined: 13-March 09
Member No.: 14,163

Hi, I have recently have made some space to install a xp partition, after installing xp on the free space I messed up my bootloader, I have managed to fix it so I can access the grub boot menu and boot into ubuntu.

I need to find out how to find what partition my xp is installed on so I can enter the correct entry in the /grub/menu.lst file.


title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid c69aa91d-d9b9-4054-8ef5-01b3c1dc20cd
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=c69aa91d-d9b9-4054-8ef5-01b3c1dc20cd ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic


title Windows
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
chainloader +1

is there any commands I can use so I can choose the correct "hd0, hd1" I dont really know what the map commands are as well.

Edit here is the command which may list something useful
sudo fdisk -l

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

Device Boot Start End Blocks Id System
/dev/sda1 1 15562 125001733+ 83 Linux
/dev/sda2 * 15563 18701 25214017+ 7 HPFS/NTFS
/dev/sda3 18702 19457 6072570 5 Extended
/dev/sda5 18702 19457 6072538+ 82 Linux swap / Solaris

Thanks, any help is appreciated.
Go to the top of the page
+Quote Post
Start new topic
Replies (1 - 2)
post Mar 13 2009, 06:52 AM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
Joined: 23-January 03
Member No.: 360

According to what you posted your windows partition is sda2 and in grub speak that is (hd0,1). grub starts at 0,0 for the first drive,partition.
Windows prefers to be installed and running from the first drive i.e. c: drive or sda, hda in linux speak. If you have multiple hard drives in your system you can install windows to the second and
the map command in a nutshell will trick windows into thinking it is on the first drive.

title Windows
rootnoverify (hd0,1)
chainloader +1
Go to the top of the page
+Quote Post
post Mar 13 2009, 08:47 PM
Post #3

Whats this Lie-nix Thing?

Group: Members
Posts: 4
Joined: 13-March 09
Member No.: 14,163

Thanks for that, will try it out shortly.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 15th July 2018 - 10:10 PM