public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: Re: [gentoo-user] /dev/sda* missing at boot
  2011-08-19 13:48       ` Alan McKinnon
@ 2011-08-19 15:06 frares
  2011-08-19 15:20 ` Alan McKinnon
  -1 siblings, 1 reply; 222+ messages in thread
From: frares @ 2011-08-19 15:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 3090 bytes --]

Em 19/08/2011 10:48, Alan McKinnon <alan.mckinnon@gmail.com> escreveu:
> On Fri 19 August 2011 13:12:25 frares@gmail.com did opine thusly:

> > I the case I don't need a initram, I guess that the grub line for
> > parameter passing to the kernel would be empty. Am I wrong?

> Yes.

> Using or not using kernel parameters has nothing to do with whether
> you use an initramfs or not.

> It's the initrd line in grub you do not need.

> >
> > I was just looking on how to build my own initram. What is it
> > supposed to do anyway?

> First, it's initramfs (the previous incarnation was initrd). You
> should use the correct name.

> An initramfs is a filesystems image stored on disk in a place that
> grub can find. It contains a kernel, essential drivers and other bits
> and pieces. When booting, grub finds the image, bangs it into memory
> and instructs the cpu to start executing at a known point.

> Why is this useful?

> For Gentoo it usually isn't (there are times when it is - see below).
> Binary distros like Ubuntu and Fedora absolutely require this. These
> distros do not know what hardware you have and what drivers you
> require, so they supply drivers for everything. But Ubuntu cannot
> possibly compile into the kernel every possible driver you might need
> to boot as the list would be huge (every known floppy, CD, USB, every
> known MFM, IDE, SATA, SCSI, netboot, Fibre and more driver for a
> start), so what they do instead is probe the hardware at boot time,
> find out what you have, and load the driver modules you DO need.

> This is the problem. The kernel wants to load disk drivers so that it
> can access the disk and continue booting. Where are the drivers? Well,
> they are on the disk. Oops, circular problem.

> The difficulty is not finding and loading drivers, it's how do you get
> the disk driver off the disk before you have the disk driver in
> memory? (think chicken and egg here).

> An initramfs solves this nicely. Grub shoved a disk image into memory
> when it booted. The kernel knows how to access it's memory it doesn't
> need a driver for that. And now the files containing the needed
> drivers are on a virtual disk *in memory*. The kernel loads them, and
> can now access the real physical disks.

> Lots more complicated stuff then happens, like getting rid of the
> virtual filesystem from the initramfs and mounting the real filesystem
> from disk at /, but that's beyond the scope of this mail.

> Gentoo mostly doesn't need any of this because you do know your
> hardware and can just compile your disk drivers into the kernel - this
> is the very thing that Ubuntu cannot do.

> Some Gentoo users still need an initramfs, such as booting off drives
> in a RAID configuration. They need the RAID drivers first to read the
> disks so use an initramfs to fix this little problem exactly as Ubunut
> fixes their problem.

> Make sense?


Completely! Thanks a lot.

So I guess that my problem is to find an appropriate pair of driver and  
hard disk operating mode.

> --
> alan dot mckinnon at gmail dot com


Thanks again
Francisco

[-- Attachment #2: Type: text/html, Size: 3768 bytes --]

^ permalink raw reply	[flat|nested] 222+ messages in thread
* [gentoo-user] /dev/sda* missing at boot
@ 2011-08-18 18:59 frares
  2011-08-18 19:08 ` András Csányi
                   ` (3 more replies)
  0 siblings, 4 replies; 222+ messages in thread
From: frares @ 2011-08-18 18:59 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1025 bytes --]

Hi, guys

It is a shame, I know, but after several years using Gentoo, it is the  
first time I try to build a kernel without "genkernel".

And now I can't boot to that new kernel, it does not find (and really do  
not have a) /dev/sda* root partition ("real-root"); during the boot it  
stops, complaining about that, gives me the option to get a shell, from  
which I am able to see that there is no /dev/sda* .

I have included everything SATA, so it looks like that is not a kernel  
problem, but a initramfs issue, I guess.

What am I missing?

Thanks a lot
Francisco

PS: my boot partition is sda2, sda3 is a swap partition, and everything  
else is in sda4. sda1 is not used (up to now) and this is my grub.conf :

title Gentoo Linux 2.6.39-gentoo-r3
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 ro root=/dev/ram0  
init=/linuxrc real_root=/dev/sda4 vga=0x318 video=uvesafb:1024x768-32  
nodevfs udev devfs=nomount quiet CONSOLE=/dev/tty1
initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3

