LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Insmod (https://www.linuxquestions.org/questions/linux-hardware-18/insmod-606516/)

hadyy 12-13-2007 07:20 AM

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.

unSpawn 12-13-2007 03:20 PM

Quote:

Originally Posted by hadyy (Post 2989339)
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"?

hadyy 12-14-2007 02:09 AM

Hi dear "unSpawn"
I dont know any thing about tmpfs and the Relevance of that with ramdisk
(would you mind to)Help me.
tanx

unSpawn 12-14-2007 02:41 AM

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.

hadyy 12-14-2007 06:20 AM

thank you very much
 
:) tanx and Yours Truly :)
tanx
tanx
tanx
tanx
tanx
tanx
tanx
tanx
tanx
tanx
&
&
&
regards
M.Heydari


All times are GMT -5. The time now is 03:24 AM.