Jump to content

GRand Unified Bootloader: Difference between revisions

From sexy wiki
Created page with "= GRUB2 = Argument to fix some graphical issues in Proxmox install:<br> <code>nomodeset</code><br> remove == Reset Root Password == 1. enter GRUB2 edit mode 2. modify linux-kernel string by adding <code>rd.break</code> at the end 3. press CTRL+x to boot with entered options 4. use chroot to mount /sysroot to / <code>chroot /sysroot</code>, pwd should read <code>/</code> 5. remount the root file system in read/write mode <code>mount -o remount,rw /</code> 6. run passw..."
 
Line 8: Line 8:
== Reset Root Password ==
== Reset Root Password ==
1. enter GRUB2 edit mode
1. enter GRUB2 edit mode
2. modify linux-kernel string by adding <code>rd.break</code> at the end
2. modify linux-kernel string by adding <code>rd.break</code> at the end
3. press CTRL+x to boot with entered options
3. press CTRL+x to boot with entered options
4. use chroot to mount /sysroot to / <code>chroot /sysroot</code>, pwd should read <code>/</code>
4. use chroot to mount /sysroot to / <code>chroot /sysroot</code>, pwd should read <code>/</code>
5. remount the root file system in read/write mode <code>mount -o remount,rw /</code>
5. remount the root file system in read/write mode <code>mount -o remount,rw /</code>
6. run passwd to set new password <code>passwd</code>
6. run passwd to set new password <code>passwd</code>
7. create hidden file .autorelabel to run SELinux relabeling on all files <code>touch .autorelabel</code>
7. create hidden file .autorelabel to run SELinux relabeling on all files <code>touch .autorelabel</code>
8. <code>exit</code> the chroot shell and <code>reboot</code>
8. <code>exit</code> the chroot shell and <code>reboot</code>

Revision as of 00:57, 29 August 2026

GRUB2

Argument to fix some graphical issues in Proxmox install:
nomodeset

remove

Reset Root Password

1. enter GRUB2 edit mode

2. modify linux-kernel string by adding rd.break at the end

3. press CTRL+x to boot with entered options

4. use chroot to mount /sysroot to / chroot /sysroot, pwd should read /

5. remount the root file system in read/write mode mount -o remount,rw /

6. run passwd to set new password passwd

7. create hidden file .autorelabel to run SELinux relabeling on all files touch .autorelabel

8. exit the chroot shell and reboot