Announcement

Collapse
No announcement yet.

Mounting a USB drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mounting a USB drive

    I backup everything to a USB drive (2 actually. and yes sometimes I wear a belt and braces).

    I have written a script to do the backup, but if I forget to mount the USB drives in Dolphin then that part of the backup fails with the error msg that the folder doesn't exist.

    So is there a cli command that I can issue in the script to mount the USB drives prior to the cp command to backup to them?

    #2
    Are you going to use the same USB port on the same machine? One or two blinks(on/off switch) HD or thumb drive or SD USB devise?
    Ext3, ext4 or some kind of Windows(belch) format? What ever happen to good old cut and paste under dolphin? Still use it for KDE
    and still works fine for me.

    Comment


      #3
      udisksctl does that. See man udisksctl. F.ex., on my computer, which presently has two hard drives,
      Code:
      $ udisksctl mount -b /dev/sdc1
      Mounted /dev/sdc1 at /media/john/B14A-40C1.
      $
      ("B14A-40C1" is the "label" on the USB drive.)
      Regards, John Little

      Comment


        #4
        Okay - after googling for linux usb mount, I found the solution: pmount and pumount

        Used muon package manager to download and install and pmount works like a charm.

        Comment

        Working...
        X