LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-15-2007, 04:35 AM   #1
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Rep: Reputation: 15
Lightbulb location of a text file


hi there
I could not find this file in this address:
/usr/src/linux/Documentation/ramdisk.txt
/usr/src/linux is empty folder in my OS(FC7 or FC8)!
guide me to find it.
tanx
 
Old 12-15-2007, 04:42 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can search for files by doing
Code:
locate ramdisk.txt
or
Code:
#find / -name ramdisk.txt
The file is probably in a place like /usr/src/kernels.
 
Old 12-15-2007, 05:09 AM   #3
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
hello
thank you for answer.

[root@localhost~]#locate ramdisk.txt
locate: can not open open '/var/lib/mlocate/mlocate.db' :No such file or directory.
? ? ?
 
Old 12-15-2007, 05:16 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Yoy may need to run updatedb before running locate.
 
Old 12-15-2007, 05:28 AM   #5
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
hello again
I run that command(updatedb)
then I run locate ramdisk.txt
OS replied me no answer!
 
Old 12-15-2007, 05:36 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Did you try find?

Maybe "ramdisk.txt" is not on your machine......Do you have reason to think it should be? My system (PCLOS 2007) has no such file.
 
Old 12-15-2007, 05:43 AM   #7
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Yes I try find.
There is no file with this name in my machine.
but if you can upload it or give me an address of it in the web please take it here.
tanx
 
Old 12-15-2007, 06:42 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by hadyy View Post
Yes I try find.
There is no file with this name in my machine.
but if you can upload it or give me an address of it in the web please take it here.
tanx
I don't know what you are looking for. A file named "ramdisk.txt" could be just about anything. You will need to tell us more about what you are trying to do.

I did a Google search and there are lots of hits using "ramdisk.txt", so at least we know such a thing exists.
 
Old 12-15-2007, 06:53 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by hadyy View Post
/usr/src/linux is empty folder in my OS(FC7 or FC8)!
Don't you need to install a kernel source package first?
 
Old 12-15-2007, 07:01 AM   #10
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
OK
I want to know what are the contains of /usr/src/linux/Documentation/ramdisk.txt
 
Old 12-15-2007, 07:08 AM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
1) Are you sure you want "ramdisk.txt?" The only "ramdisk" to which I could find a reference was the Windows command for creating a RAM pseudo-disk.

If you are trying to create and use a RAM filesystem, look at (for example) ramfuse or just do a mount ramfs /mnt/ramfs -t ramfs to create one. (See man mount for details. Note that there are no options available for ramfs, so only root can use it.)

Here's a simple ramfs session:
Code:
$ sudo mount -t ramfs /dev/ramdisk /mnt/ramfs
$ ls /mnt/ramfs
$ cp FF_Profiles.xml /mnt/ramfs
cp: cannot create regular file `/mnt/ramfs/FF_Profiles.xml': Permission denied
$ sudo cp FF_Profiles.xml /mnt/ramfs
$ ls /mnt/ramfs
FF_Profiles.xml
$ sudo umount /mnt/ramfs
2) As for the "/usr/src/linux" being empty, perhaps you need to install the source code before you can use it.
 
Old 12-15-2007, 08:10 AM   #12
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
tanx
now I want to know "what is the difference of ramfs and /dev/tmpfs and ramdisk(/dev/ram*)"?

Last edited by hadyy; 12-15-2007 at 08:16 AM.
 
Old 12-15-2007, 09:02 AM   #13
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, it you're using Fedora 8, them there is no /dev/tmpfs and /dev/ramdisk is just a symlink to /dev/ram0. So the short answer is "There's no difference between /dev/ram0 and /dev/ramdisk, and /dev/tmpfs is whatever you've defined it to be, either in udev or by hand."

Perhaps you'd get more meaningful answers if you completely described the problem you're trying to solve.
 
Old 12-19-2007, 01:34 PM   #14
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
thank you very much.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Steps needed to convert multiple text files into one master text file jamtech Programming 5 10-07-2007 11:24 PM
in Pascal: how to exec a program, discard text output or send to text file Valkyrie_of_valhalla Programming 6 05-02-2007 09:50 AM
how to change some text of a certain line of a text file with bash and *nix scripting alred Programming 6 07-10-2006 11:55 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
How to find and change a specific text in a text file by using shell script Bassam Programming 1 07-18-2005 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:20 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