Results 1 to 7 of 7

Thread: How to change "resume device" in initrd

  1. #1

    Default How to change "resume device" in initrd

    Hi everyone,

    I've edited my HDD partition using Gparted. The swap partiton, which was /dev/sda6, has become /dev/sda7.

    I've edited /etc/fstab and /etc/default/grub then run grub-mkconfig (PS: I use GRUB2). But when I ran /sbin/mkinitrd, "resume device" remained /dev/disk/by-id/ata-.........-part6(/dev/sda6)

    By editing which document can I change that

    Thanks

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to change "resume device" in initrd

    On 2014-03-25 11:56, ABGDEZHI wrote:
    >
    > Hi everyone,
    >
    > I've edited my HDD partition using Gparted. The swap partiton, which was
    > /dev/sda6, has become /dev/sda7.
    >
    > I've edited /etc/fstab and */etc/default/grub *then run *grub-mkconfig*
    > (PS: I use GRUB2). But when I ran *_/sbin/mkinitrd_*, "resume device"
    > remained /dev/disk/by-id/ata-.........-part6(/dev/sda6)
    >
    > By editing which document can I change that


    I think you edited the right ones. Maybe you missed an entry. Check
    again. Or post them here for us to check.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  3. #3
    Join Date
    Sep 2012
    Posts
    7,103

    Default Re: How to change "resume device" in initrd

    Could you paste output of mkinitrd? In tags code, please.

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,677
    Blog Entries
    3

    Default Re: How to change "resume device" in initrd

    Quote Originally Posted by ABGDEZHI View Post
    I've edited /etc/fstab and /etc/default/grub then run grub-mkconfig (PS: I use GRUB2). But when I ran /sbin/mkinitrd, "resume device" remained /dev/disk/by-id/ata-.........-part6(/dev/sda6)
    That information is also in "/etc/sysconfig/bootloader" (as DEFAULT_APPEND). I'm not quite sure what uses that, but you could try changing it there.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to change "resume device" in initrd

    On 2014-03-25 21:06, nrickert wrote:
    >
    > ABGDEZHI;2632817 Wrote:
    >> I've edited /etc/fstab and */etc/default/grub *then run *grub-mkconfig*
    >> (PS: I use GRUB2). But when I ran *_/sbin/mkinitrd_*, "resume device"
    >> remained /dev/disk/by-id/ata-.........-part6(/dev/sda6)

    >
    > That information is also in "/etc/sysconfig/bootloader" (as
    > DEFAULT_APPEND). I'm not quite sure what uses that, but you could try
    > changing it there.


    I believe that one is used by grub 1 only.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  6. #6

    Default Re: How to change "resume device" in initrd

    Hello,

    Thanks all for your reply. It turns out that simply reboot my laptop after running grub-mkconfig then run mkinitrd, and the "resume device" is changed!

    Why do most of my stupid questions submitted here end up settled accidentally by myself?

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to change "resume device" in initrd

    On 2014-03-29 00:46, ABGDEZHI wrote:
    >
    > Hello,
    >
    > Thanks all for your reply. It turns out that simply reboot my laptop
    > after running grub-mkconfig then run mkinitrd, and the "resume device"
    > is changed!


    Strange. It should not be that complex.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •