#clean install fedora without usb

1 messages ยท Page 1 of 1 (latest)

feral python
#

clean install fedora without usb

#

is there anything wrong with this

mighty cradle
#

yes

#

the $ indicates a variable

#

assuming Fedora-Workstation-Live-x86_64-37-1.7.iso is the name of the file you want to use, just remove the $

#

you might have to make it an absolute path tho

feral python
#

I got this error message

mighty cradle
#

jeez

#

what are you even trying to do anyways

feral python
#

making the iso bootable in grub

#

I have no usb

#

and I can't buy one

mighty cradle
#

is this even something you can do

feral python
#

yes

mighty cradle
#

maybe this will help

feral python
#

it refuse to recognize other partition

mighty cradle
#

why cant you buy one?

#

thats a much better solution in almost every way

feral python
#

a tech store is way too far away

mighty cradle
#

have you considered amazon

feral python
#

trust issue with shipping

mighty cradle
#

most generic supermarkets have usb drives in any case

feral python
#

also amazon shipping tax is too expensive

mighty cradle
#

can you burn a cd or something

#

this really just doesnt seem like its worth the effort

feral python
feral python
#

some stuff broke like my xfce

#

what do I fill on

mighty cradle
#

where did you get these initial instructions anyways

feral python
mighty cradle
#

i might have found your problem

#

you didnt install the instructions

#

they have $isofile for a reason

#

its because they declare isofile right here

feral python
#

might be different for fedora

mighty cradle
#

thats a bold assumption

feral python
#

there's a fedora section

#

on the article

mighty cradle
#

ok, then just do that and keep the bloody $isofile

#

because again, they declare $isofile right here

#

you just need to change that path to the absolute path of your file

feral python
#

menuentry "Fedora" {
instmod ext2
set isofile="/home/cfegwuigcvfewdcfvwedcfvh/Downloads/Fedora-Workstation-Live-x86_64-37-1.7.iso"
loopback loop (hd0,3)$isofile
linux (loop)/isolinux/vmlinuz root=live:CDLABEL=Fedora-WS-Live-37-1.7 rd.live.image verbose iso-scan/filename=$isofile
initrd (loop)/isolinux/initrd.img
}

#

this should be it right

#

@mighty cradle

hearty pawn
#

vmlinuz isn't at the root of the iso

#

okay wait nvm you're using loop

hearty pawn
#

how'd it end up in custom pedro_think

#

custom is supposed to be like a boiler plate

feral python
#

I deleted custom

hearty pawn
#

okay nvm just a file for more menu

feral python
#

does grub customizer work

#

it have an option to add boot entry

hearty pawn
#

probably a mistype "insmod"

hearty pawn
# feral python does grub customizer work

I've never used it to add boot entries
all I've ever used that tool for is checking whether my grub update successfully detected windows and can another app that relies on grub see it too
and for changing default boot menuentry and timeouts

hearty pawn
# feral python

so the error came after you added an entry in grub customizer?

#

you've created several versions of your desired boot entry

#

so why not goto grub cli and try em

#

the whatever thing inside of { and } is what gets executed in grub cli

#

help for additional available commands

#

and in the end you press a key to boot

feral python
hearty pawn
#

open file in text editor and remove menu entry

#

use rgrep if youre unsure

feral python
#

I deleted the custom .cfg file and only keeping the original

hearty pawn
#

regrep -n for line number

hearty pawn
feral python
feral python
hearty pawn
#

not re

#

r

#

it's recursive grep

#

just an alias to grep -r

feral python
#

@hearty pawn

hearty pawn
#

grep is used to find a text in a file

#

find text in one file | grep text filename

#

find text in multiple files | grep -r text foldername

#

find text and line number | grep -n text filename

#

all of the above | grep -rn text foldername

feral python
#

menuentry "Fedora" {
insmod ext2
set isofile="/home/cfegwuigcvfewdcfvwedcfvh/Downloads/Fedora-Workstation-Live-x86_64-37-1.7.iso"
loopback loop (hd0,3)$isofile
linux (loop)/isolinux/vmlinuz root=live:CDLABEL=Fedora-WS-Live-37-1.7 rd.live.image verbose iso-scan/filename=$isofile
initrd (loop)/isolinux/initrd.img
}

#

is this script correct

hearty pawn
feral python
#

anything else

hearty pawn
#

yea it looks alright

feral python
#

save it to grub.cfg?

#

@hearty pawn

#

I deleted every other custom scripts

#

only keeping the original .cfg file

hearty pawn
#

