LinuxQuestions.org
Help answer threads with 0 replies.
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, 01:41 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,495

Rep: Reputation: 234Reputation: 234Reputation: 234
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, 05:10 AM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan/Devuan based - with - OpenBSD - NetBSD - Fatdog64
Posts: 4,711

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

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
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, 05:32 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,495

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
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, 05:33 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,495

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

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


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 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 04:35 PM
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 04:08 PM
How do make NetBSD mailserver? tanell *BSD 1 05-24-2007 07:08 AM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 09: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 03:22 AM

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

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