Re: Mounting two different disk slices on the same mount point

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 08/07/04

  • Next message: Matthew Seaman: "Re: Conflict with p5-podlators"
    Date: Sat, 7 Aug 2004 13:00:17 +0100
    To: Odhiambo Washington <wash@wananchi.com>, freebsd-questions@freebsd.org
    
    
    

    On Sat, Aug 07, 2004 at 01:36:39PM +0300, Odhiambo Washington wrote:
    >
    > Hello FreeBSD gurus,
    >
    > Some linux guy gave me a strange idea:
    >
    > You have two disks, /dev/da1s1e and /dev/da2s1e and I mount the
    > two to a single mount point.
    > Do I end up with the total capacity of the two disks on the said
    > mount point?
    > To be a bit clear, da1 is, say, 36GB and da2 is 72GB and I mount
    > as above to /mnt
    > Does /mnt now have 108GB?
    > What are the dangers of doing this?
    > How does the system use the disks?
    >
    > I haven't tested this anyway.
    >
    >
    > Is this something sane?
    >
    >
    > Clues will be highly appreciated.

    That sounds a bit muddled. If you try mounting two partitions
    literally in the same place, either one will overlay the other so you
    can only access the last mounted partition, or you'll get an error
    message and fail to mount the second one. (Which occurs depends on the
    filesystem type).

    What I think your Linux using friends were thinking of, even if they
    were unclear on the concept, is some form of logical volume
    management.

    Under FreeBSD, you could use vinum(8) to create a concat volume from
    the two partitions, which would give you give you a filesystem the
    size of the sum of both components. That's not new functionality.
    It's been available in FreeBSD for ages (since 2.x I believe) through
    vinum(8) or one of it's predecessors like ccd(4).

            Cheers,

            Matthew

    -- 
    Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                          Savill Way
    PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
    Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
    
    



  • Next message: Matthew Seaman: "Re: Conflict with p5-podlators"

    Relevant Pages

    • Re: REČ: FreeBSD isdangerous!
      ... > in my debian Linux partitions. ... The problem isn't specific to FreeBSD. ... partition from another fs is a security problem in your particular ... mount it, ...
      (freebsd-newbies)
    • Re: Moving Along with Fedora!
      ... but I would like to know the windows equivalent of the Linux ... you "mount" them to the tree. ... all the letter designations for drives have disappeared. ... a drive, the partitions have device named like /dev/hda1 or /dev/hda2, ...
      (Fedora)
    • Review of FreeBSD 5.4
      ... I've been trying various Linux distributions for the past 5 years as ... The download was to large to risk it not working, ... So I tried FreeBSD 5.4. ... the linux partitions and replaced it with a nice huge BSD slice. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: [SLE] Need help mounting a USB disk drive
      ... > be able to move that device between my Windows machine and my Linux machine. ... > The idea would be to convert one of those partitions into either an EXT2 ... > to create a high-level directory entry for use as a mount point and issue ...
      (SuSE)
    • Re: Networking under SuSe
      ... principals on how to do this under Linux. ... NFS is what you best can use. ... machine with the standard three partitions, ... You can, with NFS, easily mount any partition on any machine. ...
      (alt.os.linux.suse)