should be fine as long as your grub cfg loads the current installation entry

feral python
hearty pawn
#

that's one way

#

update-grub is a wrapper or alias of it

feral python
hearty pawn
#

update-grub

feral python
#

command not found

#

@hearty pawn

hearty pawn
#

okay so you'd have to stick to grub-mkconfig

#

it'll print the whole configuration

#

you can read that

feral python
hearty pawn
#

does no grub command exist?

feral python
hearty pawn
#

woah lol

#

is grub even installed?

feral python
#

no

#

so I install these commands?

#

@hearty pawn

hearty pawn
#

yes you should try installing grub using your package manager

#

cool

feral python
#

@hearty pawn

hearty pawn
#

now check

hearty pawn
#

i think it's called grub2?

#

which distro?

feral python
#

nvm it's grub2

#

it's installed but there's no grub commands

#

@hearty pawn how do I install grub commands

hearty pawn
#

then installing grub to your disk if you haven't done

feral python
#

the commands isn't

hearty pawn
#

then also updating/creating the config file
and you're all set

feral python
hearty pawn
#

you can change /bin to /usr/bin if you want
they are sometimes symlinked sometimes not

#

oh dnf

#

had similar issues

#

update and try again for one

feral python
hearty pawn
#

oh its only name

#

find /bin -name "*grub*"

feral python
#

nothing

hearty pawn
#

so it might not be installed

feral python
#

but grub2 is literally installed

hearty pawn
#

try reinstalling it it's fine

#

just update it using the dnf install command

feral python
#

done

#

command still not found

hearty pawn
#

okay close and open another terminal

feral python
#

still not found in the same terminal app

#

@hearty pawn

hearty pawn
hearty pawn
#

i think when i was going through it even i hit the same wall with grub2-pc until i installed something else

hearty pawn
#

get the search option

feral python
#

@hearty pawn

#

so my ass will have to leave my pc on until there's more support

hearty pawn
#

oh no lol

#

I'm just on and off meetings with usual upskilling assignments

feral python
#

@hearty pawn turn out it's called grub2 instead of grub ๐Ÿ’€

#

I did grub2-mkconfig now what

hearty pawn
#

nvm though

hearty pawn
#

if you did then you didn't break grub yet

feral python
hearty pawn
#

simple grub2-mkconfig -o /boot/grub/grub.cfg should replace the old grub.cfg file there

hearty pawn
hearty pawn
#

grub2-mkconfig | less for scrollable output

feral python
#

still not scrollable

hearty pawn
#

use arrow keys

#

or page up down

feral python
#

can I send these in dm

hearty pawn
#

send it here it's fine

#

you could obscure the uuid fields if you like

feral python
#

too much attachments

hearty pawn
#

it's just one file no?

#

grub.cfg

feral python
#

8 images

#

oh yeah

hearty pawn
#

the file is enough over images

#

i wish i was on pc rn but will have to do

feral python
#

discord refuse to let me upload it

#

is there any alternative way

hearty pawn
#

youre probably uploading it the wrong way ig or like discord has no access depending on what version of the app you installed

feral python
#

upload it as .txt?

hearty pawn
#

easier way would be
cat path/to/grub.cfg > ~/grub.cfg

#

then try uploading the copy

feral python
#

there

#

I uploaded it as an .txt

hearty pawn
#

wait where did you get the casper stuff?

#

I don't recall it being in the iso

#

was it in your iso?

#

oh wait nvm

#

looked at the wrong entry lol

#

both were so close

