LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-13-2007, 07:20 AM   #1
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Rep: Reputation: 15
Lightbulb Insmod


Hi there friends
I have a problem with this command: "insmod"
When I use it in this order for increasing the size of ramdisk in
linux(FC7 or FC8) the OS prints man page for me:
Help me please any say me how can I increase the size of ramdisk
without editing grub.conf or lilo.conf or compiling the kernel.

OR please explain this:
# insmod rd rd_size=32000

tanx a lot.
 
Old 12-13-2007, 03:20 PM   #2
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
insmod rd rd_size=32000
"install module" called "rd" with parameter setting ramdisk size to 32MB. BTW, isn't "rd" old? Why not use "tmpfs"?
 
Old 12-14-2007, 02:09 AM   #3
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Hi dear "unSpawn"
I dont know any thing about tmpfs and the Relevance of that with ramdisk
(would you mind to)Help me.
tanx
 
Old 12-14-2007, 02:41 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Add this line (for compatibility with other tools respect how tabs or spaces are used in fstab) "none /dev/shm tmpfs size=32m 0 0" to /etc/fstab, then 'mount -a' (lazy way), then check with 'mount' and you should have a ramdisk of 32MB. How does it work? Copy some files to it and make a tarball of it: 'cp -r /etc/rc.d /dev/shm; tar -vcjf /tmp/rcd.tar.bz2 && rm -rf /dev/shm/rc.d'. You see, it works just like a filesystem.
 
Old 12-14-2007, 06:20 AM   #5
hadyy
LQ Newbie
 
Registered: Dec 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Thumbs up thank you very much

tanx and Yours Truly
tanx
tanx
tanx
tanx
tanx
tanx
tanx
tanx
tanx
tanx
&
&
&
regards
M.Heydari
 
  


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
insmod pantera Programming 1 05-24-2005 11:40 AM
Help with insmod. I have a problem with insmod. RJARRRPCGP Linux - Newbie 5 08-24-2004 08:23 PM
insmod help rmosh Linux - Hardware 5 06-08-2004 06:35 PM
how to insmod? toastermaker Linux - Newbie 11 12-09-2003 09:07 PM
insmod tincat2 Linux - Software 12 07-07-2002 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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