Page 1 of 1

How to create a 3fs/ext3 file and mount it?

Posted: Sun 11 Nov 2012, 20:27
by snayak
Dear All,

How to create a 3fs/ext3 file and mount it?
What are the commands?

Looking to create a personal 3fs/ext3 file in my FAT partition for installing xampp into it.

Not asking, how to create a pupsave.3fs file.

Sincerely,
Srinivas Nayak

Posted: Sun 11 Nov 2012, 20:47
by bigpup
Something here may be what you want.
http://www.google.com/cse?cx=0159956439 ... make%20sfs
Here is Google Puppy specific search
http://wellminded.com/puppy/pupsearch.html

Re: How to create a 3fs/ext3 file and mount it?

Posted: Sun 11 Nov 2012, 20:59
by MinHundHettePerro
snayak wrote:Dear All,

How to create a 3fs/ext3 file and mount it?
What are the commands?

Looking to create a personal 3fs/ext3 file in my FAT partition for installing xampp into it.

Not asking, how to create a pupsave.3fs file.

Sincerely,
Srinivas Nayak

Code: Select all

dd if=/dev/zero of=FILENAME.3fs bs=1M count=64;mkfs.ext3 FILENAME.3fs
for to make a 64 MB file FILENAME.3fs.

To mount it at e.g. /mnt/data:

Code: Select all

mount -t ext3 - loop FILENAME.3fs /mnt/data
, and to unmount it:

Code: Select all

umount /mnt/data
.

To use a unique mountpoint:

Code: Select all

mkdir /mnt/xampp_mntpnt
, exchange /mnt/data in the example above for /mnt/xampp_mntpnt.

hth :)/ MHHP

Posted: Sun 11 Nov 2012, 21:07
by mcewanw
Yes, that would be another simple way of getting your xampp working. Just untar into that mounted ext3 file, which you could link to from /opt or you could make a directory called /opt/lampp and mount it to there. Probably better to make an sfs out of it though, since Puppy is designed to load these automatically.

Posted: Sun 11 Nov 2012, 21:25
by snayak
Dear mcewanw,

Your idea is good, to make an sfs.

3fs was my idea ;-)

Sincerely,
Srinivas Nayak

Posted: Sun 11 Nov 2012, 22:56
by mcewanw
I cannot claim any credit. Both ideas are quite commonly used I think. I have an underlying ntfs filesystem so I do most of my development work on a mounted ext2 formatted file there, and sfs is often used on Puppy and also tinycore and others.