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
DH_MOVEFILES(1) 						     Debhelper							   DH_MOVEFILES(1)

NAME
dh_movefiles - move files out of debian/tmp into subpackages SYNOPSIS
dh_movefiles [debhelperoptions] [--sourcedir=dir] [-Xitem] [file...] DESCRIPTION
dh_movefiles is a debhelper program that is responsible for moving files out of debian/tmp or some other directory and into other package build directories. This may be useful if your package has a Makefile that installs everything into debian/tmp, and you need to break that up into subpackages. Note: dh_install is a much better program, and you are recommended to use it instead of dh_movefiles. FILES
debian/package.files Lists the files to be moved into a package, separated by whitespace. The filenames listed should be relative to debian/tmp/. You can also list directory names, and the whole directory will be moved. OPTIONS
--sourcedir=dir Instead of moving files out of debian/tmp (the default), this option makes it move files out of some other directory. Since the entire contents of the sourcedir is moved, specifying something like --sourcedir=/ is very unsafe, so to prevent mistakes, the sourcedir must be a relative filename; it cannot begin with a `/'. -Xitem, --exclude=item Exclude files that contain item anywhere in their filename from being installed. file ... Lists files to move. The filenames listed should be relative to debian/tmp/. You can also list directory names, and the whole directory will be moved. It is an error to list files here unless you use -p, -i, or -a to tell dh_movefiles which subpackage to put them in. NOTES
Note that files are always moved out of debian/tmp by default (even if you have instructed debhelper to use a compatibility level higher than one, which does not otherwise use debian/tmp for anything at all). The idea behind this is that the package that is being built can be told to install into debian/tmp, and then files can be moved by dh_movefiles from that directory. Any files or directories that remain are ignored, and get deleted by dh_clean later. SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Joey Hess <joeyh@debian.org> 11.1.6ubuntu2 2018-05-10 DH_MOVEFILES(1)