Partition boot order

Harald Hoyer harald.hoyer at gmail.com
Mon Feb 13 10:25:27 UTC 2012


Am 12.02.2012 17:57, schrieb Frank Murphy:
> In the box there are two physical drives
> /dev/sda, /dev/sdb both gpt formatted. and encrypted where necessary
> "/, swap, home"
> 
> How can I change the default booting order.
> 
> /dev/sda3 "swap" always comes up first. when booting up.
> 
> How can I change this behaviour so:
> /dev/sda4 "/" comes up first.
> 
> This will enable me to use a keyfile to unlock
> "home, swap".
> with / being the only manual pw entry.
> 
> Have looked at both /etc/fstab and /etc/crypttab.
> and googled without success on this issue.
> 
> 

For example:

# blkid /dev/sda4
/dev/sda3: UUID="e9e189e2-74b8-4db8-9569-32c24e460672" TYPE="crypto_LUKS"

So, you add "rd.luks.uuid=e9e189e2-74b8-4db8-9569-32c24e460672" to your kernel
command line in grub*.cfg

# man dracut.kernel

Also: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html#id434217


More information about the users mailing list