LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2006, 01:22 AM   #1
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Rep: Reputation: 15
Error with gzip command while mounting the RAMdisk


Dear All,

i want to mount the RAMdisk and want to include my existing RAMdisk with some other files, though i am able to unmount it and to gunzip, and after extracting the file even i had add my aplication also, then after i have follow this procedure to mount the file

" dd if=/dev/zero of=/dev/ram bs=1k count=2048
mke2fs -vm0 /dev/ram 2048
mount -t ext2 /dev/ram /mnt/ramdisk
cp -av preparedfiles /mnt/ramdisk
umount /mnt/ramdisk
dd if=/dev/ram bs=1k count=2048 | gzip -v9 ramdisk . gz",

i had execute all the commands successfully except last one and it shows me error that ramdisk.gz, no such fiile or directory, can you please explain me what is the problem? or what i am doing wrong? please help me.

Thanks in Advance,
Nishant Desai
 
Old 09-12-2006, 10:57 AM   #2
BogusTrumper
Member
 
Registered: May 2006
Posts: 77

Rep: Reputation: 15
Try using this as the last line:

dd if=/dev/ram bs=1k count=2048 | gzip -vc9 > ramdisk.gz
 
Old 09-13-2006, 04:09 AM   #3
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by BogusTrumper
Try using this as the last line:

dd if=/dev/ram bs=1k count=2048 | gzip -vc9 > ramdisk.gz
Dear Sir,
Exactly, the thing i was missing was that arrow, actually i had try with that, but i have specified the wrong filenames and it leads to problems, then i have tried with

dd if=/dev/ram bs=1k count=2048 | gzip -v9 > /mnt/ramdisk.gz, where my file lies in the Linux and that works for me, thanks anyways for the wonderful support, an you please tell me what does the aroww suggests in the command? i could not get it from the sites.

Thanks,
Nishant
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get update error: "gzip: stdin: not in gzip format" haertig Debian 0 08-02-2006 05:21 PM
Mounting /var into a ramdisk Myrdos Debian 5 03-22-2005 12:49 PM
using gzip command with php suresheva31 Linux - General 1 12-09-2004 05:49 PM
Mounting /var on a RAMdisk gamu829 Linux - General 2 09-04-2002 06:54 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration