DISCUSSION: HOWTO GRUB BOOTLOADER AND TROUBLE-SHOOTER
This thread is to discuss the article titled: HOWTO GRUB BOOTLOADER AND TROUBLE-SHOOTER
|
Mods
I had forgotten which version I had submitted for the answer section. When you get a chance can you take a snapshot of this link as it has an expanded troubleshooter which is tooo large to have on the one posting. http://www.linuxquestions.org/questi...hreadid=237511 Alternatively, as mods have better powers, can you make it one large post......I think I will hit the 25000 character limit wc? So its http://www.linuxquestions.org/questi...hreadid=237511 with an embed of http://www.linuxquestions.org/questi...postid=1413211 at the section on trouble shooting? Feel free to tell me the correct way to request an update please. |
hello there aus9, you sound very clued up about the GRUB boot-loader. I have a question about it, i have a computer with Red Hat 9 on it, but no boot-loader, which my computer tech loaded for me. he has now left the company, and i do not have contact with him. the red hat computer has been switched off, and the tech did not leave the 'root' password. so my question is, am i able to loader grub onto the computer, through a floppy disk before the login page, as i can not get to the desktop. or do you know of any way that i could load the system, without wiping off the red hat that i have on at the moment?
|
see my reply on this thread please
http://www.linuxquestions.org/questi...hreadid=191173 |
systemrescu cd
systemrescue cd
for x86_64-efi usb su as root or sudo gdisk /dev/sdX (X from fdisk-l ) to make a gpt (many patition usb) o n default (1) default (start at begining) +3G (large enough for systemrescuecd or more) l (ef00) x e w mkfs.vfat -F 32 /dev/sdX (X from fdisk-l partition=1)(to format the new partition) mkdir /mnt/my_usb (my_usb = any name) mount /dev/sdX1 /mnt/my_usb (X from fdisk-l 1=partition) download refind-bin zip sudo ./refind-install --usedefault /dev/sdX1 --alldrivers (X from fdisk-l 1=partition) grub-install --target=x86_64-efi /dev/sdX (X from fdisk-l 1=partition makes bootable may need --removable option ) (see further down for i386-pc grub.cfg menu) e2lable, tune2fs -L, ntfslabel, mkfs -L gparted to label (your_label_name) /dev/sdX (X from fdisk-l 1=partition to add in /mnt/my_usb/EFI/boot/refind.conf) blkid to get UUID or PARTUUID of /dev/sdX (to add in /mnt/my_usb/EFI/boot/refind.conf) menuentry "Sysrescucd" { icon /EFI/refind/icons/os_arch.png # volume "sysrsccd" loader /EFI/boot/sysresccd/boot/x86_64/vmlinuz initr /EFI/boot/sysresccd/boot/x86_64/sysresccd.img options "root=(from blkid) archisobasedir=/EFI/boot/sysresccd archisolabel=(your_label_name) copytoram " # submenuentry "Boot using fallback initramfs" { # initrd /boot/initramfs-linux-fallback.img # } # submenuentry "Boot to terminal" { # add_options "systemd.unit=multi-user.target" # } # disabled } download systemrescuecd iso mkdir /mnt/iso mount -o loop systemrescue-11.00-amd64.iso /mnt/iso (iso = any name) copy /mnt/iso/systemresccd to /mnt/my_usb/EFI/boot for i386-pc grub.cfg fdisk /dev/sdX (X from fdisk-l to make a msdos usb) o (make msdos ) n p 1 (default n default (1) default (start at begining) +3G (large enough for systemrescuecd or more) t 83 mkfs.ext4 or what want on umount /dev/sdX (X from fdisk-l to format partition) e2lable, tune2fs -L, ntfslabel, mkfs -L gparted to label (your_label_name) /dev/sdX1 (your_lable_name=any name X from fdisk-l to label partition ) mkdir /mnt/my_usb (my_usb = any name) mount /dev/sdX1 /mnt/my_usb (X from fdisk-l 1=partition) download systemrescuecd iso mkdir /mnt/iso mount -o loop /mnt/iso (iso = any name) mkdir /mnt/my_usb/boot mount /dev/sdX1 /mnt/my_usb (my_usb= any name X from fdisk-l 1=partition) mkdir /mnt/my_usb/boot download systemrescuecd iso mkdir /mnt/iso mount -o loop systemrescue-11.00-amd64.iso /mnt/iso (iso = any name) copy /mnt/iso/systemresccd to /mnt/my_usb//boot grub-mkconfig -o /mnt/my_usb/boot/grub/grub.cfg grub-install --target=i386-pc --boot-directory=/mnt/my_usb/boot --recheck --no-floppy --force /dev/sdX (my_usb = any name X from fdisk-l 1=partition may need --removable option) this makes grub-install reinstall not possble? can wipe usb with dd and start fresh e2lable, tune2fs -L, ntfslabel, mkfs -L gparted to label (your_label_name) /dev/sdX (X from fdisk-l 1=partition toadd in /mnt/my_usb/boot/grub/grub.cfg) menuentry 'sysrecuecd on sda1' { load\_video set gfxpayload=keep insmod gzio insmod part\_msdos insmod lvm insmod ext2 set root='hd0,msdos1' echo 'Loading Linux linuxv ...' linux /boot/sysresccd/boot/x86\_64/vmlinuz archisobasedir=/boot/sysresccd archisolabel=(your\_label\_name) copytoram iomem=relaxed initrd /sysresccd/boot/x86\_64/sysresccd.img } if want add menu.lst & grldr(grub4dos) & bootlace.com to /mnt/my_usb to do bootlace.com /dev/sdX (X from fdisk-l 1=partition) menuentry "boot grldr or ntldr " { insmod part_msdos insmod ext2 set root='hd0,msdos1' insmod ntldr ntldr /grldr } |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 07:50 PM. |