as the title says i tried to mount a hard drive of mine and now i can no longer boot into my system properly
the commands i used were as follows
lsblk
genfstab -U / > ~/fstab
sudo mv -i ~/fstab /etc/fstab
these were given to me by a friend helping me mount the drive
i must state the drive is not external and has always had issues being mounted on linux in general, but never to this extent
#[SOLVED] trying to mount a hard drive let to my system booting itself in emergency mode
184 messages · Page 1 of 1 (latest)
i think i should also state i only have two drives atm, a 500gb ssd (which arch is installed on), and a spare 320 gb hdd (the one i was trying to mount)
Maybe your drive is failing?
Remove it from the fstab and mount it using your DE
@urban oar
it's not, i mounted temporarily with dolphin and it worked
Oh wait xfs?
you should consider adding nofail when mounting your drives
didnt know that was a command
i was just following orders from a friend
should also taste i have only used arch linux for
That's fine
its not a command, you specify it in /etc/fstab, and if the drive fails to mount your system can still continue booting
oh
ok well the first thing that needs solving is getting out of emergency mode bc i cannot do that
i have been unable to for two days whole days (which means i've had it installed for four days)
yeah i was told the file system i chose might have something to do with it
That should fix it tho
okay
how do i do that
i'm rlly sorry its just i barely know my way around the terminal
i need to get out of emergency mode first
Find the HOOKS = ( something here) part
Edit it to look something like this
HOOKS= (base systemd .....)
i must stress again, i have not been able to get out of emergency mode for two days
You need to edit the fstab
Either through a livecd
Or some other os

You were just so... Unfamiliar
should i have tagged this with archinstall
That's fine
yeah like i said, only two days of using arch linux before this happened
lucky me
Oh yeah, I didn't see the edit, I thought you were only stuck in the emergency shell
will this be trickier without a DE
It's the same
Just "sudo nano /mnt/etc/mkinitcpio.conf"
I don't think even sudo is necessary
in the live iso?
Yeah, just mount the disk to /mnt
Yeah?
what next
I don't think you mounted your disk yet
Try lsblk
Exit first by spamming with Ctrl x iirc
read this just as i turned off my pc...
i am a truly astounding specimen
Name checks out
part of the learning curve XD
last one should be my ssd
do i need to mention i made a separate partition for my home folder
So that's why you have 3 partitions
guess i did need to
it has the most space so i'd assume so
Yeah, we'll see 
ok i did this
do i do this again?
it says "directory 'mount/etc' does not exist"
:/
let me redo the command and see if i messed something up bc knowing me i probably did
yep, it was my mistake
silly me
it was already there
Oh then it won't fix it
We'll check the problem later
We just need to get you into a bootable system for now so
nano /etc/fstab
And add what he said
:(
wdym
Lemme show you
so we mounted the root partition right?
So now let's mount the boot and home partitions
yeah
alright
To their proper directories
i mounted them
Can you show the lsblk
what'd i do wrong
umount /mnt
okie dokie
Now do this
uhhh
Perfect
:D
Now
Then "mount /dev/nvme0n1p3 /mnt/home"
genfstab -U /mnt >> /mnt/etc/fstab
Now do this command again, there should be a difference
*nano /mnt/etc/fstab
Reboot
Oh wait
I just checked and there's duplicate entries
Do this instead
genfstab -U /mnt > /mnt/etc/fstab
Alright
Quick question
Are you using grub?
I have to go jn a few mins but I think you should also do
arch-chroot /mnt
Then "mkinitcpio -P"
yes
Exit first
this won't wipe any of my data will it?
oh thank god
pqts received a thank you cookie!
We could nuke it tho with a fresh install 
All of your data should be on /dev/nvme0n1p3
no.
ok rebooted
what now
System should be up and runnin?
Yea
it worked!!
thank you
uhh
im gonna go play doom now
tho i still need to now how to mount it permanently but ehh
i can live with manually mounting every bootup if it means ill never have to do this again
(CLOSED) trying to mount a hard drive let to my system booting itself in emergency mode
(SOLVED) trying to mount a hard drive let to my system booting itself in emergency mode
[SOLVED] trying to mount a hard drive let to my system booting itself in emergency mode
You don't have to, you can just edit the same fstab to mount your drive
doing that is what caused me to get in this situation in the first place