#clean install fedora without usb
1 messages ยท Page 1 of 1 (latest)
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
I got this error message
is this even something you can do
yes
unetbootin doesn't work
it refuse to recognize other partition
a tech store is way too far away
have you considered amazon
trust issue with shipping
most generic supermarkets have usb drives in any case
also amazon shipping tax is too expensive
can you burn a cd or something
this really just doesnt seem like its worth the effort
there's no cd drive
would be
some stuff broke like my xfce
what do I fill on
where did you get these initial instructions anyways
i might have found your problem
you didnt install the instructions
they have $isofile for a reason
its because they declare isofile right here
this was for ubuntu
might be different for fedora
thats a bold assumption
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
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
isn't this all part of grub.cfg?
how'd it end up in custom 
custom is supposed to be like a boiler plate
I deleted custom
probably a mistype "insmod"
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
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
how do i delete it
I deleted the custom .cfg file and only keeping the original
regrep -n for line number
and did you recreate it or mkconfig after?
no
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
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
change instmod to insmod
thats a typo
anything else
yea it looks alright
save it to grub.cfg?
@hearty pawn
I deleted every other custom scripts
only keeping the original .cfg file
should be fine as long as your grub cfg loads the current installation entry
how do I make it loads the current installation entry
grub mkconfig
that's one way
update-grub is a wrapper or alias of it
what is the full command for it
update-grub
okay so you'd have to stick to grub-mkconfig
it'll print the whole configuration
you can read that
grub-mkconfig doesn't exist too
grub tab tab
does no grub command exist?
yes
@hearty pawn
now check
oh lol
i think it's called grub2?
which distro?
nvm it's grub2
it's installed but there's no grub commands
@hearty pawn how do I install grub commands
GNU GRUB Manual 2.06
by installing grub using package manager
then installing grub to your disk if you haven't done
but it's installed
the commands isn't
then also updating/creating the config file
and you're all set
okay so umm
you can do find /bin --name="*grub*"
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
so it might not be installed
but grub2 is literally installed
okay close and open another terminal
can you search for how many packages are named grub
how
i think when i was going through it even i hit the same wall with grub2-pc until i installed something else
oh no lol
I'm just on and off meetings with usual upskilling assignments
i was looking at the grub2-pc dependencies though, and the executables are stored in sbin apparently /usr/sbin https://packages.fedoraproject.org/pkgs/grub2/grub2-tools/fedora-rawhide.html
View grub2-tools-2.06-86.fc39 in Fedora Rawhide. grub2-tools: Support tools for GRUB.
what is the executable name?
@hearty pawn turn out it's called grub2 instead of grub ๐
I did grub2-mkconfig now what
yea
was in the grub doc too i linked earlier
nvm though
did you find your current installations entry there?
if you did then you didn't break grub yet
where do I find it
simple grub2-mkconfig -o /boot/grub/grub.cfg should replace the old grub.cfg file there
oh yea the output is not scrollable
done
grub2-mkconfig | less for scrollable output
still not scrollable
can I send these in dm
too much attachments
youre probably uploading it the wrong way ig or like discord has no access depending on what version of the app you installed
upload it as .txt?
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
so what do I do
the entry I made didn't work because it can't detect the .iso and kernel isn't loaded first
so I have to make another one
yea what was the output when you executed the command with -o
yea or use grub cli
how
which one
it's similar bash with a lot of ls to know where things are
grub2-mkconfig -o /tmp/dummy change up the file path
to?
anything /tmp or anything
it's just redirecting it to a file doesn't matter any
it shouldn't matter any file
weird it errored out
what is the recommended place to change the file path to
i used tmp because that's where i put my junk I don't need
next boot everything get's deleted in there
alr
it's just testing why it didn't like an already present file
it didn't have to do grub.cfg.new
wonder why it did that
the answer lies at line 268
remove the boot entry with the IDE?
I may have to remove the entry with the text editor
is it dangerous?
@hearty pawn
it's the old boot entry
sure? send a ss i want to see it too
no like
which is the old one
ignoring windows
idk which one you wrote previously
but looking at the config file
it's being sourced from a file under /etc/grub.d/
you can see the path in comments here
it's supposedly a modular way for grub to add menus
so deleting the files deletes em from being generated
so delete that line and?
bruh he left
ok deleted that one old entry file
tl;dr: my grub script have 2 boot entry and I want to delete the old one but not sure how
I'm going to look some stuff up, see if I can find anything of use
hmm I can't pin so nvm
line? no the file
it's taking multiple files together and putting em in the .cfg
modular approach
yep that's it
anything else
then running mkconfig command again it shouldn't generate those
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
how'd you get to know that?
what do you mean by main partition? sda2?
yep
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
it only run under the grub command line right
yea the stuff i was talking about is in grub cli
did you make a note of the .iso label name
yes
yep it won't work here but in grub cli
if grub can read your disks then you can try to load the iso
for what
and that would mean something went wrong in the boot menu entry earlier
you see the output
what sign show the partition is mounted
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
when you read the contents of your root partition like you might have with simple ls /
isn't my ext2 disk btrfs
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
what is it
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
ext1 size can't be increased @hearty pawn
idk whats in the first partition
it was labelled boot or something right?
yep
@mighty cradle
looks to me like only Partition 3 can be increased
this is new to me, I'm also learning as I go
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
make partition 4?
with some gb?
ok made partition 4
it will be unmounted automatically on boot so that won't work
what is the mount command
it's okay
mount [options] device mountpoint
eh it looks like btrfs works out of the box? https://www.linuxquestions.org/questions/linux-general-1/grub2-does-not-detect-btrfs-partition-after-reinstall-4175616085/
gzio could be for the compression if there's any
can't find much on it except maybe it's integrated by now
What's the mount command
In grub cli
could it be grub-mount?
grub-mount doesn't work on the grub command line
it only work on the normal terminal
ah right
there's no mount in grub cli
just use ls
@hearty pawn
^
I did
the problems is no server is specified and kernel isn't loaded first
wdym by server?
what shows up?
the image
there\
if you cannot read the disks try loading ext2 module using insmod command
I did
vmlinuz is your kernel 
how do I load it
also like I said no server is specified
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?
insmod ext2
yep
thats some other error I'm not sure why its showing could be it was searching some network device in attempt of iso or the kernel
so we will have to connect to network
via grub
how do I do that
no i didn't say that
don't have to, the iso is on your disk
but the server isn't specified
when does that error even show up?
ls to the path of the iso
and then I booted to the entry
but I still get these 2 errors
it shows up when you do ls thats weird?
no
I mounted it
the iso isn't detected issue is resolved
you mean you tried booting the iso from menu?
but there's still the other 2
yep
maybe some error with grub.cfg
the server error might even show up on other entries too
how do I fix these errors
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
why should I
or maybe try to ls these folders
to rule out any issue with the loopback not working
how to extract files from iso? just like before open and copy
then you load the ones you copied out of the iso
after extracting them what's next
then load them up in your kernel and initramfs lines
also the rd. whatever parameter is redundant
how
linux /path/to/vmlinuz root=label:whatever iso-scan/file=etc
initrd /path/to/initram
@hearty pawn you there?
yea
is this correct
yea its fine
looks like the loopback command is what's causing all the issues
never really liked it anyways
then how do I fix it
@hearty pawn
without using the (loop)
will there be any risk
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
I prefer mainline fedora
like what?
some stuff not being recognized
@hearty pawn again what .cfg file to edit, the etc/grub.d one or boot/grub2 one
like this?
okay right path missing last step, telling grub where root will be
using root=iso-label didn't work in the first run because iso is mounted read only
noo...
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
what is that for
grub4dos was for windows
grub for windows
it added an entry to the windows boot loader
and that entry booted up grub
but I don't use windows