ScreenShots
Who's Online
We have 192 guests onlineMost Popular howTo's
Latest Posts
HowTo
Newest Downloads
| Creating a virtual loopback device |
| Linux HowTo's - Beginner Linux HowTo's | |||||||||
| Written by dexxtreme dexxtreme | |||||||||
| Saturday, 24 May 2008 06:55 | |||||||||
|
Tags: Sometimes you will need to create a virtual loopback device for whatever reason. One possible need would be for a temporary filesystem to do some quick testing, or maybe to set up a larger /tmp partition on a server where /tmp is too small. To initially create the loopback device, run: # dd if=/dev/zero of=/usr/local/tmpfs bs=50M count=10 # losetup /dev/loop0 /usr/local/tmpfs # mkfs -t ext3 /dev/loop0 # mount /dev/loop0 /path/to/dir You should now have a 500MB loopback filesystem (minus the standard filesystem overhead) mounted under /path/to/dir. You can change the size of the device by modifying the "bs" and "count" arguments in the "dd" command. On every reboot,you will need to do the following to make the device available again: # losetup /dev/loop0 /usr/local/tmpfs # mount /dev/loop0 /path/to/dir
Tags:
Only registered users can write comments!
Powered by !JoomlaComment 3.22
3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."
|
|||||||||
| Last Updated on Sunday, 25 May 2008 00:06 |












