Accessing an external hard drive on ubuntu linux

Ralf Mardorf kde.lists at yahoo.com
Sun Feb 14 09:08:48 UTC 2021


On Sun, 14 Feb 2021 07:22:36 +0100, Volker Wysk wrote:
>Am Samstag, den 13.02.2021, 16:10 -0800 schrieb M.R.P. zensky:
>> Drive is a 2 TB external hooked up via usb. I installed expat utils
>> and still. Am able to see the files but cannot work with them.  
>
>Please be a little more precise. Can you read the files, but not
>write? What exactly happens, when you try to work with them? Is there
>an error message?
>
>Have you formated the drive with a new file system, or is it still in
>its original state? Were you able to "work with your files" on that
>drive before?
>
>You've written before, that you can't access the files at all. So
>you've installed exfat-utils, and now you can at least see them? 
>
>And please don't top-post in mailing lists.

Hi,

disconnect the USB drive and run

  sudo parted -l > /tmp/disconnected_usb_drive.log 2>&1

Connect the USB drive and run

  sudo parted -l > /tmp/is_connected_usb_drive.log 2>&1

after that run

  diff /tmp/disconnected_usb_drive.log /tmp/is_connected_usb_drive.log

and copy and paste the commands + their outputs, to send all of it to
the list. What you post should look similar to [1].

If you should use Ubuntu flavour defaults and you click or double-click
the drive icon on your desktop (click or double-click it now), then
IIRC the drive should be mounted inside of /media/$USER/ , maybe I'm
mistaken and it's /media/$HOSTNAME/ , but this would make less sense
than $USER/ already does. However run

 sudo ls -ld /media/
 sudo ls -lA /media/
 sudo ls -lA /media/*/

copy and paste the commands + the complete outputs and send it to the
mailing list. It should look similar to [2]. I snipped the parts of the
output, since I'm not using the "click an icon on the desktop to mount
everything with some default mount options to some default mount point
by some default name pattern" approach.

Regards,
Ralf


[1]
[rocketmouse at archlinux ~]$ sudo parted -l > /tmp/disconnected_usb_drive.log 2>&1
[sudo] password for rocketmouse: 
[rocketmouse at archlinux ~]$ sudo parted -l > /tmp/is_connected_usb_drive.log 2>&1
[rocketmouse at archlinux ~]$ diff /tmp/disconnected_usb_drive.log /tmp/is_connected_usb_drive.log 
#74a75,86
> Model: Intenso Ultra Line (scsi)
> Disk /dev/sdf: 31.5GB
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
> Disk Flags: 
> 
> Number  Start   End     Size    Type     File system  Flags
>  1      1049kB  17.1GB  17.1GB  primary  ext4         boot
>  2      17.1GB  17.2GB  33.6MB  primary  fat16        esp
>  3      17.2GB  31.5GB  14.3GB  primary  fat32
> 
>


[2]
[rocketmouse at archlinux ~]$  sudo ls -ld /media/
[sudo] password for rocketmouse: 
drwxr-xr-x 2 root root 4096 Feb 14 03:11 /media/
[rocketmouse at archlinux ~]$ sudo ls -lA /media/
[snip]
[rocketmouse at archlinux ~]$ sudo ls -lA /media/*/
[snip]




More information about the ubuntu-users mailing list