LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2006, 10:00 PM   #1
gary4gar
Member
 
Registered: Aug 2006
Location: India
Distribution: Arch Linux x86_64 KDEmod 4.1
Posts: 52

Rep: Reputation: 15
Question Grub confusion!!!!!


guys i am new to linux, and the grub setup is too confusing for me.i mean i want to know which partion is on which series like hd0(0,0) or something like that.i have a sata drive

this is my menu.lst file
Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.           
default                0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda8 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title                Ubuntu, kernel 2.6.15-26-386
root                (hd0,7)
kernel                /boot/vmlinuz-2.6.15-26-386 root=/dev/sda8 ro quiet splash
initrd                /boot/initrd.img-2.6.15-26-386
savedefault
boot

title                Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root                (hd0,7)
kernel                /boot/vmlinuz-2.6.15-26-386 root=/dev/sda8 ro single
initrd                /boot/initrd.img-2.6.15-26-386
boot

title                Ubuntu, kernel 2.6.12-10-386
root                (hd0,7)
kernel                /boot/vmlinuz-2.6.12-10-386 root=/dev/sda8 ro quiet splash
initrd                /boot/initrd.img-2.6.12-10-386
savedefault
boot

title                Ubuntu, kernel 2.6.12-10-386 (recovery mode)
root                (hd0,7)
kernel                /boot/vmlinuz-2.6.12-10-386 root=/dev/sda8 ro single
initrd                /boot/initrd.img-2.6.12-10-386
boot

title                Ubuntu, kernel 2.6.12-9-386
root                (hd0,7)
kernel                /boot/vmlinuz-2.6.12-9-386 root=/dev/sda8 ro quiet splash
initrd                /boot/initrd.img-2.6.12-9-386
savedefault
boot

title                Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root                (hd0,7)
kernel                /boot/vmlinuz-2.6.12-9-386 root=/dev/sda8 ro single
initrd                /boot/initrd.img-2.6.12-9-386
boot

title                Ubuntu, memtest86+
root                (hd0,7)
kernel                /boot/memtest86+.bin 
boot

### END DEBIAN AUTOMAGIC KERNELS LIST
i have five partions(giving partions according to physical prsence)in order they are physically present on my hdd
partion-1 windows xp11gb
partion-2 ubuntu9gb
partion-3 linux swap384mb
partion-4 my data drive so no os27gb
partion-5 my data drive2 so no os27gb

the main purpose of this thread is to understand how grub partions are numbered & making me understand this wonderful operating system
pls anyone list my which drive is on which logical partion??

regards,
gary
 
Old 09-09-2006, 10:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The "physical order" as you present it doesn't necessarily mean
much .... can you post the output of
fdisk -l
please?



Cheers,
Tink
 
Old 09-09-2006, 11:14 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Make that "sudo fdisk -l" (no quotes, and that's a lower case ell).
 
Old 09-10-2006, 12:01 AM   #4
gary4gar
Member
 
Registered: Aug 2006
Location: India
Distribution: Arch Linux x86_64 KDEmod 4.1
Posts: 52

Original Poster
Rep: Reputation: 15
well i recently installed xp so grub is erased so can't boot into ubuntu but will try through live cd
 
Old 09-12-2006, 12:01 PM   #5
gary4gar
Member
 
Registered: Aug 2006
Location: India
Distribution: Arch Linux x86_64 KDEmod 4.1
Posts: 52

Original Poster
Rep: Reputation: 15
here is the output of "fdisk -l"
Code:
root@ubuntu:~# fdisk -l
omitting empty partition (5)

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        9729    78148161    f  W95 Ext'd (LBA)
/dev/sda2   *        2433        6080    29302528+   b  W95 FAT32
/dev/sda5               1        1337    10739358    7  HPFS/NTFS
/dev/sda6   *        1338        2383     8401963+  83  Linux
/dev/sda7            2384        2432      393561   82  Linux swap / Solaris
/dev/sda8            6081        9729    29310561    b  W95 FAT32
 
Old 09-12-2006, 01:31 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What tool dreamt that scheme up? :} Those partitions are in a very
strange order. To begin with the fact that the WHOLE hard-disk is
an extended disk; did windows not complain when you installed it to
sda2? By default it insists to live on the first primary of the first
hard-drive.


Cheers,
Tink
 
Old 09-12-2006, 02:16 PM   #7
gary4gar
Member
 
Registered: Aug 2006
Location: India
Distribution: Arch Linux x86_64 KDEmod 4.1
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster
What tool dreamt that scheme up? :} Those partitions are in a very
strange order. To begin with the fact that the WHOLE hard-disk is
an extended disk; did windows not complain when you installed it to
sda2? By default it insists to live on the first primary of the first
hard-drive.


Cheers,
Tink
should i erase the whole hdd??
or any alternative is there??
will this effect the performance?
 
Old 09-12-2006, 08:06 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Let's see the complete "fdsik -l" output - uneditted.

And don't mind Tink - a little rant now and then is good for the soul ...
 
Old 09-13-2006, 01:27 AM   #9
gary4gar
Member
 
Registered: Aug 2006
Location: India
Distribution: Arch Linux x86_64 KDEmod 4.1
Posts: 52

Original Poster
Rep: Reputation: 15
well i already posted the output of fdsk -l


also i only have a single 80gb hdd so where from sd2 come??
 
Old 09-13-2006, 01:48 AM   #10
emf
LQ Newbie
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian/FC3
Posts: 14

Rep: Reputation: 0
sda is the whole hard drive, the 2 means the partition. If you add another hard drive of the same type it will be sdb.
 
Old 09-13-2006, 02:40 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by gary4gar
should i erase the whole hdd??
or any alternative is there??
will this effect the performance?
It shouldn't impact on performance. I don't know whether
windows will boot from that without a chainload via grub
or lilo. If it does there's no need to re-install. And never mind
syg00, he's from the west-island, they have a weird sense of
humour there... ;}



Cheers,
Tink
 
Old 09-19-2006, 11:16 PM   #12
dogged28
Member
 
Registered: Jul 2006
Location: Lubbock, Tx.
Distribution: Ubuntu Dapper Drake
Posts: 184

Rep: Reputation: 30
that is a weird configuration. if you really want to know which is which, wipe the drive and start over again. if you don't have any important docs keep. this would give you a great chance and oportunity to learn and have some fun too. i've wiped my drive several times just to see what would happen this way or that way and blah blah blah. keep in mind i'm a newb and learning as you are. also, if you do this, start with windows first. other than that, just go with your gut.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
confusion carl440 Linux - Newbie 4 04-20-2006 03:10 PM
g++ == confusion slantoflight Programming 4 02-20-2006 01:19 PM
a little confusion..... b0nd Linux - Newbie 1 02-17-2005 06:45 AM
WM Confusion phoeniXflame Slackware 3 02-16-2003 05:19 AM
Some confusion about RH 7.3 psyklops Linux - Distributions 2 05-08-2002 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 PM.

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