Hosed up the fstab
3 screenshots
1st - all but 42 work (but 42 is where I think it's auto-booting to)
2nd - letting screenshots run 42
3rd - after pressing enter
I've tried to edit the fstab from all other 41's but to no avail.



112 Replies
what did you do before this?
ohhhhh
im thinking fstab here
Mike's Tech Tips
YouTube
How to get your Linux system out of emergency mode
In this video we'll look at the scenarios that get Linux into emergency mode and the process of fixing your fstab file to get it out of emergency mode
timestamps
00:00 Introduction
00:31 Scenarios that cause Linux to go into emergency mode
00:54 The current issue
01:12 Summary of the solution
01:35 Getting into Grub
02:13 Editing Grub at boot t...
This will get you out of emergency mode
I was editing the fstab to auto-mount a HDD that had been installed to the computer previously with a Windows partition (ntfs) on it
don't use fstab for that
the automount generator will do that for you
dangit
ok so "e" then f2 I'm in a command line
you need to get into grub first
cd hd0
grub> <---I am here currently
okay yes good
press e on the first entry
to edit
just add the
init=/bin/bash
on the linux line
after the ostree bit(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (hd1) (hd1,gpt2) (hd1,gpt1)
from ls
?
just press e on the first grub entry
add init=/bin/bash
grub -> press "e" -> grub>
sorry entered F2
now I am sitting at a command line prompt "grub>"
don't use the F2 F1 stuff
that was for someone else
okie rebooting
then in grub e
Yeah, my apologies
okie Load_video......
Lol no I was confused too
set gfxpayload=keep...

then press e on the first entry
I did
Grub Version 2.12
go to the line after linux
what ends a "line"
go to the line that's before initrd
all the way to the back
okie
show a photo maybe of it
but then people will tell me to clean my screen lol
it was a joke 😛

right after preempt=full
with a space
and then add
init=/bin/bash
Like this

it has to be put after preempt=full without a new line
unless it did that on its own then its fine (that means there's only 1 space)
just make sure there's only 1 space
no I did that
between preempt=full and that
otherwise it will treat it as a new command and fail boot

That?
yep
now press F10
k
Oh hey, look how much better and clearer your screen is, win-win
I do occasionally clean my screen, might be placeboo, but it does looks better
I did nothing to the screen lol
HUH
just less visible from afar
lol
:huh:
Huhhh
that's probably also the reason why it wasn't cleaned in a while :clueless: because you don't see it
WAIT
that's also the other person
bash-5.2#
HAHA
yeah perfect
OH LOL
now do
nano /etc/fstab
omg this is hard to read

and to edit properly...
you'll have to lower the resolution of your TV
oke Yay
but otherwise just get closer
The fateful RED2

there's your typo
wait never mind
its just weirdly aligned
that btrfs thing shouldn't be the problem
ntfs
the btrfs was there
yeah yeah yeah its just not formatted properly but it is fine
I only added the #Red II line and everything underneath
remove the ntfs bits
just remove it entirely
I think I got the UUID wrong
and reboot
so you can work normally
how to reboot from this?? after the ctrl-x
just type systemctl reboot
and yes I ctrl-o'd it
or just type reboot
oh wait
after saving
just type Ctrl+Alt+Delete
because the init system is not enabled

yeah just ctrl+alt+del
just returns ^C
huh
just press reset button
this is the most excersize I've gotten in weeks!!
it's flashing....
I see the boot logo...
and I can log-in!!
Yay
now....
for the thing I was REALLY trying to do should I go back to the main channel??
if the thing you were trying to do was to mount NTFS, it doesn't matter, it won't be supported here.
^ this NTFS is not supported for using as anything except storing files
Thank you 3, nope the ntfs works just fine once inside the OS
SMB, from Synology shares 😄
Oh okay
yeah no that should be fine
just don't install or play games from your ntfs drive in linux
into Dolphin Emulator with actual saves from the Wii
emulation is fine too
no, that;s just a dump/storage drive
Well now you know how to get out of emergency mode
yes that's VERY VERY handy, does that also work with most Linux'es?
you'll have to manually create the automount, the automount generator will not automount the NTFS drive because we don't want people to use NTFS for gaming.
Yes
ohh nice, I switched to Linux about 6 months ago on like 6 computers in the house, it's been a time
NTFS doesn't support all the filesystem features Linux and Proton requires
for gaming at least
yeah I would've made it an ext4 but I didn't have room at the time to dump the files to another drive, format it and dump them back
only Btrfs is mainly supported. Ext4 is also "supported" but 99% of users here use Btrfs so its easier to get support
okie dokie when I have room I'll btrfs that drive
with btrfs you just create the partition, create mount path (/mnt/xxx), then reboot, and it should create the auto mount
without any user interaction
well that's no fun, I like getting deep into the woods without a compass or an axe....
ok
If you want to do it yourself you can disable auto mount generator
hold up let me find the right command
how to get an SMB share from a Synology share to get auto-mounted from Bazzite
Now that's a question 🥲
I have no idea to be honest
probably from KDE somewhere
Dolphin maybe
or do you use GNOME?
normal Bazzite install, not sure of ANY of those answers
probably KDE then
I did the Bazzite-NVIDIA-stable install
and yes I think KDE
its like windows yeah, not like macos
actually after I install Linux to the computers in the house I bought my first Mac, the Mac Mini M4 and that was worse to get used than Linux
@Nobodyz the command to disable automatic fstab is
ujust disable-automounting
you can still do manually, but i recommend using KDE Partition Manager
its easier to create fstab without failing the UUID there
because you don't need to fill in the UUID yourselfokie i'll use the KDE Part-Man 😄
Right click partition: "Edit Mount-Point"
that's the fstab editor
it won't click on NTFS lol
Is it already mounted?
yes
wait...
That's why
Unmount->edit mount point
ohh geez I had to click ON the partition lol
not just the drive lol
Ye
Make sure to select "Use UUID"
Not using udev name
Bazzite is pretty awesome, I can play some older games from Steam, and it can re-encode my movies and TV shows like I am used to on the other computers
So with KDE Partition Manager Edit Mount Point:
->Identify by: UUID
->Use /mnt/xxx
Btrfs will be auto mounted using the generator unless you type
ujust disable-automounting
but I don't recommend doing that
the auto mount generator uses some good default flags for Btrfs
Don't typo here either, it will still give you emergency mode 🥲I won't disable the auto-boot, seems pretty handy lol
did I check the "Solved" correctly??
Yes I think so
Awesome thanks again for your help!!
No problem 🙂