LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   not authorized to access external hard drive (https://www.linuxquestions.org/questions/linux-newbie-8/not-authorized-to-access-external-hard-drive-4175449198/)

sniper8752 02-08-2013 12:15 PM

not authorized to access external hard drive
 
I am running Raspberry Pi, and when I plug in my Toshiba external hard drive, and I try to access the contents of it, it gives off an error message saying that i am "Not authorized". I can't mount it.

EDDY1 02-08-2013 12:33 PM

Is the drive password protected?
Is the user part of disk, plugdev & backup group? Check /etc/group

sniper8752 02-08-2013 01:10 PM

no, it's not.
not sure what you mean - i ran a cat, and for the specific user logged in: 1003 is the last value.

EDDY1 02-08-2013 01:43 PM

Quote:

when I plug in my Toshiba external hard drive
Do you have hdd password set in bios of Toshiba?

Quote:

cat /etc/group
The user name should be next to those entries

sniper8752 02-08-2013 01:47 PM

no, i don't. and the usernames do show up.

EDDY1 02-08-2013 01:53 PM

1 Attachment(s)
Use your editor to add

lleb 02-08-2013 02:04 PM

Quote:

Originally Posted by sniper8752 (Post 4887176)
I am running Raspberry Pi, and when I plug in my Toshiba external hard drive, and I try to access the contents of it, it gives off an error message saying that i am "Not authorized". I can't mount it.

and just exactly how did you mount the drive and what flavor of linux are you running on your Pi?

sniper8752 02-08-2013 03:38 PM

Quote:

Originally Posted by EDDY1 (Post 4887227)
Use your editor to add

what am i adding? that line that is selected?

EDDY1 02-08-2013 04:57 PM

Quote:

Originally Posted by sniper8752 (Post 4887279)
what am i adding? that line that is selected?

You are adding username to the group.
See my example I have 2 users

Also as lleb requested what Distro are you using?

TroN-0074 02-08-2013 05:49 PM

Try this if you have the sudo command enabled if not then just become root and then try this
Note replace the sdxx with the device you are mounting it can be sdb or sdb1



Code:

sudo mkdir /home/shares
sudo mkdir /home/shares/public

then
Code:

sudo chown -R root:users /home/shares/public
sudo chmod -R ug=rwx,o=rx /home/shares/public

then
Code:

sudo mount /dev/sdxx /home/shares/public/
Once you have done running these commands open up your file browser and navigate to /home/shares/public and all your files should be there

To find what name your system is giving to you device drive and type in terminal, as root "mount" it will display all the devices pluged in your system
Also if you type fdisk -l also will show you the list of drives and partitions in your system.

Good luck to you!


All times are GMT -5. The time now is 02:32 PM.