On Fri, Jul 20, 2012 at 3:15 AM, Neil Bothwick <[email protected]> wrote:
> On Thu, 19 Jul 2012 22:09:31 +0300, Andrejs Igumenovs wrote:
>
>> I'm attaching the screenshot of what happens…
>
> Why have you zipped a JPEG file? It makes it far more work for anyone to
> view.
>
> You probably haven't compiled the driver for your disk controller into
> the kernel (not ass a module).
>
>
> --
> Neil Bothwick
>
> Who messed with my anti-paranoia shot?

Sometimes the disk order gets messed up on boot. My first disk (as per
SATA bus) sometimes gets the letter sdb instead of sda. The solution
is to use disk labels. Label your file systems (e2label, if you're
using ext* FS, or xfs_admin for xfs).
Uncomment DISKLABEL="yes" in genkernel if not already.

And specify disk partitions as root=LABEL=FOO where FOO is the label
you used for root filesystem. Do not forget to update fstab with the
same (using labels).

Here's my fstab for a sample and grub.cfg (grub2); posting only relevant lines.

FSTAB-
LABEL=Gentoo                    /               ext4
defaults,noatime,discard                                        0 1

grub.cfg-
linux   /boot/kernel-genkernel-x86_64-3.4.4-gentoo-ck2
real_root=UUID=90e64854-d65c-4419-a629-4e2ca621a7a0 ro
real_rootflags=noatime,discard,data=writeback rootfstype=ext4

Since I use grub2-mkconfig to generate the configuration, it's there
with UUID, but it works with LABEL as well, I have tried it.
Also, *don't* build your kernel *without* initramfs, because the
kernel by default doesn't support mounting by LABELs or UUIDs (I think
so, I've had failures w/o initrd).

--
Nilesh Govindarajan
http://nileshgr.com

Reply via email to