LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 02-09-2005, 01:04 PM   #1
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Post DISCUSSION: HOWTO GRUB BOOTLOADER AND TROUBLE-SHOOTER


This thread is to discuss the article titled: HOWTO GRUB BOOTLOADER AND TROUBLE-SHOOTER
 
Old 02-09-2005, 07:41 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-01-2005, 12:13 PM   #3
corn_jo
LQ Newbie
 
Registered: Jun 2004
Location: England, surrey
Posts: 4

Rep: Reputation: 0
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?
 
Old 03-02-2005, 02:37 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Original Poster
Rep: Reputation: Disabled
see my reply on this thread please
http://www.linuxquestions.org/questi...hreadid=191173
 
Old 04-15-2024, 12:18 PM   #5
visigal@gmail.com
LQ Newbie
 
Registered: Mar 2024
Posts: 7

Rep: Reputation: 0
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
}

Last edited by visigal@gmail.com; 04-17-2024 at 09:48 AM.
 
Old 04-15-2024, 12:41 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by visigal@gmail.com View Post
systemrescue cd for x86_64-efi usb
Code:
su as root or sudo
gdisk /dev/sdX (X from fdisk-l )
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)
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/sdb1 --alldrivers
grub-install --target=x86_64-efi --removable /dev/sdX (X from fdisk-l 1=partition makes bootable)
for refind.conf step furter down
(see further down for i386-pc grub.cfg menu)
mkdir /mnt/my_usb (my_usb = any name)
mount /dev/sdX1 /mnt/my_usb (X from fdisk-l 1=partition)
for me mount /dev/sdb1 /mnt/my_usb
in /mnt/my_usb/EFI/boot/refind.conf
e2lable, tune2fs -L, ntfslabel, mkfs -L gparted to label (your_label_name) usb /dev/sdX (X from fdisk-l 1=partition)
blkid to get UUID or PARTUUID to add 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
if not already fdisk /dev/sdX (X from fdisk-l )
o (make msdos )
n
p
1 (default
n
default (1)
default (start at begining)
+3G (large enough for systemrescuecd or more)
t 83
fdisk /dev/sdX (X from fdisk-l )
mkfs.ext4 or what want on umount /dev/sdX
e2lable, tune2fs -L, ntfslabel, mkfs -L gparted to label (your_label_name) usb (/dev/sdb1)
mkdir /mnt/my_usb (my_usb = any name)
mount /dev/sdX1 /mnt/my_usb (X from fdisk-l 1=partition)
for me mount /dev/sdb1 /mnt/my_usb
download systemrescuecd iso
mkdir /mnt/iso
mount -o loop /mnt/iso (iso = any name)
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-install --target=i386-pc --boot-directory=/mnt/my_usb/ --recheck --no-floppy --force /dev/sdX (my_usb = any name X from fdisk-l 1=partition)
grub-install --target=i386-pc --removable /dev/sdb (makes bootable)
grub-mkconfig -o /mnt/my_usb/grub/grub.cfg
e2lable, tune2fs -L, ntfslabel, mkfs -L gparted to label (your_label_name) usb /dev/sdX (X from fdisk-l 1=partition)
blkid to get UUID or PARTUUID to add to
add in /mnt/my_usb/grub/
add to 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
Is there an actual point to this?? You re-opened a thread that had been closed for *NINETEEN YEARS*, and posted something with zero explanation of what the commands do, single-letters in some cases, with paths that may or may not matter to others. Blindly following anything you've posted here may totally WIPE someone elses system.
 
Old 04-16-2024, 05:25 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by TB0ne View Post
Is there an actual point to this?? You re-opened a thread that had been closed for *NINETEEN YEARS*, and posted something with zero explanation of what the commands do, single-letters in some cases, with paths that may or may not matter to others. Blindly following anything you've posted here may totally WIPE someone elses system.
poster is just a spammer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: SUID - HOWTO krishvij LinuxAnswers Discussion 12 12-21-2010 01:23 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
discussion new GRUB trouble-shooter aus9 Linux - Software 1 01-17-2005 02:31 AM
DISCUSSION: GRUB bootloader aus9 LinuxAnswers Discussion 1 10-01-2004 09:58 AM
GRUB Bootloader Trouble inline.skater Linux - Newbie 4 06-13-2004 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration