LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 10-25-2022, 12:41 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
How to make a Ramdisk using the NetBSD power ?


Hello,

The linux way would be :

Code:
 mkdir /var/ramdisk ; mount -t tmpfs -osize=900M none /var/ramdisk  ; mount
Please how to achieve this in NetBSD ?

Regards
 
Old 10-25-2022, 04:10 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,489

Rep: Reputation: Disabled
https://wiki.netbsd.org/tutorials/ho..._netbsd_image/
 
Old 11-07-2022, 04:31 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
by the way... what about freebsd ???


The linux way would be :

Code:
 
 mkdir /var/ramdisk ; mount -t tmpfs -osize=900M none /var/ramdisk  ; mount
Please how to achieve this in FreeBSD ?
 
Old 11-07-2022, 04:32 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by fatmac View Post

could it be simpler?

Code:
# cd /usr/src
# ./build.sh -O ../obj -T ../tools -u tools
# cd /usr/src/etc/
# make MAKEDEV
# cd /usr/src/distrib/i386/ramdisks/ramdisk-big
# make TOOLDIR=/usr/tools
 
Old 11-07-2022, 04:33 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Maybe this?

mkdir /ramdisk ; /sbin/mdmfs -M -S -o async -s 500m md5 /ramdisk/ ; df -h | grep ramdisk
 
  


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
[SOLVED] mdadm raid 1 with SSD and Ramdisk: Force reading from Ramdisk only ratio Linux - Software 5 04-04-2014 03:35 PM
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
How do make NetBSD mailserver? tanell *BSD 1 05-24-2007 06:08 AM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
what do i have to do next to make a mini ISP? im using netbsd 1.6.1.. kublador *BSD 3 10-12-2003 02:22 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:57 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
Open Source Consulting | Domain Registration