#[SOLVED] trying to mount a hard drive let to my system booting itself in emergency mode

184 messages · Page 1 of 1 (latest)

urban oar
#

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

#

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)

rough mist
#

Maybe your drive is failing?

#

Remove it from the fstab and mount it using your DE

#

@urban oar

urban oar
rough mist
#

Oh wait xfs?

rancid wren
#

you should consider adding nofail when mounting your drives

urban oar
#

i was just following orders from a friend

#

should also taste i have only used arch linux for

rough mist
#

That's fine

urban oar
#

two days?

#

yeah

#

two

rancid wren
#

its not a command, you specify it in /etc/fstab, and if the drive fails to mount your system can still continue booting

urban oar
#

ok well the first thing that needs solving is getting out of emergency mode bc i cannot do that

rough mist
#

Also look at this

urban oar
#

i have been unable to for two days whole days (which means i've had it installed for four days)

urban oar
rough mist
#

That should fix it tho

urban oar
#

okay

#

how do i do that

#

i'm rlly sorry its just i barely know my way around the terminal

rough mist
#

Then open this file using dolphin

#

/etc/mkinitcpio.conf

urban oar
rough mist
#

Find the HOOKS = ( something here) part

#

Edit it to look something like this

#

HOOKS= (base systemd .....)

urban oar
rough mist
#

Either through a livecd

#

Or some other os

urban oar
#

i still have my live usb

#

i'l reboot into that

rough mist
#

Perfect then

#

I'm assuming it's Manjaro?

urban oar
#

uh no

#

regular arch

rough mist
urban oar
#

why did you assume it was manjaro

#

😭

rough mist
#

You were just so... Unfamiliar

urban oar
#

should i have tagged this with archinstall

rough mist
#

That's fine

urban oar
#

lucky me

rough mist
urban oar
#

will this be trickier without a DE

rough mist
#

It's the same

#

Just "sudo nano /mnt/etc/mkinitcpio.conf"

#

I don't think even sudo is necessary

urban oar
#

in the live iso?

rough mist
#

Yeah, just mount the disk to /mnt

urban oar
#

alright just give me a sec

rough mist
#

Yeah?

urban oar
#

what next

rough mist
#

I don't think you mounted your disk yet

#

Try lsblk

#

Exit first by spamming with Ctrl x iirc

urban oar
#

i am a truly astounding specimen

rough mist
#

Name checks out

gaunt remnant
urban oar
#

last one should be my ssd

#

do i need to mention i made a separate partition for my home folder

rough mist
#

So that's why you have 3 partitions

urban oar
#

guess i did need to

rough mist
#

So the home partition would be the 418gb one?

#

Then "mount /dev/nvme0n1p2 /mnt"

urban oar
rough mist
#

Yeah, we'll see dogekek

urban oar
urban oar
rough mist
#

Yeah

#

You can skip the sudo

#

But it's gonna be the same I guess

urban oar
#

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

rough mist
#

Did you put base there or was it already there?

urban oar
#

it was already there

rough mist
#

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

rough mist
urban oar
urban oar
rough mist
#

Oh

#

Nothing was there

#

There's the apparent issue

#

Ok, so exit from there

urban oar
rough mist
#

Lemme show you

#

so we mounted the root partition right?

#

So now let's mount the boot and home partitions

urban oar
urban oar
rough mist
#

To their proper directories

urban oar
#

i mounted them

rough mist
#

Can you show the lsblk

urban oar
rough mist
#

No

#

Lol

urban oar
#

what'd i do wrong

rough mist
#

Unmount everything

#

Let's do it from the beginning

urban oar
#

how

#

idk the command

rough mist
#

umount /mnt

urban oar
#

okie dokie

rough mist
urban oar
rough mist
#

Then "mount /dev/nvme0n1p1 /mnt/boot"

#

Yes

#

Can you show the lsblk

urban oar
rough mist
#

Perfect

urban oar
#

:D

rough mist
#

Now

Then "mount /dev/nvme0n1p3 /mnt/home"

rough mist
#

genfstab -U /mnt >> /mnt/etc/fstab

rough mist
#

*nano /mnt/etc/fstab

urban oar
#

oh there's stuff now

#

yay!

#

the ntfs drive is the hdd

rough mist
#

Reboot

urban oar
#

like

#

now?

#

like reboot reboot?

rough mist
#

Oh wait

#

I just checked and there's duplicate entries

#

Do this instead

genfstab -U /mnt > /mnt/etc/fstab

urban oar
rough mist
#

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"

urban oar
rough mist
#

Then grub-mkconfig -o /boot/grub/grub.cfg

#

Then reboot

urban oar
#

do i just manually reboot

#

oh, one last thing

rough mist
#

Exit first

urban oar
#

this won't wipe any of my data will it?

rough mist
#

Then reboot

#

Nah

urban oar
flat ironBOT
#

pqts received a thank you cookie!

rough mist
#

We could nuke it tho with a fresh install trollface

#

All of your data should be on /dev/nvme0n1p3

rough mist
#

System should be up and runnin?

urban oar
#

oh

#

do i get rid of my live usb then?

rough mist
#

Yea

urban oar
#

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

urban oar
#

(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

rough mist
urban oar