[NCLUG] symbolic links

kensharon.morris at att.net kensharon.morris at att.net
Wed Nov 15 15:26:10 MST 2000


Daniel,
I am not installing a new disk...but trying to 
keep an installation from loading on /usr and 
want to redirect it to /opt with use of a symbolic
link....

Both /usr and /opt exist on the hard drive and I
am installing from a CDROM which wants to install to 
/usr.

Ken
> Ken,
> 
> You'll probably get multiple replies to this, but here goes mine...
> 
> 1.  As root, create a directory on your first disk in /, called /opt.
>     cd /
>     mkdir opt
> 
> 2.  Run fdisk /dev/hdb (or whatever name your added disk is), and
>     create a linux native partition (type 83 if I remember right).
> 
> 3.  Run mke2fs /dev/hdb1 (or kmke2fs on RedHat 6.2) to create an ext2
>     filesystem on the new partition.
> 
> 4.  Mount the new disk at the newly created mount point:
>     mount /dev/hdb1 /opt
> 
> 5.  Add the mount info to your existing /etc/fstab to make it
>     permanent after a reboot:
>     vi /etc/fstab
>     (add line as follows)
>     /dev/hdb1  /opt  ext2  defaults  1 2
> 
> That's it.  Have I left anything out, anyone?
> 
> Regards,
>    Daniel
> 
> 
> -- 
> Daniel Herrington, KC0IFV
> http://members.home.net/daniel.herrington/
> Home of Herky, my robot.
> 
> 
> 
> => Replying to ken's message, "[NCLUG] symbolic links" (Nov 15):
>  > I have 3 books on linux and none of them fully explains links.
>  > 
>  > I am running out of space on /usr and need to install to another
>  > partition  say   /opt
>  > When I try
>  > ln -s /usr/local/moneydance /opt/local/moneydance
>  > the CDROM still trys to install to /usr/local/moneydance.
>  > 
>  > Do I have to use a hard link...?
>  > Or is it not possible to link between partitions....?
>  > 
>  > Ken
>  > 
>  > 
>  > _______________________________________________
>  > NCLUG mailing list
>  > NCLUG at nclug.org
>  > http://www.nclug.org/mailman/listinfo/nclug
> 
> _______________________________________________
> NCLUG mailing list
> NCLUG at nclug.org
> http://www.nclug.org/mailman/listinfo/nclug



More information about the NCLUG mailing list