Re: Making a link to a dir on another partition

From: Cameron Simpson (cs_at_zip.com.au)
Date: 01/24/04

  • Next message: johnny bobby bee: "Re: which Linux for an intranet?"
    Date: Sun, 25 Jan 2004 09:07:29 +1100
    To: comp.os.linux.questions@usenet
    
    

    On 05:41 24 Jan 2004, Chris Mantoulidis <cmad_x@yahoo.com> wrote:
    | I got a partition /dev/hda5 (of type vfat) and I can mount it and r/w
    | to it okay (even as a user).
    | When it is mounted, the destination folder is /mnt/files (I don't know
    | how to explain "destination folder" better than the folder that
    | receives the device data when it's mounted).

    The correct term is "mount point" i.e. the point in the main filesystem where
    the root of the new filesystem is mounted.

    | In /mnt/files I got a directory called web.
    |
    | I want to have a link to that folder from my linux partition. Even
    | though making links works from inside my linux partition, I got a
    | problem making a link to that vfat partition.
    |
    | Here's what I do:
    |
    | $ cd ~/data
    | $ link web /mnt/files/web
    | link: cannot create link `web' to `/mnt/files/web': Invalid cross
    | device link.

    You need a symbolic link (aka a soft link).

    A hard link is fundamentally a with-one-filesystem notion: it's another
    name entry for a particular inode. It's entirely self contained, and
    thus cannot talk about something on another filesystem.

    A symbolic link is a special type of file that contains the path
    to another file. It may thus talk about any item on any mounted
    filesystem. It is also "weaker", in that it's go no hard tie to the
    target, which may move or be deleted, and the symbolic link won't magicly
    track. By contrast, a hard link is an inode reference, and an inode's
    contents only get deleted when all the hard links are removed. Likewise,
    moving it doesn't break it.

    Cheers,

    --
    Cameron Simpson <cs@zip.com.au> DoD#743
    http://www.cskk.ezoshosting.com/cs/
    Of course no description of a Ducati engine is complete without mentioning
    the sound.  That deep bass exhaust rumble along with the mechanical music of
    the desmodromic valves...too bad it isn't available on compact disc.
    - Sport Rider, evidently before the release of the "Ducati Passions" CD
    

  • Next message: johnny bobby bee: "Re: which Linux for an intranet?"

    Relevant Pages

    • RE: lvm on RH8 _ SOLVED_
      ... Apparently, the lvm module wasn't getting initialised at boot, so I ... Using fdisk, change the partition usage to 0x8e (free space, logical ... Next the filesystem needs to be created in the logical volumes. ...
      (RedHat)
    • Re: Hard Drive Question
      ... > hardlined partition logic is usually overkill and needlessly complicated. ... * To impose restrictions on the size of certain directory subtrees (i.e. /tmp ... amount of filesystem checked at any one time, ... * To provide alternate (or recovery) directory subtrees, ...
      (alt.os.linux)
    • read/only root filesystem strategy
      ... the installed system as possible be running under a read/only mount. ... or a widely shared network filesystem. ... Modifying the kernel to perform the setup. ... Partition hda1 would house the kernel and a small rescue ...
      (comp.os.linux.development.system)
    • RE: lvm on RH8
      ... Using fdisk, change the partition usage to 0x8e (free space, logical ... Next the filesystem needs to be created in the logical volumes. ... 512000 inodes, 1024000 blocks ... lvscan -- no logical volumes found ...
      (RedHat)
    • Re: migrate to bigger disk
      ... Same goes for the Linux partition. ... because the filesystem carries a measure of it's size in the ... beginning of the primary partition table. ...
      (comp.os.linux.setup)