How can I find the device file for a phone, so that I can mount it on my Linux?
0
votes
2
answers
162
views
I connect a phone to my Linux laptop using USB. I click File Transfer option in the pop-up window on the phone. In order to mount the phone on my Linux, I have to find the block device on my Linux. I suspect its device file is /dev/sdb1, but I can't find it:
$ sudo fdisk -l
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM014-1EJ1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 18E6169E-AE75-4F4D-82EE-32A4A1B85155
Device Start End Sectors Size Type
/dev/sda1 1048576 69206015 68157440 32.5G Linux swap
/dev/sda2 69206016 195035135 125829120 60G Linux filesystem
/dev/sda3 195035136 1953523711 1758488576 838.5G Linux filesystem
/dev/sda4 2048 1048575 1046528 511M EFI System
Partition table entries are not in disk order.
and
$ sudo lsblk -l
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
sda1 8:1 0 32.5G 0 part [SWAP]
sda2 8:2 0 60G 0 part /nix/store
/
sda3 8:3 0 838.5G 0 part /home
sda4 8:4 0 511M 0 part /boot
sr0 11:0 1 3.3M 0 rom
sudo lshw
shows the phone as:
*-usb
physical id: 14
bus info: pci@0000:00:14.0
version: 31
width: 64 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:129 memory:df410000-df41ffff
*-usbhost:0
product: xHCI Host Controller
vendor: Linux 5.19.0 xhci-hcd
physical id: 0
bus info: usb@1
logical name: usb1
version: 5.19
capabilities: usb-2.00
configuration: driver=hub slots=16 speed=480Mbit/s
*-usb:0
description: Mass storage device
product: FRD-AL10
vendor: HUAWEI
physical id: 1
bus info: usb@1:1
version: 2.99
serial:
capabilities: usb-2.00 scsi
configuration: driver=usb-storage maxpower=500mA speed=480Mbit/s
How can I find the device file for the phone, so that I can mount it on my Linux?
Thanks.
Asked by Tim
(106420 rep)
Aug 29, 2023, 06:44 AM
Last activity: Nov 13, 2023, 06:42 AM
Last activity: Nov 13, 2023, 06:42 AM