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.
No description
No description
No description
112 Replies
termdisc
termdisc•5d ago
what did you do before this?
CheckYourFax
CheckYourFax•5d ago
ohhhhh im thinking fstab here
CheckYourFax
CheckYourFax•5d ago
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...
CheckYourFax
CheckYourFax•5d ago
This will get you out of emergency mode
Nobodyz
NobodyzOP•5d ago
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
CheckYourFax
CheckYourFax•5d ago
don't use fstab for that the automount generator will do that for you
Nobodyz
NobodyzOP•5d ago
dangit ok so "e" then f2 I'm in a command line
CheckYourFax
CheckYourFax•5d ago
you need to get into grub first
Nobodyz
NobodyzOP•5d ago
cd hd0 grub> <---I am here currently
CheckYourFax
CheckYourFax•5d ago
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
Nobodyz
NobodyzOP•5d ago
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (hd1) (hd1,gpt2) (hd1,gpt1) from ls
CheckYourFax
CheckYourFax•5d ago
? just press e on the first grub entry add init=/bin/bash
Nobodyz
NobodyzOP•5d ago
grub -> press "e" -> grub> sorry entered F2 now I am sitting at a command line prompt "grub>"
CheckYourFax
CheckYourFax•5d ago
don't use the F2 F1 stuff that was for someone else
Nobodyz
NobodyzOP•5d ago
okie rebooting then in grub e
Result::Err("sunny.ayyl")
Yeah, my apologies
Nobodyz
NobodyzOP•5d ago
okie Load_video......
CheckYourFax
CheckYourFax•5d ago
Lol no I was confused too
Nobodyz
NobodyzOP•5d ago
set gfxpayload=keep...
CheckYourFax
CheckYourFax•5d ago
No description
CheckYourFax
CheckYourFax•5d ago
then press e on the first entry
Nobodyz
NobodyzOP•5d ago
I did Grub Version 2.12
CheckYourFax
CheckYourFax•5d ago
go to the line after linux
Nobodyz
NobodyzOP•5d ago
what ends a "line"
CheckYourFax
CheckYourFax•5d ago
go to the line that's before initrd all the way to the back
Nobodyz
NobodyzOP•5d ago
okie
CheckYourFax
CheckYourFax•5d ago
show a photo maybe of it
Nobodyz
NobodyzOP•5d ago
but then people will tell me to clean my screen lol
CheckYourFax
CheckYourFax•5d ago
it was a joke 😛
Nobodyz
NobodyzOP•5d ago
No description
CheckYourFax
CheckYourFax•5d ago
right after preempt=full with a space and then add init=/bin/bash
Nobodyz
NobodyzOP•5d ago
Like this
No description
CheckYourFax
CheckYourFax•5d ago
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
Nobodyz
NobodyzOP•5d ago
no I did that
CheckYourFax
CheckYourFax•5d ago
between preempt=full and that otherwise it will treat it as a new command and fail boot
Nobodyz
NobodyzOP•5d ago
No description
Nobodyz
NobodyzOP•5d ago
That?
CheckYourFax
CheckYourFax•5d ago
yep now press F10
Nobodyz
NobodyzOP•5d ago
k
Result::Err("sunny.ayyl")
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
Nobodyz
NobodyzOP•5d ago
I did nothing to the screen lol
CheckYourFax
CheckYourFax•5d ago
just less visible from afar lol
Result::Err("sunny.ayyl")
:huh: Huhhh
CheckYourFax
CheckYourFax•5d ago
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
Nobodyz
NobodyzOP•5d ago
bash-5.2#
CheckYourFax
CheckYourFax•5d ago
HAHA yeah perfect
Result::Err("sunny.ayyl")
OH LOL
CheckYourFax
CheckYourFax•5d ago
now do nano /etc/fstab
Nobodyz
NobodyzOP•5d ago
omg this is hard to read
Nobodyz
NobodyzOP•5d ago
No description
Nobodyz
NobodyzOP•5d ago
and to edit properly...
CheckYourFax
CheckYourFax•5d ago
you'll have to lower the resolution of your TV
Nobodyz
NobodyzOP•5d ago
oke Yay
CheckYourFax
CheckYourFax•5d ago
but otherwise just get closer
Nobodyz
NobodyzOP•5d ago
The fateful RED2
No description
CheckYourFax
CheckYourFax•5d ago
there's your typo wait never mind its just weirdly aligned that btrfs thing shouldn't be the problem
Nobodyz
NobodyzOP•5d ago
ntfs the btrfs was there
CheckYourFax
CheckYourFax•5d ago
yeah yeah yeah its just not formatted properly but it is fine
Nobodyz
NobodyzOP•5d ago
I only added the #Red II line and everything underneath
CheckYourFax
CheckYourFax•5d ago
remove the ntfs bits just remove it entirely
Nobodyz
NobodyzOP•5d ago
I think I got the UUID wrong
CheckYourFax
CheckYourFax•5d ago
and reboot so you can work normally
Nobodyz
NobodyzOP•5d ago
how to reboot from this?? after the ctrl-x
CheckYourFax
CheckYourFax•5d ago
just type systemctl reboot
Nobodyz
NobodyzOP•5d ago
and yes I ctrl-o'd it
CheckYourFax
CheckYourFax•5d ago
or just type reboot oh wait after saving just type Ctrl+Alt+Delete because the init system is not enabled
Nobodyz
NobodyzOP•5d ago
No description
CheckYourFax
CheckYourFax•5d ago
yeah just ctrl+alt+del
Nobodyz
NobodyzOP•5d ago
just returns ^C
CheckYourFax
CheckYourFax•5d ago
huh just press reset button
Nobodyz
NobodyzOP•5d ago
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??
termdisc
termdisc•5d ago
if the thing you were trying to do was to mount NTFS, it doesn't matter, it won't be supported here.
CheckYourFax
CheckYourFax•5d ago
^ this NTFS is not supported for using as anything except storing files
Nobodyz
NobodyzOP•5d ago
Thank you 3, nope the ntfs works just fine once inside the OS SMB, from Synology shares 😄
CheckYourFax
CheckYourFax•5d ago
Oh okay yeah no that should be fine just don't install or play games from your ntfs drive in linux
Nobodyz
NobodyzOP•5d ago
into Dolphin Emulator with actual saves from the Wii
CheckYourFax
CheckYourFax•5d ago
emulation is fine too
Nobodyz
NobodyzOP•5d ago
no, that;s just a dump/storage drive
CheckYourFax
CheckYourFax•5d ago
Well now you know how to get out of emergency mode
Nobodyz
NobodyzOP•5d ago
yes that's VERY VERY handy, does that also work with most Linux'es?
CheckYourFax
CheckYourFax•5d ago
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
Nobodyz
NobodyzOP•5d ago
ohh nice, I switched to Linux about 6 months ago on like 6 computers in the house, it's been a time
CheckYourFax
CheckYourFax•5d ago
NTFS doesn't support all the filesystem features Linux and Proton requires for gaming at least
Nobodyz
NobodyzOP•5d ago
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
CheckYourFax
CheckYourFax•5d ago
only Btrfs is mainly supported. Ext4 is also "supported" but 99% of users here use Btrfs so its easier to get support
Nobodyz
NobodyzOP•5d ago
okie dokie when I have room I'll btrfs that drive
CheckYourFax
CheckYourFax•5d ago
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
Nobodyz
NobodyzOP•5d ago
well that's no fun, I like getting deep into the woods without a compass or an axe.... ok
CheckYourFax
CheckYourFax•5d ago
If you want to do it yourself you can disable auto mount generator hold up let me find the right command
Nobodyz
NobodyzOP•5d ago
how to get an SMB share from a Synology share to get auto-mounted from Bazzite
CheckYourFax
CheckYourFax•5d ago
Now that's a question 🥲 I have no idea to be honest probably from KDE somewhere Dolphin maybe or do you use GNOME?
Nobodyz
NobodyzOP•5d ago
normal Bazzite install, not sure of ANY of those answers
CheckYourFax
CheckYourFax•5d ago
probably KDE then
Nobodyz
NobodyzOP•5d ago
I did the Bazzite-NVIDIA-stable install and yes I think KDE
CheckYourFax
CheckYourFax•5d ago
its like windows yeah, not like macos
Nobodyz
NobodyzOP•5d ago
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
CheckYourFax
CheckYourFax•5d ago
@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 yourself
Nobodyz
NobodyzOP•5d ago
okie i'll use the KDE Part-Man 😄
CheckYourFax
CheckYourFax•5d ago
Right click partition: "Edit Mount-Point" that's the fstab editor
Nobodyz
NobodyzOP•5d ago
it won't click on NTFS lol
CheckYourFax
CheckYourFax•5d ago
Is it already mounted?
Nobodyz
NobodyzOP•5d ago
yes wait...
CheckYourFax
CheckYourFax•5d ago
That's why Unmount->edit mount point
Nobodyz
NobodyzOP•5d ago
ohh geez I had to click ON the partition lol not just the drive lol
CheckYourFax
CheckYourFax•5d ago
Ye Make sure to select "Use UUID" Not using udev name
Nobodyz
NobodyzOP•5d ago
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
CheckYourFax
CheckYourFax•5d ago
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 🥲
Nobodyz
NobodyzOP•5d ago
I won't disable the auto-boot, seems pretty handy lol did I check the "Solved" correctly??
CheckYourFax
CheckYourFax•5d ago
Yes I think so
Nobodyz
NobodyzOP•5d ago
Awesome thanks again for your help!!
CheckYourFax
CheckYourFax•5d ago
No problem 🙂

Did you find this page helpful?