[-- Attachment #2: Type: text/html, Size: 1280 bytes --]

^ permalink raw reply	[flat|nested] 222+ messages in thread

end of thread, other threads:[~2011-09-14  5:37 UTC | newest]

Thread overview: 222+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CA czFiDeW6L8aYBWkch4Fu TrkXVtdJc3y11U1UY2hMsq1HZdA@mail.gmail.com>
2011-08-18 19:17 ` Re: [gentoo-user] /dev/sda* missing at boot frares
2011-08-18 19:26   ` frares
2011-08-18 19:42     ` Michael Mol
2011-08-18 23:29       ` Peter Humphrey
2011-08-19 15:06 frares
2011-08-19 15:20 ` Alan McKinnon
  -- strict thread matches above, loose matches on Subject: below --
2011-08-18 18:59 frares
2011-08-18 19:08 ` András Csányi
2011-08-18 19:13 ` Michael Mol
2011-08-19  5:33   ` Graham Murray
2011-08-19  1:44 ` Matthew Finkel
2011-08-19  2:27 ` Mark Knecht
2011-08-19 10:09   ` Mick
2011-08-19 13:12     ` frares
2011-08-19 13:41       ` Gregory Woodbury
2011-08-19 22:08         ` Dale
2011-08-20  7:04           ` Mick
2011-08-20  7:17             ` Dale
2011-08-20  8:29               ` Alan McKinnon
2011-08-20  8:48                 ` Dale
2011-08-20  8:57                   ` Alan McKinnon
2011-08-20 12:55                     ` Mick
2011-09-06 23:06                     ` Dale
2011-09-07  5:09                       ` William Hubbs
2011-09-07  5:24                         ` Dale
2011-09-07 17:23                           ` Dan Johansson
2011-09-07 17:52                             ` Canek Peláez Valdés
2011-09-07 18:09                               ` Michael Mol
2011-09-07 18:28                                 ` Canek Peláez Valdés
2011-09-07 19:07                                   ` Michael Mol
2011-09-07 19:10                                     ` Canek Peláez Valdés
2011-09-07 19:19                                     ` Alex Schuster
2011-09-07 19:24                                       ` Michael Mol
2011-09-07 19:27                                         ` Canek Peláez Valdés
2011-09-07 22:54                               ` Neil Bothwick
2011-09-07 23:04                                 ` Canek Peláez Valdés
2011-09-07 23:39                                   ` Michael Mol
2011-09-08  3:23                                     ` Canek Peláez Valdés
2011-09-08 10:11                                       ` Alan McKinnon
2011-09-08 15:32                                         ` Canek Peláez Valdés
2011-09-08 20:24                                           ` Alan McKinnon
2011-09-08 20:37                                             ` Canek Peláez Valdés
2011-09-08 21:03                                               ` Dale
2011-09-08 22:55                                                 ` Canek Peláez Valdés
2011-09-09  2:55                                                   ` Dale
2011-09-09 15:29                                                     ` Canek Peláez Valdés
2011-09-09  9:10                                                   ` Joost Roeleveld
2011-09-08 17:30                                       ` pk
2011-09-08 18:40                                         ` Canek Peláez Valdés
2011-09-09  5:04                                           ` pk
2011-09-07 23:55                                   ` Neil Bothwick
2011-09-08  3:30                                     ` Canek Peláez Valdés
2011-09-08  3:39                                       ` Dale
2011-09-08 14:51                                         ` Canek Peláez Valdés
2011-09-08 15:15                                           ` Michael Mol
2011-09-08 15:40                                             ` Canek Peláez Valdés
2011-09-08 15:58                                             ` Neil Bothwick
2011-09-08 16:11                                               ` Michael Schreckenbauer
2011-09-08 16:45                                                 ` Canek Peláez Valdés
2011-09-08 17:11                                                   ` Michael Schreckenbauer
2011-09-08 17:22                                                     ` Canek Peláez Valdés
2011-09-08 20:05                                                     ` Alan McKinnon
2011-09-08 20:23                                                       ` Canek Peláez Valdés
2011-09-08 20:43                                                         ` Michael Schreckenbauer
2011-09-08 20:48                                                           ` Canek Peláez Valdés
2011-09-08 21:04                                                             ` Michael Schreckenbauer
2011-09-08 21:11                                                             ` Alan McKinnon
2011-09-08 22:36                                                               ` Canek Peláez Valdés
2011-09-08 23:23                                                                 ` Alan McKinnon
2011-09-08 23:34                                                                   ` Canek Peláez Valdés
2011-09-09 11:35                                                                     ` Alan McKinnon
2011-09-08 21:29                                                           ` Alan Mackenzie
2011-09-08 21:44                                                             ` Alan McKinnon
2011-09-08 22:06                                                               ` Michael Schreckenbauer
2011-09-08 22:31                                                               ` Alan Mackenzie
2011-09-08 23:05                                                                 ` Alan McKinnon
2011-09-08 21:04                                                         ` Alan McKinnon
2011-09-08 20:40                                                       ` Michael Schreckenbauer
2011-09-08 20:56                                                         ` Alan McKinnon
2011-09-08 21:06                                                           ` Michael Schreckenbauer
2011-09-08 21:38                                                             ` Alan McKinnon
2011-09-08 22:28                                                               ` Michael Schreckenbauer
2011-09-08 23:01                                                                 ` Alan McKinnon
2011-09-08 17:35                                           ` pk
2011-09-08 17:47                                             ` Michael Mol
2011-09-08 18:11                                               ` pk
2011-09-08 19:01                                               ` Canek Peláez Valdés
2011-09-08 19:40                                                 ` Michael Mol
2011-09-09  9:39                                                 ` Joost Roeleveld
2011-09-08 18:41                                             ` Canek Peláez Valdés
2011-09-09  5:18                                               ` pk
2011-09-08  7:59                                       ` Neil Bothwick
2011-09-08 15:08                                         ` Canek Peláez Valdés
2011-09-08  1:37                                 ` David W Noon
2011-09-08  2:49                                   ` Dale
2011-09-08  3:33                                   ` Canek Peláez Valdés
2011-09-08  8:09                                     ` Michael Schreckenbauer
2011-09-08 15:13                                       ` Canek Peláez Valdés
2011-09-08 16:06                                         ` Michael Schreckenbauer
2011-09-08 16:34                                           ` Canek Peláez Valdés
2011-09-08 17:01                                             ` Michael Schreckenbauer
2011-09-08 17:18                                               ` Canek Peláez Valdés
2011-09-08 17:45                                                 ` Michael Mol
2011-09-08 19:00                                                   ` Canek Peláez Valdés
2011-09-08 19:37                                                     ` Michael Mol
2011-09-08 20:03                                                       ` Canek Peláez Valdés
2011-09-08 20:57                                                         ` Michael Mol
2011-09-09  8:11                                                         ` Paul Colquhoun
2011-09-09  8:53                                                           ` Dale
2011-09-09  9:15                                                             ` Alan McKinnon
2011-09-10  1:25                                                               ` Dale
2011-09-10  1:32                                                                 ` Michael Mol
2011-09-10  1:58                                                                   ` Dale
2011-09-10  7:30                                                                     ` Alan McKinnon
2011-09-10  7:54                                                                       ` Dale
2011-09-10 10:00                                                                         ` Alan McKinnon
2011-09-10 14:59                                                                           ` Dale
2011-09-10 15:52                                                                             ` Pandu Poluan
2011-09-10 16:34                                                                             ` Alex Schuster
2011-09-10 21:15                                                                               ` Alan McKinnon
2011-09-10 21:28                                                                                 ` Dale
2011-09-10 22:35                                                                                 ` Alex Schuster
2011-09-11  9:37                                                                                   ` Peter Humphrey
2011-09-12  8:41                                                                                     ` Neil Bothwick
2011-09-12  8:40                                                                                 ` Neil Bothwick
2011-09-12  8:37                                                                               ` Neil Bothwick
2011-09-12  8:55                                                                                 ` Alex Schuster
2011-09-12  8:35                                                                             ` Neil Bothwick
2011-09-10 17:33                                                                         ` William Kenworthy
2011-09-10 18:12                                                                           ` William Kenworthy
2011-09-10 18:21                                                                             ` Dale
2011-09-12  7:12                                                                         ` Joost Roeleveld
2011-09-12 12:14                                                                           ` Mike Edenfield
2011-09-12 12:28                                                                             ` Joost Roeleveld
2011-09-12 14:47                                                                               ` Pandu Poluan
2011-09-12 15:29                                                                                 ` Michael Mol
2011-09-12 15:44                                                                                   ` Joost Roeleveld
2011-09-12 16:56                                                                                 ` Dale
2011-09-10  7:16                                                                 ` Alan McKinnon
2011-09-10  7:56                                                                   ` Dale
2011-09-12  7:17                                                                     ` Joost Roeleveld
2011-09-12  7:49                                                                       ` Dale
2011-09-09 11:35                                                             ` Alex Schuster
2011-09-09 12:46                                                               ` Mick
2011-09-09 16:44                                                               ` pk
2011-09-09 17:04                                                                 ` Alex Schuster
2011-09-09 17:09                                                                   ` Michael Mol
2011-09-10  1:10                                                                   ` Dale
2011-09-10  1:01                                                                 ` Dale
2011-09-10 10:56                                                                   ` Alex Schuster
2011-09-10 15:52                                                                     ` Dale
2011-09-10 22:02                                                               ` Keith Dart
2011-09-10 22:51                                                                 ` Alex Schuster
2011-09-10 23:40                                                                   ` Keith Dart
2011-09-11 11:59                                                                     ` Alex Schuster
2011-09-09 17:24                                                             ` pk
2011-09-09 17:53                                                               ` Michael Schreckenbauer
2011-09-10  1:15                                                                 ` Dale
2011-09-10  1:23                                                                   ` Michael Mol
2011-09-10  1:49                                                                     ` Dale
2011-09-10  7:17                                                                       ` pk
2011-09-10  7:36                                                                     ` Alan McKinnon
2011-09-10 10:24                                                                       ` Mick
2011-09-10 16:09                                                                         ` Dale
2011-09-10 16:19                                                                           ` Michael Mol
2011-09-10 16:36                                                                             ` Pandu Poluan
2011-09-10 16:50                                                                               ` Michael Mol
2011-09-10 16:47                                                                             ` Dale
2011-09-10 21:28                                                                             ` Alan McKinnon
2011-09-11  8:22                                                                               ` Mike Edenfield
2011-09-11  8:54                                                                                 ` Pandu Poluan
2011-09-11  9:51                                                                           ` pk
2011-09-10 10:43                                                                   ` Alex Schuster
2011-09-11  3:16                                                               ` Paul Colquhoun
2011-09-11  7:29                                                                 ` Alan McKinnon
2011-09-11 12:26                                                                 ` Alex Schuster
2011-09-11 18:56                                                                 ` Dale
2011-09-11 19:37                                                                   ` Mick
2011-09-11 21:07                                                                     ` Dale
2011-09-11 21:46                                                                       ` David W Noon
2011-09-11 22:08                                                                         ` Dale
2011-09-12  1:44                                                                         ` James Wall
2011-09-12  8:12                                                                           ` Joost Roeleveld
2011-09-12 19:07                                                                           ` David W Noon
2011-09-12  7:45                                                               ` Joost Roeleveld
2011-09-12  8:32                                                                 ` Alex Schuster
2011-09-12  8:49                                                                 ` Neil Bothwick
2011-09-12  9:07                                                                   ` Joost Roeleveld
2011-09-12  9:13                                                                     ` Neil Bothwick
2011-09-12  9:34                                                                       ` Joost Roeleveld
2011-09-12 10:57                                                                         ` Neil Bothwick
2011-09-14  5:01                                                         ` Walter Dnes
2011-09-08 19:48                                         ` Alan McKinnon
2011-09-08 20:21                                           ` Canek Peláez Valdés
2011-09-08 20:38                                             ` Alan McKinnon
2011-09-08 20:46                                               ` Canek Peláez Valdés
2011-09-08 21:25                                                 ` Alan McKinnon
2011-09-08 16:44                                     ` David W Noon
2011-09-08 16:56                                       ` Canek Peláez Valdés
2011-09-08 18:05                                         ` David W Noon
2011-09-08 19:13                                           ` Canek Peláez Valdés
2011-09-08 20:25                                             ` David W Noon
2011-09-08 20:42                                               ` Canek Peláez Valdés
2011-09-08 22:33                                                 ` Mick
2011-09-08 22:39                                                   ` Canek Peláez Valdés
2011-09-08 23:00                                                     ` Alan McKinnon
2011-09-08 23:26                                                       ` Canek Peláez Valdés
2011-09-09  6:22                                                         ` Mick
2011-09-09  7:35                                                           ` Dale
2011-09-08 22:51                                                 ` David W Noon
2011-09-08 20:45                                               ` Alan McKinnon
2011-09-08 23:32                                                 ` David W Noon
2011-09-09 11:41                                   ` Alex Schuster
2011-09-09 12:44                                     ` Dale
2011-09-09 14:02                                       ` Alex Schuster
2011-09-10  1:20                                         ` Dale
2011-09-09 18:16                                     ` David W Noon
2011-09-09 19:57                                       ` Alex Schuster
2011-08-20 12:53                   ` Gregory Woodbury
2011-08-20 12:59                   ` David W Noon
2011-08-20 13:29                     ` Mick
2011-08-20 13:58                       ` Pandu Poluan
2011-08-20 15:32                         ` David W Noon
2011-08-20 14:22                       ` Alan McKinnon
2011-08-19 13:48       ` Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox