LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 05-15-2022, 03:10 PM   #1
AKM512
Member
 
Registered: May 2022
Posts: 38

Rep: Reputation: 0
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.
 
Old 05-15-2022, 04:20 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,768

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Welcome to LinuxQuestions.

Look at the output of the command:
lsblk

That should show you the device ids and you should be able to see the external hard drive. The mount the filesystem
i.e

mount /dev/sdxy /mnt/my_drive

Be sure /mnt/my_drive directory exists.
 
Old 05-15-2022, 05:58 PM   #3
AKM512
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Okay, I ran
Code:
lsblk
, and I don't see it:
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 /
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.
 
Old 05-15-2022, 06:03 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,768

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
It looks like what you want to want to mount is /dev/sda1
 
Old 05-15-2022, 06:17 PM   #5
AKM512
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
It didn't; I tried the following commands too:

Code:
[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]$
 
Old 05-15-2022, 06:48 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,768

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
You have to specify a mount point i.e. a directory.

mkdir /mnt/my_drive (or whatever)

mount /dev/sda1 /mnt/my_drive
 
Old 05-15-2022, 06:50 PM   #7
AKM512
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
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.
 
Old 05-15-2022, 07:14 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,768

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Quote:
Originally Posted by michaelk View Post
You have to specify a mount point i.e. a directory.

mkdir /mnt/my_drive (or whatever)

mount /dev/sda1 /mnt/my_drive
You might not of seen my other post but this is the exact command(s).
 
Old 05-15-2022, 07:20 PM   #9
AKM512
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
You have to specify a mount point i.e. a directory.

mkdir /mnt/my_drive (or whatever)

mount /dev/sda1 /mnt/my_drive
Wow, that works! Sorry I missed your response; ignore my last post, I figured it out, and I'm now moving my files to my laptop with rsync. Thanks!
 
Old 05-15-2022, 07:26 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,768

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
To unmount make sure the current working directory of the terminal is not /mnt/my_drive (or whatever) and run the command

Code:
umount /dev/sda1
 
Old 05-16-2022, 01:59 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Please mark your thread SOLVED (see my signature). Others will benefit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] udisksctl and root password dodoLQ Slackware 3 11-01-2021 03:27 AM
[SOLVED] Mounting iso images with udisksctl igadoter Slackware 1 09-29-2019 09:22 AM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
External USB hard drive unmounts, can't remount or figure out what's causing it adanedhel728 Ubuntu 7 04-21-2008 01:26 AM
Can't figure out how to mount hard drive in usb2.0 case jglidden Linux - Hardware 7 12-17-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration