I had to install pmount first and then ran the command for the specific drive. First it said the operation was permitted for root only so I ran it with sudo in front and it did indeed mount the drive. However, I was still unable to change ownership of the drive for the same reason as before. Seems this method might not work for my situation?jonetsu wrote:Instead of using mount with those options (or less as it works well with less) as root, simply use pmount as a simple user for your removable devices :
pmount /dev/sde1
And that's it. It will even create a mount point for you You have full read/write access as simple user.
I gather that Death wants it simple at the command line. Maybe to better enjoy Life ! pmount is exactly made for that.
pmount works great on Ubuntu systems. Should work also on Linux MInt systems. (DID NOT TRY IT)
So I ran the commands and they all worked until the final one. Here was the result:merlyn wrote:@Death Here's some commands that will change the ownership of your backup drive.
Because your drive was automatically mounted the mountpoint will probably disappear, so to be on the safe side make a new directory.Code: Select all
$ sudo umount mountpoint
Check your user id is 1000.Code: Select all
$ sudo mkdir /mnt/backup
Now the mount command. Replace device with your device. If id -u returned a number other than 1000, change uid=1000 and gid=1000 to the number you got.Code: Select all
$ id -u
You may have to tell your backup program about the new location of the drive. Eventually you'll want this to be automatic when you plug the drive in. I'm sure you can figure that out. The bit that caused problems was uid=1000,gid=1000. If they aren't specified the default is the uid of the process doing the mounting, in this case 0 which is root.Code: Select all
$ sudo mount -o rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 device /mnt/backup
EDIT: You must have posted while I was writing this. Stick with ext4 if that's working.
Code: Select all
~$ sudo mount -o rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 device /mnt/usb-USB3.0_USB_Device_DB9876543211167-0:0-part1
mount: /mnt/usb-USB3.0_USB_Device_DB9876543211167-0:0-part1: special device device does not exist.
Btw, keeping the drives as ext4 is not really ideal in the long run. I need to use them on different systems with different OS's so exFAT is the best way to do that. I just needed a break from troubleshooting this situation for a couple days as I just wanted to work on some music
Edit: Btw, there was nothing in the mnt/backup folder. Not sure what exactly was supposed to happen there. Just thought I'd mention it.
Thanks for your help, guys. Really appreciate it!