grub->root grub-> setup (hd0)
grub->set root=(hd0,msdos1) #The following line you treat like appending the linux line in any grub bootloader, the same line where rghb quiet usually is. Without a root=device your system won't boot. You can also add rw to the end of it if you want it to boot with read-write permissions. Otherwise you use mount -o remount, rw / when you boot into the bash shell. To have a chance to reset the root password you add init=/bin/sh. I explain that a little more in the next part of this post.grub->linux /vmlinuz-3(tab autocomplete) root=/dev/mapper/cl-root rw init=/bin/sh #make sure .img is added to the end of this next commandgrub->initrd /initramfs-3(tab autocomplete).img grub->boot
1. especially in a case where you're going to be reading files you're going to want to enter the followinggrub->set pager=1 Without this any output you get will simply scroll to the bottom. So if you're trying to view a grub.cfg file without it you'll go straight to the end with no way to scroll up. set pager=1 pipes it to more so you can scroll long blocks of text that are longer than the screen 2. To view all available devices you use the ls commandgrub->ls(hd0) (hd0,msdos2) (hd0,msdos1)2a. To view the files on that device you add / to the end of the devicegrub-> ls (hd0,msdos1)/At this point if your partition is on here you'll see stuff likegrub/ grub2/ vmlinuz-3.10.0-123.el7.x86_64 and a bunch of other files 3. set root=(device) allows you just type / instead of something like (hd0,msdos1)/ when bringing up files
touch /.autorelabel