LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2009, 07:54 AM   #1
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Rep: Reputation: 15
Mounting an external USB HD to execute software


Hi,
I'm running on the fly here, as my laptop is at home:
In principal, is it possible to hard mount an external USB HD such that I can load and run software stored on that HD?

My vaio laptop is old and has insufficient HD on-board to store the Java IDE I wish to use. On my previous Linux desktop, RIP, I was simply told I couldn't run externally stored software for security reasons. I wonder if I can bring it into the fold by properly mounting it?

I'm running Vector 5.7? soho, which I'm very impressed with.
USB HD is WD 2.2inch 110GB.

Qn 2, How do I find out the mount code? This disc mounts automatically as an external unit - can I copy the code across?

Many thanks

Ian
 
Old 02-09-2009, 09:36 AM   #2
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
hard mount?

well, as far as i know you can run and install software from a "soft-mounted" drive. why would that be a probem?
 
Old 02-09-2009, 09:40 AM   #3
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Not sure about Vector, but as a general rule of thumb, everything in Linux is a file, so yes, it is possible to do what you are asking. Whether it is recommended is another ball game!
 
Old 02-09-2009, 09:42 AM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Not sure about Vector, but everything in Linux is a file, so yes you can, in theory, do what you want. Please remember that this may not be advisable for a few reasons, such as security and system stability.
 
Old 02-09-2009, 10:38 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Drives can be mounted so that software cannot be run from them. However, my current kubuntu allows me to run software on an external drive by default.

See man mount and search for exec and noexec

If you want to see how your USB drive has been mounted just type mount in a terminal.

Here's mine:
Code:
tred@vaio:~$ mount
/dev/sda6 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-23-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal,data=ordered)
tred@vaio:~$
 
Old 02-11-2009, 03:15 AM   #6
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you

Next week I am travelling - I shall try these suggestions then.

Meantime, Thank you for your advice, its most gratefully received

Ian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting USB WD external HD hammanu SUSE / openSUSE 4 10-16-2007 11:48 PM
mounting an external usb 2.5" hd. d1l2w3 Linux - Hardware 4 10-06-2007 08:09 AM
Mounting USB external drive with multiple partitions, USB bluetooth mouse xmeson Slackware 7 12-17-2006 09:00 AM
usb controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
Mounting my USB external drive, USB 1.1 Devillion Linux - Hardware 4 01-04-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration