Gentoo Archives: gentoo-amd64

From: DR GM SEDDON <gavin.m.seddon@×××××××××××××.uk>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] initrd
Date: Sun, 30 Oct 2005 09:51:06
Message-Id: 436496F1.1090108@manchester.ac.uk
In Reply to: Re: [gentoo-amd64] initrd by Karol Krizka
1 Karol Krizka wrote:
2
3 >On Saturday 29 October 2005 07:16, DR GM SEDDON wrote:
4 >
5 >
6 >>my grub.conf:
7 >>' default 0
8 >>timeout 5
9 >>splashimage=(hd0.0)/grub/splash.xpm.gz
10 >>
11 >>title=linux-2.6.13
12 >>root (hd0.0)
13 >>kernel /genkernel--x86_64-2.6.13-gentoo-r3 root=/dev/ram0 init=/linuxrc
14 >>ramdisk-8193 real_root=/dev/hda3 udev
15 >>initrd /initrd'
16 >>
17 >>
18 >>
19 >I have the sameconfig and it works ok exept the name of /initrd I
20 >have /initramfs-genkernel-x86_64-2.6.13-gentoo-r3. Maybe that is the problem?
21 >
22 >
23 >
24 >>I see hoew by saying root (hd0,0) leaves things relative to /boot. But
25 >>there is no linuxrc in /boot. I think this is the prob.
26 >>
27 >>
28 >>
29 >/linuxrc is in the initramfs thing so that's not the problem.
30 >
31 >
32 >
33 >>The error code is 15.
34 >>Thanks
35 >>
36 >>Craig Webster wrote:
37 >>
38 >>
39 >>>On 29 Oct 2005, at 14:21, DR GM SEDDON wrote:
40 >>>
41 >>>
42 >>>>Dmitri Pogosyan wrote:
43 >>>>
44 >>>>
45 >>>>>Not really, you can use initramfs in place of initrd. I have in
46 >>>>>grub.conf title=Gentoo Linux 2.6.13-r3 UDEV root (hd0,0) kernel /
47 >>>>>kernel-2.6.13-gentoo-r3 root=/dev/ram0 ramdisk=16384 init=/linuxrc
48 >>>>>real_root=/dev/sda2 vga=3847 udev initrd /initramfs-2.6.13-gentoo-r3
49 >>>>>
50 >>>>>
51 >>>>>
52 >>>>>>Dear list, I have just started using Gentoo and up-to-now am
53 >>>>>>impressed. I have generated a kernel using 'genkernel' and the
54 >>>>>>kernel is in /boot. However, I do not have 'initrd' but
55 >>>>>>'initramfs'. is this a problem or should I modify grub
56 >>>>>>appropriately? Gavin. -- gentoo-amd64@g.o mailing list
57 >>>>>>
58 >>>>>>
59 >>>>I noticed your files are in / not /boot where mine are. Should I
60 >>>>mv them?
61 >>>>
62 >>>>
63 >>>They're in / only on the boot partition ie they are in the root of
64 >>>(hd0,0).
65 >>>
66 >>>If you are specifying your files as living in /boot on the boot
67 >>>partition then this could stop your system booting fully.
68 >>>
69 >>>Perhaps you could post your grub.conf?
70 >>>
71 >>>Yours,
72 >>>Craig
73 >>>--
74 >>>Craig Webster | t: +44 (0)131 516 8595 | e: craig@××××××.net
75 >>>Xeriom.NET | f: +44 (0)709 287 1902 | w: http://xeriom.net
76 >>>
77 >>>
78 >
79 >
80 >
81 grub.conf
82 'default 0
83 timeout 5
84 splashimage=(hd0,0)/grub/splash.xpm.gz
85
86 title=linux-2.6.13
87 root (hd0,0)
88 kernel /genkernel-x86_64-2.6.13-gentoo-r3 root=/dev/ram0
89 init=/initramfs-genkernel-x86_64-2.6.13-gentoo-r3 ramdisk=8192
90 real_boot=/dev/hda3 udev
91 initrd /initrd'
92
93 fstab
94 '# /etc/fstab: static file system information.
95 # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1
96 2005/01/31 23:05:14 vapier Exp $
97 #
98 # noatime turns off atimes for increased performance (atimes normally
99 aren't
100 # needed; notail increases performance of ReiserFS (at the expense of
101 storage
102 # efficiency). It's safe to drop the noatime options if you want and to
103 # switch between notail / tail freely.
104 #
105 # See the manpage fstab(5) for more information.
106
107 # <fs> <mountpoint> <type> <opts> <dump/pass>
108
109 # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
110 #/dev/BOOT /boot ext2 noauto,noatime 1 2
111 #/dev/ROOT / ext3 noatime 0 1
112 #/dev/SWAP none swap sw 0 0
113 #/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
114 #/dev/fd0 /mnt/floppy auto noauto 0 0
115
116 # NOTE: The next line is critical for boot!
117 #proc /proc proc defaults 0 0
118
119 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
120 # POSIX shared memory (shm_open, shm_unlink).
121 # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
122 # use almost no memory if not populated with files)
123 #shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
124
125 #my fstab
126 /dev/hda1 /boot ext3 defaults,noatime 1 2
127 /dev/hda2 none swap sw 0 0
128 /dev/hda3 / ext3 noatime 0 1
129
130 none /proc proc defaults 0 0
131 none /dev/shm tmpfs nodev,nosuid,noexec 0 0
132
133 /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
134 /dev/fd0 /mnt/floppy auto noauto,user 0 0
135 '
136
137 I wondered, should /boot be ext2? Or should I use some of the 'default'
138 entries?
139 Thanks.
140 I looked at the url mentioned it tells me my error(15) is grub not
141 finding my kernel. How do I tell grub to boot my kernel from the
142 command line? It tells me the kernel needs to be loaded first.
143 Gavin.
144
145
146
147 --
148 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] initrd Karol Krizka <kkrizka@×××××.com>
Re: [gentoo-amd64] initrd William Tetrault <xcourse97@×××××××.net>