Thursday, November 27, 2025

GRUB FILE

This just to show that I am not only a writer but I can work on CODE .

I won't tell you how I got these files.

If YOU modify this file the commuter won't boot.

Even if it boots file wont be accessible

This file i am going to include in my book, Linux Essentials 

Properties of GRUB File

Create....

Type                Unknown

Open with    No registered file type

Location        /run/media/me/32 character cod/grub

Size                25.4KiB(26.060)

Created        Thursday,27Noveber2:56:51pm Australian Eastern Standard Time

Modified    Thursday,27Noveber2:56:51pm Australian Eastern Standard Time

Accessed    Thursday,27Noveber2:56:51pm Australian Eastern Standard Time

 Length of the file 39 lines but contents are bit different and my even I cannot read, even though I am the owner

I do not own the Grub Editor environment once it is saved.

I used to EDIT this file 25 years ago and see what happens with the Redhat book by the side.

I quickly switched to Linux Bible which on the try covered by files note books and various items including few photocopies of web pieces i made with www.writeclique.com of British council Library, in Ceylon, now defunct. 

 

This is the GRUB of ROSA which is based on Redhat  

1. set default=1

set timeout=30

set gfxpayload=keep

set gfxoutput=1

set localedir ${prefix}/locale

set theme=/EFI/BOOT/themes/rosa/theme.txt

insmod regexp

insmod gzio

insmod part_gpt

insmod part_msdos

insmod ext2

insmod iso9660

insmod gettext

if [ x$gfxoutput = x1 ]; then

set gfxmode=1024x768,1024x600,800x600,640x480

insmod gfxterm

terminal_output gfxterm

insmod gfxmenu

insmod png

export theme

background_image -m stretch /EFI/BOOT/themes/rosa/terminal_background.png

loadfont /EFI/BOOT/themes/rosa/unicode.pf2

loadfont /EFI/BOOT/themes/rosa/terminus-18b.pf2

loadfont /EFI/BOOT/themes/rosa/terminal_font_11.pf2

else

terminal_input console

terminal_output console

fi

for langstr in  en_US=English ru_RU=Русский it_IT=italiano de_DE=Deutsch  fr_FR=Français pt_PT=Português es_ES=Español ar_SA=العربية zh_CN=普通话  ; do

   regexp -s 2:langname -s 1:langcode '(.*)=(.*)' "$langstr"

   if [ x$gfxoutput = x1 ]; then

       menutext="${langname}"

  39.elseGRUB Environment Block

 

This my Grub file with lot of hashes 

1. # WARNING: Do not edit this file by tools other than grub-editenv!!!

menu_auto_hide=1

boot_success=1

saved_entry=osprober-gnulinux-simple-4ed59ddb-7293-4f66-b0af-471ab1232f63

6 to 39 filled with hashes 

6 to 39#############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################

No comments:

Post a Comment