Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page Linking Direcotry with Hardrive
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 05-17-2008   #1 (permalink)
tman144566
Just Joined!
 
Join Date: May 2008
Posts: 3
Linking Direcotry with Hardrive

How do you link a file directory to an external hard drive.An example would be if I have a usb hard drive and I want the the folder /usr/bin/games to be considered the external hard drive. Really, my main purpose for this link is to have more space in the folder /usr/bin/games.

Thanks
tman144566 is offline   Reply With Quote
Old 05-17-2008   #2 (permalink)
Dapper Dan
Trusted Redneck
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 3,555
Send a message via AIM to Dapper Dan
I don't know if my answer to your question will be in the way you may be anticipating, but mostly, external hard drives (specifically their file systems) are mounted at /mnt. So let's say you have an external usb hard drive and it is situated in /dev as sda1. First, you would create the directory where it will be mounted to in /mnt...
Code:
mkdir /mnt/external_usb
* you can name it whatever you wish when creating the mount point. After its creation, mount the drive to it:
Code:
mount /dev/sda1 /mnt/external_usb
Then, enter it:
Code:
cd /mnt/external_usb
I hope this helps...
__________________
Crux 2.4 + IceWM Linux is not Windows Registered: #371367

"I would rather have 10 people who know a little bit about something and are willing to help than one know-it-all who sees it as his life's pursuit to correct everyone else." -techieMoe
Dapper Dan is offline   Reply With Quote
Old 05-18-2008   #3 (permalink)
scm
Linux Engineer
 
Join Date: Feb 2005
Posts: 922
And then change your /usr/bin/games directory to a symlink:
Code:
rm -rf /usr/bin/games
ln -s /mnt/eternal_usb /usr/bin/games
Make sure you save first anything that's under the original /usr/bin/games that you don't want to lose, of course! And /usr/bin/games will be just a dangling link when the usb drive isn't mounted.
scm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 07:22 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0