The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-26-2008
wrapster wrapster is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 193
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
  #2 (permalink)  
Old 04-27-2008
ilan ilan is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 101
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
  #3 (permalink)  
Old 04-27-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
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.
  #4 (permalink)  
Old 04-27-2008
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
Quote:
Originally Posted by wrapster
My primary focus here is to mount swap on /tmp before its done by iteslf...
One question comes to mind ... Why would you want to?

And to answer your other question:
Quote:
Originally Posted by wrapster
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?
When the OS is initially installed a vfstab file is created, then if you want to add more file systems from other disks you edit the vfstab by hand.

Last edited by Tornado; 04-27-2008 at 06:36 AM..
  #5 (permalink)  
Old 04-27-2008
wrapster wrapster is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 193
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

PSls have a look at my next thread
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0