You are not logged in.

#1 2024-02-28 01:41:18

live4thamuzik
Member
Registered: 2024-02-27
Posts: 73

[SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

Hey folks!

Sorry if that was covered somewhere else, I wasn't able to find it.

I ran into an issue with my boot partition, deleting the partition, making a new one and setting up grub went fine until I tried to

mkinitcpio -p linux

For whatever reason, even though I made the boot partition as 500M in fdisk lsblk shows it at 2M and mkinitcpio fails so I need to do a full format. No big deal...

However, I would like to recover an .odt file though as it's all my notes from the various arch wiki's.

If I boot into the Arch ISO

mount /dev/nvme0n1p3 /mnt
arch-chroot /mnt

I am able to find the file I want to copy to another USB drive. Where I am struggling is mounting the additional USB into /mnt/nvme0n1p3/mnt or /mnt/nvme0n1p3/media

Is this even possible?

For now I am going to attempt to see if I can get it remotely via ssh.

Last edited by live4thamuzik (2024-10-08 12:43:55)

Offline

#2 2024-02-28 01:49:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

I think the issue you're having is that there's no such dir as /mnt/nvme0n1p3/, and of course there shouldn't be. Why are you trying to mount there?

Offline

#3 2024-02-28 02:02:51

live4thamuzik
Member
Registered: 2024-02-27
Posts: 73

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

I am trying to recover a file before doing a full wipe.

If I am in the live installer ISO I am able to mount the filesystem from my nvme drive with a failed boot partition to /mnt and then arch-chroot into that file system where I can find the file I aim to recover.

Because I did a chroot into a filesystem on the nvme from the live installer the working directory  is /mnt/nvme0n1p3

Similar to when installing arch, everything is installed on /mnt prior finishing your install

The thought was to then mount yet another device where I could

cp /home/%username%/Documents/notes.odt %path-of-usb%

Offline

#4 2024-02-28 02:06:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

You're missing the point. You mounted the filesystem on nvme0n1p3 to /mnt. That is not /mnt/nvme0n1p3/, it's /mnt/.

Offline

#5 2024-02-28 02:18:07

live4thamuzik
Member
Registered: 2024-02-27
Posts: 73

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

Ahh! Sorry amatuer hour! :lol

So what I should be doing after mount the old filesystem is

mount /dev/sdb /mnt

Then copy file

Offline

#6 2024-02-28 02:34:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

If you've already chrooted, that would work fine. That would be /mnt/mnt outside the chroot.

Offline

#7 2024-02-28 02:36:14

live4thamuzik
Member
Registered: 2024-02-27
Posts: 73

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

Solved, Thank you @Scimmia!

Sometimes I just need to be told I'm an ID10T.... *smh*

Offline

#8 2024-02-28 02:38:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

There's also no need to chroot at all - that just seems to be complicating the situation.

Just mount nvme0n1p3 and the usb device to different mountpoints and mv/cp the relevant file over.

live4thamuzik wrote:

Sometimes I just need to be told I'm an ID10T...

Well then, you've certainly come to the right place.  That's our specialty.

Last edited by Trilby (2024-02-28 02:38:59)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2024-02-28 02:46:18

live4thamuzik
Member
Registered: 2024-02-27
Posts: 73

Re: [SOLVED]Mount additional USB in arch iso with Linux filesystem mounted

Trilby wrote:

There's also no need to chroot at all - that just seems to be complicating the situation.

Just mount nvme0n1p3 and the usb device to different mountpoints and mv/cp the relevant file over.

live4thamuzik wrote:

Sometimes I just need to be told I'm an ID10T...

Well then, you've certainly come to the right place.  That's our specialty.

To your point, that's what confused me to begin with. I was treating a chrooted env. as a sub directory without stopping to think logically about what I was doing.

LOL - I'm sure I'll be back for another brow-beating

until then.. cheers!

Offline

Board footer

Powered by FluxBB