urgent help needed!!in copying files to /tmp at boot time,pls help!


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users urgent help needed!!in copying files to /tmp at boot time,pls help!
# 1  
Old 04-27-2008
urgent help needed!!in copying files to /tmp at boot time,pls help!

Hi all,

I am trying to boot a an OS from RAM...(its a opensolaris based distro)
For this i have picked up 2 key lib files that when copied to /tmp and mounted to respective places will do the job..
The sizes of these files combined comes upto 600mb.(i have 2gb ram)
Now i have also located the script that does the mounting of these 2 files (after a lofiadm)onto /usr and /mnt/<somedir> respectively.

Currently these files are directly lofiadm'd from the cdrom itself and then mounted,my quest is to copy it to /tmp, lofiadm it there and then mount

However when the script that mounts these files from cdrom is called that amount of swap space is not available(hence am not able to copy them to /tmp from tht file)

Can you please help me to find a work around?
Also i know that
1. /usr/lib/fs/tmpfs/mount swap tmp can do the job ,however at that moment tmpfs is not at all loaded from its path..
so what i did was to copy the binaries of mount(created a dir in that path called tmpfs and put this binary there)
so in the script i just called 1.
but its still not working, may i know what am doing wrong?
Also i was a bit skeptical about the usage of mount cmd to mount swap ,
would like to know if its right?

I require urgent help,as am a student and have my exams coming up
please assist

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Urgent ...pls Sorting files based on timestamp and picking the latest file

Hi Friends, Newbie to shell scripting. Currently i have used the below to sort data based on filenames and datestamp $ printf '%s\n' *.dat* | sort -t. -k3,4 filename_1.dat.20120430.Z filename_2.dat.20120430.Z filename_3.dat.20120430.Z filename_1.dat.20120501.Z filename_2.dat.20120501.Z... (1 Reply)
Discussion started by: robertbrown624
1 Replies

2. UNIX for Dummies Questions & Answers

Copying files between two time interval

Hi All, I am new to this forum.... Can neone please help me how to copy files between two time intervals i.e. I need to copy files from 6.30 to 9.30 on 5th June 09. Any help is appreciated. (2 Replies)
Discussion started by: Pratik4891
2 Replies

3. Shell Programming and Scripting

Need to zip the files date wise --urgent Help needed

Hi all, this is my first post, i need to write a script to zip the files with datewise below are the log files. -rw------- 1 root sso 85316156 May 24 22:11 core_test_smservaz_104_104_1243217459_8896 -rw------- 1 root sso 90413304 May 25 22:12 core_test_smservaz_104_104_1243303895_20912... (4 Replies)
Discussion started by: lcschandu
4 Replies

4. Solaris

executing cgi programs in solaris(B89) needed urgent help,pls!

Hi all, I am trying to execute cgi scripts on solaris, but everytime i get a internal server error... The syntax of my .cgi script is correct as ive checked.. Steps i followed 1.started apache 2.The UNIX and Linux Forums - Learn UNIX and Linux from Experts (in opera) 3.places my cgi scripts... (7 Replies)
Discussion started by: wrapster
7 Replies

5. Solaris

how to install xen on solaris?, urgent help needed, pls

Hi , I wanted to know how to install XEN on solaris? I have looked at virutal box but the latest release is not supporting many OS, and for my development work i need some sort of virtual systems..... and older versions of virtual box dont run on my build of solaris (b83)!!! so please help ... (3 Replies)
Discussion started by: wrapster
3 Replies

6. Ubuntu

Urgent Help Needed: Installing Dual Boot Ubuntu

Hi, I have installed Ubuntu 5.04 on my second Hard Drive. My first HD contains windows. When i make my 2nd HD as boot device, i see GRUB Menu (i.e. stage 2). On trying to boot Ubuntu, I get an Error 15: File missing problem. The FS shown was FAT. On trying to boot Windows, I am presented... (5 Replies)
Discussion started by: karthikb23
5 Replies

7. Shell Programming and Scripting

unable to log into gdm, urgent help needed!!!pls

Hi all, I was playing around with some scripts and spoilt solaris completely .. So i reinstalled and thought of giving the password once i log in... However i forgot all about it and went ahead installing all my drivers and particularly KDE 3.5.8 on my system.. But for kde to show up at the... (0 Replies)
Discussion started by: wrapster
0 Replies

8. Shell Programming and Scripting

Copying files created after a specified date/time

I need to write a script that copies files from one directory to another that were created after "today 6:30". This script will be NOT be ran at the same time each day. any help is appreciated. (2 Replies)
Discussion started by: jm6601
2 Replies

9. Shell Programming and Scripting

Comparing two files (comm or awk) - help - very urgent pls

I an unix newbie and am confused about the working of "comm". I have two files to be compared and the three columns of output after comparison should be stored a three separate files. File abc -------- pink orange green blue black maroon File xyz --------- pink yellow grey... (3 Replies)
Discussion started by: manthasirisha
3 Replies

10. Shell Programming and Scripting

Copying Files in the same order along with time stamps

Hi , I am New to this group and would like to know if someone can help me on this issue : We need to copy some files from a particular directory to another directory in the same order and time stamps .How can this be achieved . For Ex : ./ABC/disk101/XYZ has 1000 files with varying... (2 Replies)
Discussion started by: shyam.appalla
2 Replies
Login or Register to Ask a Question
i-ls(1) 						      General Commands Manual							   i-ls(1)

NAME
i-ls - display file stat and checksum information for files SYNOPSIS
i-ls [-s] filename i-ls [-s] dirname Specify a filename for i-ls to examine, or specify a directory with dirname to examine all the files in the directory. -s Do not show/calculate checksums for all regular files. DESCRIPTION
The integrit system detects intrusion by detecting when trusted files have been altered. integrit records information about files in a database. i-ls allows the user to see that information for live files. The output syntax is the same as that of integrit. EXAMPLES
i-ls /tmp/foo.txt shows file stat attributes for the file, "/tmp/foo.txt". i-ls /tmp shows file stat attributes for all files in the directory, "/tmp". i-ls -s /tmp shows file stat attributes for all files in the directory, "/tmp", also including also checksums for all regular files. AUTHOR
Ed L Cashin <ecashin@users.sourceforge.net> See the integrit web site for up to date releases and information at http://integrit.sourceforge.net/ SEE ALSO
Integrit File Verification System Manual (info), lstat(2) Version 4.1 Jul 27, 2001 i-ls(1)