Per your request chrism01
I am only able to run this script as root but that is okay is there any way to stream line this script or make it better please make changes as needed?
<---Code Begin--->
#!/bin/bash
##########################################################################
# Title : ramdisk.sh - Creates a Hard drive in system memory (RAM)
# Author : Jamtech
Janus@cyberspace.org
# Date : 2007-10-08
# Requires : Root account needed to run this script
# Category : Open
# Version. : Ramdisk 1.0 10/08/2007
##########################################################################
# Description:
#
# Permission is granted to reproduce and distribute this program
# with the following conditions:
# 1) This copyright notice and the author identification below
# must be left intact in the program and in any copies.
# 2) Any modifications to the program must be clearly identified
# in the source file.
#
# Modifications:
#
##########################################################################
# ==> Comments added by author ==>
#
# Lists Ram devices and to see what the ramdisks are
ls -l /dev/ram*
dmesg | grep RAMDISK
# Format the ramdisk
mke2fs -m 0 /dev/ram0
# Create a mount point and mount the ramdisk I named it skunk but you can choose to name the directory what you want.
mkdir /mnt/skunk
mount /dev/ram0 /mnt/skunk
# Verify the new ramdisk mount
mount | grep ram0
df -h | grep ram0
# Verfiy the ramdisk with full details
tune2fs -l /dev/ram0
# Give user "skunk" rights to read and write to the ramdisk, You can use any user that has an account on your system. just change the user name
chown Skunk:root /mnt/skunk
chmod 0770 /mnt/skunk
# Clears the screen
clear
# Change into the Mount Directory and list files and folders
cd /mnt/
ls -s
<---Code End--->