contact at nileshgr
Jul 19, 2012, 11:09 PM
Post #6 of 6
On Fri, Jul 20, 2012 at 3:15 AM, Neil Bothwick <neil [at] digimed> 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
> 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.
LABEL=Gentoo / ext4
defaults,noatime,discard 0 1
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).