Re: How to create a single 4GB large ramdisk?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 06/18/2014 06:52 AM, Clemens Eisserer wrote:
> >I need a single ramdisk which is a real block device (unlike tmpfs),
> >so I found the ramdisk_size kernel boot parameter.
> >However, after invoking "MAKEDEV ram" I get hundreds of 16mb large
> >ramdisks, instead of a single 4GB large:

Following up to a reply (sorry, missed original message), but I'm not
sure that's possible.  IIRC the original ramdisk block device was kind
of screwy, and I don't think it'll support that much space.

One hack I could think of to get a 4G, in-memory, block device (untested
but should work I believe):

- mount a tmpfs a little larger (don't know how much overhead there is
  so 4100m is a guess):
  mkdir /srv/foo
  mount -t tmpfs -o size=4100m tmpfs /srv/foo
- create a 4G backing file:
  dd if=/dev/zero bs=1M count=4K of=/srv/foo/backing.img
- attach it to a loopback device:
  losetup -f --show /srv/foo/backing.img

-- 
Chris Adams <linux@xxxxxxxxxxx>
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux