Gentoo Archives: gentoo-user

From: THUFIR HAWAT <hawat.thufir@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] booting slave; specify which device and how?
Date: Wed, 16 Aug 2006 04:42:19
Message-Id: bf6b6d5c0608152138o3a3494a6s1bc2bde3c21aac4e@mail.gmail.com
In Reply to: Re: [gentoo-user] booting slave; specify which device and how? by Richard Fish
1 On 8/15/06, Richard Fish <bigfish@××××××××××.org> wrote:
2 > On 8/15/06, THUFIR HAWAT <hawat.thufir@×××××.com> wrote:
3 > > There are two hard drives. The slave has gentoo and win2k. GRUB
4 > > seems to work fine, windows boots fine.
5 >
6 > IDE (or rather PATA now) devices on linux are named in order of the
7 > channel then master/slave device, so:
8 >
9 > hda: master on first PATA channel
10 > hdb: slave on first PATA channel
11 [...]
12
13 Understood, thanks.
14
15 I seem to have mucked things up a tad by formatting hda so that I
16 can't boot windows at the moment.
17
18 I'm thinking about how to edit grub.conf at the moment...
19
20 knoppix@2[grub]$
21 knoppix@2[grub]$
22 knoppix@2[grub]$
23 knoppix@2[grub]$
24 knoppix@2[grub]$ cat grub.conf.sample -n
25 1 #
26 2 # Sample boot menu configuration file
27 3 #
28 4
29 5 # Boot automatically after 30 secs.
30 6 timeout 30
31 7
32 8 # By default, boot the first entry.
33 9 default 0
34 10
35 11 # Fallback to the second entry.
36 12 fallback 1
37 13
38 14 # For booting GNU/Hurd
39 15 title GNU/Hurd
40 16 root (hd0,0)
41 17 kernel /boot/gnumach.gz root=hd0s1
42 18 module /boot/serverboot.gz
43 19
44 20 # For booting GNU/Linux
45 21 title GNU/Linux
46 22 root (hd1,0)
47 23 kernel /vmlinuz root=/dev/hdb1
48 24 #initrd /initrd.img
49 25
50 26 # For booting GNU/kFreeBSD
51 27 title GNU/kFreeBSD
52 28 root (hd0,2,a)
53 29 kernel /boot/loader.gz
54 30
55 31 # For booting GNU/kNetBSD
56 32 title GNU/kNetBSD
57 33 root (hd0,2,a)
58 34 kernel --type=netbsd /boot/knetbsd.gz
59 35
60 36 # For booting Mach (getting kernel from floppy)
61 37 title Utah Mach4 multiboot
62 38 root (hd0,2)
63 39 pause Insert the diskette now!!
64 40 kernel (fd0)/boot/kernel root=hd0s3
65 41 module (fd0)/boot/bootstrap
66 42
67 43 # For booting FreeBSD
68 44 title FreeBSD
69 45 root (hd0,2,a)
70 46 kernel /boot/loader
71 47
72 48 # For booting NetBSD
73 49 title NetBSD
74 50 root (hd0,2,a)
75 51 kernel --type=netbsd /netbsd
76 52
77 53 # For booting OpenBSD
78 54 title OpenBSD
79 55 root (hd0,2,a)
80 56 kernel --type=netbsd /bsd
81 57
82 58 # For booting OS/2
83 59 title OS/2
84 60 root (hd0,1)
85 61 makeactive
86 62 # chainload OS/2 bootloader from the first sector
87 63 chainloader +1
88 64 # This is similar to "chainload", but loads a specific file
89 65 #chainloader /boot/chain.os2
90 66
91 67 # For booting Windows NT or Windows95
92 68 title Windows NT / Windows 95 boot menu
93 69 rootnoverify (hd0,0)
94 70 makeactive
95 71 chainloader +1
96 72 # For loading DOS if Windows NT is installed
97 73 # chainload /bootsect.dos
98 74
99 75 # For installing GRUB into the hard disk
100 76 title Install GRUB into the hard disk
101 77 root (hd0,0)
102 78 setup (hd0)
103 79
104 80 # Change the colors.
105 81 title Change the colors
106 82 color light-green/brown blink-red/blue
107 knoppix@2[grub]$ cat grub.conf -n
108 1 default 0
109 2 timeout 30
110 3 splashimage=(hd0,1)/grub/splash.xpm.gz
111 4 title=Gentoo Linux
112 5 root (hd0,1)
113 6 kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0
114 init=/linuxrc ramdisk=8192 real_root=/dev/hda4
115 7 initrd /initramfs-genkernel-x86-2.6.15-gentoo-r5
116 8
117 9 title Windows
118 10 rootnoverify (hd0,0)
119 11 chainloader +1
120 12
121 knoppix@2[grub]$ pwd
122 /media/hdb2/boot/grub
123 knoppix@2[grub]$ whoami
124 knoppix
125 knoppix@2[grub]$ date
126 Tue Aug 15 21:32:33 EDT 2006
127 knoppix@2[grub]$
128 knoppix@2[grub]$
129 knoppix@2[grub]$
130 knoppix@2[grub]$
131 knoppix@2[grub]$
132
133
134
135
136
137
138 -Thufir
139 --
140 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] booting slave; specify which device and how? THUFIR HAWAT <hawat.thufir@×××××.com>