#
## BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Fedora" {
  set isofile=/home/cfegwuigcvfewdcfvwedcfvh/Downloads/Fedora-Workstation-Live-x86_64-37-1.7.iso
  loopback loop (hd0,1)$Fedora-Workstation-Live-x86_64-37-1.7.iso
  probe --set isolabel --label (loop)
  linux (loop)/isolinux/vmlinuz root=live:CDLABEL=Fedora-WS-Live-37-1-7 rd.live.image verbose iso-scan/filename=$Fedora-Workstation-Live-x86_64-37-1.7.iso
  initrd (loop)/isolinux/initrd.img
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###```
#
### BEGIN /etc/grub.d/50_custom ###
menuentry "Fedora"{
	set root='(hd0,2)'
	search --no-floppy --fs-uuid --set=root f70e9b6a-959e-41ba-b789-4ade49c1b679
	loopback loop /cfegwuigcvfewdcfvwedcfvh/Downloads/Fedora-Workstation-Live-x86_64-37-1.7.iso
	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/cfegwuigcvfewdcfvwedcfvh/Downloads/Fedora-Workstation-Live-x86_64-37-1.7.iso quiet splash locale=en_US bootkbd=us console-setup/layoutcode=us noeject --
	initrd (loop)/casper/initrd.lz
}``` this one looks like your current install
feral python
#

so what do I do

hearty pawn
#

but nope

#

why do both have iso

feral python
#

so do I have to delete one

feral python
#

so I have to make another one

hearty pawn
hearty pawn
feral python
hearty pawn
#

it's similar bash with a lot of ls to know where things are

feral python
#

@hearty pawn

hearty pawn
#

damn

feral python
#

no

#

this happen this time

hearty pawn
#

grub2-mkconfig -o /tmp/dummy change up the file path

hearty pawn
#

anything /tmp or anything

#

it's just redirecting it to a file doesn't matter any

#

it shouldn't matter any file thinkymr weird it errored out

feral python
hearty pawn
#

next boot everything get's deleted in there

feral python
#

alr

hearty pawn
#

it's just testing why it didn't like an already present file

#

it didn't have to do grub.cfg.new

#

tech_jesus wonder why it did that

#

the answer lies at line 268

feral python
#

remove the boot entry with the IDE?

#

I may have to remove the entry with the text editor

#

is it dangerous?

#

@hearty pawn

feral python
hearty pawn
feral python
hearty pawn
feral python
#

which is the old one

hearty pawn
#

ignoring windows

feral python
#

@hearty pawn how do I remove the old boot entry again

#

which one is the old one?

hearty pawn
#

but looking at the config file

#

it's being sourced from a file under /etc/grub.d/

hearty pawn
#

it's supposedly a modular way for grub to add menus

#

so deleting the files deletes em from being generated

feral python
feral python
#

bruh he left

feral python
#

ok deleted that one old entry file

long spade
#

can you remind me what's going on?

#

like a tl;dr for me if possible

feral python
#

tl;dr: my grub script have 2 boot entry and I want to delete the old one but not sure how

long spade
#

I'm going to look some stuff up, see if I can find anything of use

hearty pawn
#

hmm I can't pin so nvm

hearty pawn
#

it's taking multiple files together and putting em in the .cfg
modular approach

feral python
#

I deleted the old script plain text file in etc/grub.d

#

will that do it

hearty pawn
feral python
#

anything else

hearty pawn
#

then running mkconfig command again it shouldn't generate those

feral python
#

done

#

but I have an issue with booting the iso

#

it doesn't detect the .iso

#

and kernel isn't loaded first

#

the main partition (where /home/cfegwuigcvfewdcfvwedcfvh/Downloads/Fedora-Workstation-Live-x86_64-37-1.7.iso is located) isn't mounted automatically when I'm in the bootloader

#

@hearty pawn

hearty pawn
hearty pawn
feral python
hearty pawn
#

oh

#

okay so

#

it doesn't necessarily need to be mounted per se

#

if you do ls (hd0,msdos2)/ then you'd be able to see if its the root partition of your present installation

#

so from there you go ls (hd0,msdos2)/home/user/Downloads/

#

if you see your iso then good

feral python
#

it only run under the grub command line right

hearty pawn
feral python
hearty pawn
#

did you make a note of the .iso label name

feral python
#

yes

hearty pawn
#

if grub can read your disks then you can try to load the iso

feral python
#

after executing the command what's next

#

ok

feral python
hearty pawn
#

and that would mean something went wrong in the boot menu entry earlier

hearty pawn
feral python
#

what sign show the partition is mounted

hearty pawn
#

but before going around with ls

#

it would be better to load the ext2 module
I'm not sure if it auto imports it and thats how grub can read ext4 easily but thats the point of modules in grub using insmod to add support for stuff

hearty pawn
feral python
hearty pawn
#

I'm not sure what youre filesystem youre using
ext4 is the default, what...oh

#

so i think it makes sense why

#

so you'd need to load a module for btrfs

feral python
#

what is it

hearty pawn
#

idk I'd have to look that up

#

and your home is on another subvolume in the same partition?

#

not sure how grub views btrfs

#

how small is the iso? 2-3 gb?

#

maybe you could shrink some partition there

#

idk what you're intending to use the 9gb for so maybe you can reshuffle your partition sizes like merge 24+5 or 6

#

then format the remaining as ext4 and copy the iso there and use that place to load up your iso instead

#

but if you figured out how to use btrfs with grub then thats fine as well

feral python
#

ext1 size can't be increased @hearty pawn

hearty pawn
mighty cradle
#

yeah idk

#

i still think youd be better off just buying a usb drive

long spade
#

this is new to me, I'm also learning as I go

hearty pawn
#

yea i was suggesting they merge part of the 9gb into partition 3 and leave aside 2-3gb for the iso as partition 4 formatted as ext4

feral python
#

with some gb?

#

ok made partition 4

feral python
#

what is the mount command

hearty pawn
#

gzio could be for the compression if there's any

#

can't find much on it except maybe it's integrated by now

feral python
#

In grub cli

feral python
long spade
#

could it be grub-mount?

feral python
#

grub-mount doesn't work on the grub command line

#

it only work on the normal terminal

long spade
#

ah right

hearty pawn
feral python
hearty pawn
#

ls (hdX,msdosX)

feral python
#

the problems is no server is specified and kernel isn't loaded first

hearty pawn
#

what shows up?

feral python
hearty pawn
#

the image is placed somewhere right

#

go to it

#

and added it as loop device

feral python
hearty pawn
#

if you cannot read the disks try loading ext2 module using insmod command

hearty pawn
feral python
#

I did ls

#

the problem is no server is specified

feral python
#

also like I said no server is specified

hearty pawn
# feral python

oof I don't have the iso on me and I'm not home
had to double check if isolinux/vimlinuz exists
and if it does then the loop command didn't work? not sure how you got to that screen, how did you get to that screen though? menu entry or through grub cli?

hearty pawn
feral python
#

and how do I specify the server

hearty pawn
hearty pawn
feral python
#

via grub

#

how do I do that

hearty pawn
hearty pawn
feral python
#

but the server isn't specified

hearty pawn
#

when does that error even show up?

feral python
#

and then I booted to the entry

#

but I still get these 2 errors

hearty pawn
feral python
#

I mounted it

#

the iso isn't detected issue is resolved

hearty pawn
feral python
#

but there's still the other 2

feral python
hearty pawn
#

maybe some error with grub.cfg

#

the server error might even show up on other entries too

feral python
#

how do I fix these errors

hearty pawn
#

the server is irrelevant because we aren't looking to boot from any network

#

the second one about kernel is

#

if you've tried grub cli step by step trying to get the commands right

#

then you could also instead try extracting vmlinuz and initramfs files outside of the iso and use those instead of using the ones inside the iso

feral python
#

or maybe try to ls these folders

hearty pawn
#

to rule out any issue with the loopback not working

feral python
#

how do I do that

#

anyway I'm going to sleep

hearty pawn
#

then you load the ones you copied out of the iso

feral python
hearty pawn
#

then load them up in your kernel and initramfs lines

#

also the rd. whatever parameter is redundant

hearty pawn
#

linux /path/to/vmlinuz root=label:whatever iso-scan/file=etc
initrd /path/to/initram

feral python
#

@hearty pawn you there?

hearty pawn
feral python
hearty pawn
#

yea its fine

hearty pawn
#

looks like the loopback command is what's causing all the issues

#

PCMRKEKW never really liked it anyways

feral python
#

@hearty pawn

hearty pawn
#

without using the (loop)

feral python
hearty pawn
#

Fedora-Xfce-Live-36-1-5

#

I'm trying on my old machine
it's just a pain in the ass to reboot so many times because of the oem error screen

feral python
#

I prefer mainline fedora

hearty pawn
feral python
#

@hearty pawn again what .cfg file to edit, the etc/grub.d one or boot/grub2 one

feral python
hearty pawn
hearty pawn
#

drop the loopback meaning to ignore the line and not use it

#

here's how

#

mixmatch the linux params, last one to let it rip is boot

#

rd.live seems redundant but i didn't try it

#

anyhow I'll take some time to think about this one

#

this was a menu entry template i used to use way back when using grub4dos and booting images off ntfs

menu.lst list entry for Grub4Dos
title OS
find --set-root /OS/OS.iso
map (hd0,1)/OS/OS.iso (0xff)
map --hook
root (0xff)
kernel (hd0,1)/OS/BootLoader/vmlinuz file=/OS/OS.seed noprompt boot=BootLoader persistent iso-scan/filename=/OS/OS.iso quiet splash --
initrd (hd0,1)/OS/BootLoader/initrd
boot
#

it's very shabby, i have to refine it some day but ntfs partitions break alot so not worthwhile ig and coming up with a new one would be better

#

persistent seems like an interesting parameter

hearty pawn
#

grub4dos was for windows

#

grub for windows

#

it added an entry to the windows boot loader
and that entry booted up grub

feral python
#

but I don't use windows