LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2006, 06:23 AM   #1
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Rep: Reputation: 15
Error in mount command


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, 06:30 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I think you want you final statement to be:

Code:
dd if=/dev/ram bs=1k count=2048 | gzip -v9 > ramdisk.gz
It was (I believe) interpreting your file name as the file that it should zip. (I am trusting that the rest of your commands make sense. I have never done things that way before.)
 
Old 09-13-2006, 05:10 AM   #3
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by blackhole54
I think you want you final statement to be:

Code:
dd if=/dev/ram bs=1k count=2048 | gzip -v9 > ramdisk.gz
It was (I believe) interpreting your file name as the file that it should zip. (I am trusting that the rest of your commands make sense. I have never done things that way before.)
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.

Thanks,
Nishant
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount.cifs - mount error 20 = Not a directory da_kidd_er Linux - Networking 10 10-16-2008 01:55 PM
util-linux-2.12r error on 'make -C mount mount umount' james penguin Linux From Scratch 2 08-29-2006 12:55 AM
mount error: mount point /home/me/x does not exist whil Fedora 3 05-24-2006 11:39 AM
command error after mount ukrainet Linux - Newbie 1 11-25-2004 02:59 AM
HELP! Error from mount: drive is write-protected... won't mount writeable. system Linux - General 2 12-27-2001 10:08 PM


All times are GMT -5. The time now is 06:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration