LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   External Hard Disk (https://www.linuxquestions.org/questions/linux-hardware-18/external-hard-disk-221232/)

sajikwt 08-23-2004 05:48 AM

External Hard Disk
 
Hi,
Pleae can anybody explain how to install a software in my USB external harddisk .

Sajid

rjlee 08-23-2004 06:36 AM

A USB external harddisk appears as a generic USB Mass Storage Device.

Normally, you just plug it in, and the system recognises it and mounts it somewhere under /media/. If you don't have automounting turned on, then you will have to mount it yourself with, say:
Code:

su -c 'mount /dev/sd0 /media/ -o user'
. Either way, you will need to unmount the device before you take it out.

For that to work, you need to have the relevant kernel modules available (most modern distros will have).

As to installing software on it, once it's mounted you can just install there like any other directory. If you're sharing the software between several computers, then you may want to compile it with the -static option to prevent problems related to having different library versions.

Hope that helps,

— Robert J. Lee

Aussie 08-23-2004 04:32 PM

Moved: This thread is more suitable in hardware and has been moved accordingly to help your thread/question get the exposure it deserves.

sajikwt 08-24-2004 03:26 AM

I was trying to install Oracle 11i Appliaction on USB harddisk., the steps folowed is I create a user Oracle and login with that user. But while selecting the mounted hard disk its giving a error ..permission denied to create /home/oracle/inventory directory....

Please help

rjlee 08-24-2004 03:43 AM

Quote:

Originally posted by sajikwt
I was trying to install Oracle 11i Appliaction on USB harddisk., the steps folowed is I create a user Oracle and login with that user. But while selecting the mounted hard disk its giving a error ..permission denied to create /home/oracle/inventory directory....

Please help

Where is your USB hard-disk mapped to?

In order to create a directory on a filesystem, you need to have read (r), write (w) and execute (x) permissions for the parent directory. If you use
Code:

ls -ld /home/oracle
then you can see the ownership and permissions for that directory. It should say something like:

Code:

drwxr-x--- Oracle users /home/oracle/
The initial ‘d’ means this is a directory. The first three letters (rwx) means that the owning user has read,write and execute access to the directory. The next three (r-x) mean that the owning group only has read and execute access. The next three (---) mean that no-one else can access the directory. The next word is the owning user (Oracle) and group (users).

You can change the permissions with the
Code:

chmod
command, and the ownership with
Code:

chown
You need to make sure which user is trying to create the directory. It may be that the setup for Oracle 11i will automatically set up users and run as those; see the installation instructions.

Also, please note that filenames and user-names are case-sensitive; “Oracle” is a different user from “oracle”.


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