LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "Not Authorized" to mount external USB drive or Windows filesystem from Debian (http://www.linuxquestions.org/questions/linux-newbie-8/not-authorized-to-mount-external-usb-drive-or-windows-filesystem-from-debian-4175431136/)

alarazr 10-08-2012 10:58 AM

"Not Authorized" to mount external USB drive or Windows filesystem from Debian
 
Afternoon all.

I have two USB sticks and a 1TB USB drive attached to my computer (dual boot Debian stable/Windows 7

When I open pcmanfm from my standard user account, I see in the left panel

alarazr
Desktop
Rubbish
Applications
4.0 GB Filesystem (USB stick, I can access)
427 GB Filesystem (Windows Filesystem, I can't access)
Tenso 32 GB (USB stick, I can access)
Elements (1TB external HDD, I can't access)
System Reserved (I don't know what this is, but I can't access it)

I see it as a standard user, but cannot access it. As root, I can't even see it on pcmanfm.

Any help would be greatly appreciated

ukiuki 10-08-2012 11:38 AM

You will need to manually mount your 1TB drive. As root type fdisk -l to find out what device is you 1TB, so it may be, example: /dev/sdb2
Then to mount it, example:
Code:

# mount /dev/sdb2 /mnt/
You could also create a folder inside of you user directory and mount it there, or inside of mnt folder.

Regards

lleb 10-08-2012 02:30 PM

you can also setup sudo to allow the user to mount that drive.

as root run visudo and find your user account name. if it is not here add it and make it look something like the following:

Code:

user    ALL =(root) NOPASSWD: /bin/dmesg -n 1, /usr/rx30/setroute.pl, /usr/bin/copyconfig.sh, /bin/mount -t iso9660 /dev/dvd /mnt/dvd, /bin/umount /dev/dvd, /usr/bin/runit.sh, /usr/bin/dvd+rw-format -force /dev/dvd, /b
in/mount /dev/dvd /mnt/dvd, /bin/mount -t iso9660 /dev/cdrom /mnt/cdrom, /bin/umount /mnt/cdrom, /usr/bin/eject, /usr/bin/eject -t, /usr/bin/fixprinter, /bin/cp, /bin/chmod, /bin/chown, /bin/mount /mnt/backup, /bin/umo
unt /mnt/backup , /bin/mount /mnt/usb, /bin/umount /mnt/usb, /tmp/formatDev.sh, /bin/mount /mnt/cifs, /bin/umount /mnt/cifs

Note the bold section is the how that user will access the drive.

so as user you would type:

Code:

$ sudo /bin/mount /mnt/usb

alarazr 01-15-2013 01:40 PM

Sorry about neglecting this thread.

pcmanfm seemed unable to mount my drives from the file manager, whereas Thunar and numerous others could.

To mount my external drive on Debian, I used
Code:

sudo mount -t ntfs /dev/sdb1 /media/Elements
Where /dev/sdb1 was the name of the disk I wanted to mount, and /media/Elements is the directory to mount to

pcmanfm could read my directories once I manually mounted the drive


All times are GMT -5. The time now is 07:40 PM.