Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Jack Strangio Newsgroups: comp.os.linux.misc Subject: Re: Gparted questions Date: Wed, 8 Feb 2023 02:46:53 -0000 (UTC) Organization: North Star Horizon Builders Club Lines: 54 Message-ID: References: Injection-Date: Wed, 8 Feb 2023 02:46:53 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="b4939fa077e2c133a3146562c0dd55dd"; logging-data="13085"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8AuCoMrzddcWpgI/rXb/xxA7sX89z7iU=" Cancel-Lock: sha1:/4eqG5bdv35i9jiJuI8Dqb27fUQ= X-Newsreader: TASS News Reader 3.7.2 jvs [linux] Xref: csiph.com comp.os.linux.misc:36951 vjp2.at@at.BioStrategist.dot.dot.com writes: > > How do you put a partition inside a partition? > A partition, or a filesystem?? We tend to use both of these terms interchangeably, but they ARE NOT THE SAME THING. Normally we fill a disk-partition with just one filesystem, though MBR 'extended partitions' can hold several 'logical partitions'. This most likely what you wanted the answer to, but you CAN put a 'partition' within a partition by formatting a normal file as a filesystem. So (for instance) you might have a 100MB partition that hold ten 10 MB files, each of which holds a filesystem and each of those can be mounted just like a disk-partition can be mounted. ==================================== #!/bin/bash #jvs script "loopmount" # mounts .iso image file on /cd # mounts filesystem-file on mount-point # if [ "$2" != "" ]; then MOUNTPOUNT=$2 else MOUNTPOUNT=/cd fi if [ "$3" != "" ]; then TYPE=$3 else TYPE=iso9660 fi if [ -z $1 ]; then echo "usage: loopmount ( will be mounted on /cd ) (will be iso9660)" echo " loopmount " else LOOP=$(sudo losetup --find --show $1) echo "sudo /bin/mount -t${TYPE} -oloop $LOOP $MOUNTPOUNT" sudo /bin/mount -t${TYPE} -oloop $LOOP $MOUNTPOUNT fi ==================================== Regards, Jack -- My wife says I have two faults: I don't listen and something else.