[SOLVED] Can't figure out how to mount external hard drive with udisksctl
ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't figure out how to mount external hard drive with udisksctl
From my old Debian system, I had backed up my home directory files on an external hard drive. I want to move them onto my Arch system, but the problem is I can't figure out how to mount the external hard drive. I read the ArchWiki page, and this related man page, but I can't find where my external hard drive is from the terminal; I don't know what the filepath would be to get to it, and since I can't figure out how to search for it, it feels like a Catch-22 of sorts. In Debian, I always used the GUI interface, but that isn't possible in Arch installation with the i3-wm apparently. If someone could explain this I'd be really swell.
[austin@archlinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part
zram0 254:0 0 4G 0 disk [SWAP]
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 511M 0 part /boot
└─nvme0n1p2 259:2 0 931G 0 part /
I don't see anything with /dev or anything similar. Could it be that the device I use isn't recognized by Arch? I tend to doubt it, since it worked on Debian and the manufacturer (Feishuo) specifically said it supports Linux.
[austin@archlinux ~]$ lsdlk
bash: lsdlk: command not found
[austin@archlinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part
zram0 254:0 0 4G 0 disk [SWAP]
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 511M 0 part /boot
└─nvme0n1p2 259:2 0 931G 0 part /
[austin@archlinux ~]$ mount /dev/sda1
mount: /dev/sda1: can't find in /etc/fstab.
[austin@archlinux ~]$ cd /dev
[austin@archlinux dev]$ cd /sda1
bash: cd: /sda1: No such file or directory
[austin@archlinux dev]$ mount /sda1
mount: /sda1: can't find in /etc/fstab.
[austin@archlinux dev]$
Update: I think I've figured out the drive, and it seems to indeed be sda1; before it was plugged in:
Code:
[austin@archlinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
zram0 254:0 0 4G 0 disk [SWAP]
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 511M 0 part /boot
└─nvme0n1p2 259:2 0 931G 0 part /
and after
Code:
[austin@archlinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part
zram0 254:0 0 4G 0 disk [SWAP]
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 511M 0 part /boot
└─nvme0n1p2 259:2 0 931G 0 part /
(bolded for emphasis)
But when I tried to mount it:
Code:
[austin@archlinux ~]$ mount dev/sda/sda1
mount: dev/sda/sda1: can't find in /etc/fstab.
[austin@archlinux ~]$ mount dev/sda1
mount: dev/sda1: can't find in /etc/fstab.
[austin@archlinux ~]$ mount dev/sda1
mount: dev/sda1: can't find in /etc/fstab.
[austin@archlinux ~]$ mount sda1
mount: sda1: can't find in /etc/fstab.
[austin@archlinux ~]$ cd dev
bash: cd: dev: No such file or directory
[austin@archlinux ~]$ cd /dev
[austin@archlinux dev]$ mount /sda1
mount: /sda1: can't find in /etc/fstab.
[austin@archlinux dev]$ mount /sda1/
mount: /sda1/: can't find in /etc/fstab.
[austin@archlinux dev]$
As you can see, I've tried several different filepaths, but I'm still having no luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.