question about vfstab


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting question about vfstab
# 1  
Old 04-26-2008
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  
Old 04-27-2008
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  
Old 04-27-2008
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  
Old 04-27-2008
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 07:36 AM..
Tornado
# 5  
Old 04-27-2008
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

PSSmiliels have a look at my next thread
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

vfstab entries not automounting

Please see my vfstab entries below.. #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # fd - /dev/fd fd - no - /proc - /proc proc - no ... (3 Replies)
Discussion started by: Tuxidow
3 Replies

2. UNIX for Dummies Questions & Answers

Setting up a vfstab

Hi Guys i need your help quite urgently I am setting up a vfstab but need some help, here is the file systems 0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> drmlc-00 Part Tag Flag Cylinders Size Blocks Mounted/used by 0 root wm 0 - ... (1 Reply)
Discussion started by: brian112
1 Replies

3. UNIX for Dummies Questions & Answers

/etc/vfstab vs /etc/mnttab

what is the difference between the /etc/vfstab and /etc/mnttab? when i check both files, the content is almost the same. can you enlighten me? what i know is /etc/vfstab is used for hard mounts. (4 Replies)
Discussion started by: hrist
4 Replies

4. Solaris

etc/vfstab

Hi Everyone, How to find the wrong entry in etc/vfstab or wrong mount point in etc/vfstab ? Thanks & Regards Padmaja. (4 Replies)
Discussion started by: padmaja
4 Replies

5. Solaris

Help changing /etc/vfstab - can't boot

I have Solaris 10 Express that I installed on a PC with two drives. It was on drive 1 (with the boot drive being drive 0). Linux was in a different parition and my boot options where managed by grub. The Solaris parition's /etc/vfstab referenced the root, user, etc.. disks as c0d1sX. But... (6 Replies)
Discussion started by: lyonsd
6 Replies

6. Solaris

how to edit /etc/vfstab

I created a file system earth in /earthpool (zpool). I mounted the file system on a directory /earth. But, when I reboot my machine it doesn't load the file systems and the zpool and zfs shows no pools available and no datasets respectively. I am using Solaris 10 running on X4500. Could you... (5 Replies)
Discussion started by: bharu_sri
5 Replies

7. UNIX for Advanced & Expert Users

vfstab overlay mount

How can I specify and the -O (overlay option) in the vfstab ? Also can you specify the overlay option to the mount options for a Vertias cluster NFS service group ? (0 Replies)
Discussion started by: wjones
0 Replies

8. Solaris

mount in vfstab

In the end of /etc/vfstab file : /dev/md/dsk/d30 /dev/md/dsk/d30 /odb0 ufs no no - /dev/md/dsk/d40 /dev/md/dsk/d40 /odb1 ufs no no - After boot filesystems /odb0 and /odb1 don't mount. Also they don't mount after comand mount -a But if i'm enter... (1 Reply)
Discussion started by: jess_t03
1 Replies

9. UNIX for Dummies Questions & Answers

VFSTAB edit

Hello all... I have a Ultra 60 that that is used for connecting a large Xerox printer to the network. This computer takes PDF's and converts them to tiffs and sends them back to a pc :p . In order to transfer data back and forth a mount is manually performed on the UNIX box. The mount of course is... (1 Reply)
Discussion started by: xeroxguy
1 Replies

10. UNIX for Dummies Questions & Answers

/etc/vfstab

If i wish to make a mount permanent, is it /etc/vfstab that i have to the entry add to? If so does anybody know the syntax, ie. is it tab or space delimited ? etc etc any help would be greatly appreciated (3 Replies)
Discussion started by: hcclnoodles
3 Replies
Login or Register to Ask a Question