![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help changing /etc/vfstab - can't boot | lyonsd | SUN Solaris | 6 | 03-20-2009 06:36 PM |
| mount in vfstab | jess_t03 | SUN Solaris | 1 | 02-25-2008 06:12 AM |
| VFSTAB edit | xeroxguy | UNIX for Dummies Questions & Answers | 1 | 09-27-2005 09:07 PM |
| /etc/vfstab | hcclnoodles | UNIX for Dummies Questions & Answers | 3 | 04-17-2003 06:19 AM |
| /etc/vfstab Field Descriptions | minazk | UNIX for Advanced & Expert Users | 2 | 01-21-2003 04:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
question about vfstab
Hi all,
I have been trying to figure out a way to mount swap on /tmp at a stage early than the default script that does it... If anyone knows how it can be done pls pls help me!!!!! I have been struggling a lot for it Secondly, continuing with the same issue... I wanted to know if the entries in the vfstab are initially hand coded ? I mean during the development of the OS , will /etc/vfstab be created by hand and the details added?or is the creation of vfstab is through some other scripts? My primary focus here is to mount swap on /tmp before its done by iteslf... am unable tofind the script that does it,if anyone has an idea pls share !!! while going through this ,i came up with the question about vfstab, thats all!! Thanks |
|
||||
|
Hi There, if i understood correctly, here is what you are looking for...
---------- To use a file in a filesystem for swap space, choose the swap space size that you want for this swap area (up to 2 GiB on x86) and then enter (as described in 'man mkswap'): dd bs=1024 count=1M if=/dev/zero of=/path/to/swapfile.n This writes a 1 GiB file (1 MiB * 1024) to "/path/to/swapfile.n". You can do this multiple times to use more swap files on large-memory systems. Swap files cannot be sparse; they must be fully allocated before using them. ---------- ** more on http://www.xenotime.net/linux/doc/swap-mini-howto.txt -ilan |
|
||||
|
wrapster: Maybe you should post your question in the Sun / Solaris forum, or the Advanced forum, and/or be more explicit about what you want to accomplish. Linking to your old thread might also be a good idea. Anyway, this is not a shell programming question by any stretch; a posting to a more appropriate forum is more likely to be seen by people who know about this stuff.
If you somehow manage to squeeze the file you want onto the live image, perhaps it would be more productive to try to explore whether you can somehow use it directly from the image, rather than copy it to a new location. |
|
||||
|
Hi,
All of you are correct.. I know that there is an entry for mounting swap on /tmp in the vfstab, however the scripts that process and finally do the moutings kick in much later than when i want it to... Also i cannot just override these scripts as they have dependencies so what am after is to mount swap on /tmp in the script that comes stages before the default script is executed.... The reason is very simple ,ram boot is always faster,so thought why not implement it on a OS that is currently in livecd format!! Regards PS ls have a look at my next thread |
| Sponsored Links | ||
|
|