The time now is Sat 25 May 2013, 19:31
All times are UTC - 4 |
| Author |
Message |
rrolsbe
Joined: 15 Nov 2006 Posts: 178
|
Posted: Sun 26 Jul 2009, 10:08 Post subject:
Add ext2/3 file system to your FAT/NTFS file systems Subject description: Linux mountable sparse file |
|
This might be something useful to add to the standard Puppy toolkit. The following will create a sparse file that can be mounted to give Puppy access to an ext2 file system. Note: The sparse file in this example is 16GB but uses very little space on the partition where it is stored. Of course, as you add files to the mounted sparse file it will grow. I use this only for a scratch area when I need to do thinks that require a Linux file system, IE.. tar, make links etc. Just add it to your rc.local and it will always be available. It could also be used as a scratch area in the discussion in this thread.
| Code: | dd if=/dev/zero of=/mnt/home/ext2_sparse_file.img bs=1 count=0 seek=16G
du -sh ext2_sparse_file.img
du -sh --apparent-size ext2_sparse_file.img
mkdir /mnt/ext2_sparse_file_mnt_point
mke2fs ext2_sparse_file.img
du ext2_sparse_file.img
du -kh ext2_sparse_file.img
mount -t ext2 -o loop /mnt/home/ext2_sparse_file.img /mnt/ext2_sparse_file_mnt_point/
# mount
rootfs on / type rootfs (rw)
/dev/sda1 on /initrd/mnt/dev_save type fuseblk (rw,noatime,user_id=0,group_id=0,blksize=4096)
/dev/loop1 on /initrd/pup_rw type ext2 (rw,noatime,errors=continue)
tmpfs on /initrd/mnt/tmpfs type tmpfs (rw,size=99532k)
/dev/loop0 on /initrd/pup_ro2 type squashfs (ro,noatime)
/dev/loop4 on /initrd/pup_ro4 type squashfs (ro,noatime)
/dev/loop5 on /initrd/pup_ro5 type squashfs (ro,noatime)
unionfs on / type unionfs (rw,dirs=/initrd/pup_rw=rw:/initrd/pup_ro2=ro:/initrd/pup_ro4=ro:/initrd/pup_ro5=ro)
tmpfs on /tmp type tmpfs (rw,size=778276k)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=2,mode=620)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/loop2 on /mnt/ext2_sparse_file_mnt_point type ext2 (rw,errors=continue)
# cat /etc/rc.d/rc.local
#this file called from rc.sysinit
#you can edit this file
#When firewall is installed, will append lines to this file...
modprobe evdev
mount -t ext2 -o loop /mnt/home/ext2_sparse_file.img /mnt/ext2_sparse_file_mnt_point/ |
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|