[Linux] Re: Ram Disks

Peter Capazzi linux@flux.org
Tue, 15 Jan 2008 12:05:28 -0500


This is a multi-part message in MIME format.

------_=_NextPart_001_01C85798.D41D834C
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

>It might help to know what distribution you're running. The page you
posted
>appears to be about RedHat Linux 9 with a 2.4 kernel which is pretty
old
>(5-6 years?). The docs for Linux 2.6 though seem to indicate that the
>options are all the same. If you're not using grub for your boot
loader,
>you'll have to adjust the instructions for your particular installation
>(which is why I asked about the dist, someone here might be able to
help
>with other dists).

Thank you for your help. I'm running SLES 9.3 (kernel 2.6.5-7).
Ok... I've modified the boot loader and I see the change has taken
effect from dmesg.
=20
I get stuck here:
/home/pcapazzi # mkdir /mnt/rd
/home/pcapazzi # mount /dev/ram0 /mnt/rd
mount: wrong fs type, bad option, bad superblock on /dev/ram0,
       or too many mounted file systems

There are only a few mounts:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/ida/c0d0p2       10227392   5418432   4808960  53% /
tmpfs                  1037296        12   1037284   1% /dev/shm
/dev/ida/c0d0p3       10183364     32840  10150524   1% /backupsys
/dev/ida/c0d0p4        5185500     32840   5152660   1% /home2

=20
The above is also after I ran the following (per the link I gave
earlier):
=20
/home/pcapazzi # mke2fs -m 0 /dev/ram0
mke2fs 1.38 (30-Jun-2005)
Filesystem label=3D
OS type: Linux
Block size=3D4096 (log=3D2)
Fragment size=3D4096 (log=3D2)
125184 inodes, 250000 blocks
0 blocks (0.00%) reserved for the super user
First data block=3D0
8 block groups
32768 blocks per group, 32768 fragments per group
15648 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376
=20
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
=20
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


------_=_NextPart_001_01C85798.D41D834C
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.3790.2920" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D183015016-15012008>&gt;</SPAN>It might help to know =
what=20
distribution you're running. The page you posted<BR><SPAN=20
class=3D183015016-15012008>&gt;</SPAN>appears to be about RedHat Linux 9 =
with a=20
2.4 kernel which is pretty old<BR><SPAN =
class=3D183015016-15012008>&gt;</SPAN>(5-6=20
years?). The docs for Linux 2.6 though seem to indicate that =
the<BR><SPAN=20
class=3D183015016-15012008>&gt;</SPAN>options are all the same. If =
you're not=20
using grub for your boot loader,<BR><SPAN=20
class=3D183015016-15012008>&gt;</SPAN>you'll have to adjust the =
instructions for=20
your particular installation<BR><SPAN =
class=3D183015016-15012008>&gt;</SPAN>(which=20
is why I asked about the dist, someone here might be able to =
help<BR><SPAN=20
class=3D183015016-15012008>&gt;</SPAN>with other dists).<BR></DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial size=3D2>Thank =
you for your=20
help. I'm running SLES 9.3 (kernel 2.6.5-7).</FONT></SPAN></DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial size=3D2>Ok... =
I've modified=20
the boot loader and I see the change has taken effect from=20
dmesg.</FONT></SPAN></DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial =
size=3D2>I&nbsp;get stuck=20
here:</FONT></SPAN></DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial =
size=3D2>/home/pcapazzi #=20
mkdir /mnt/rd<BR>/home/pcapazzi # mount /dev/ram0 /mnt/rd<BR>mount: =
wrong fs=20
type, bad option, bad superblock on=20
/dev/ram0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; or too many mounted =
file=20
systems<BR></FONT></SPAN></DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial size=3D2>There =
are only a few=20
mounts:</FONT></SPAN></DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial=20
size=3D2>Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
1K-blocks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Used Available Use% Mounted=20
on<BR>/dev/ida/c0d0p2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
10227392&nbsp;&nbsp;=20
5418432&nbsp;&nbsp; 4808960&nbsp; 53%=20
/<BR>tmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
1037296&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12&nbsp;&nbsp;=20
1037284&nbsp;&nbsp; 1%=20
/dev/shm<BR>/dev/ida/c0d0p3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
10183364&nbsp;&nbsp;&nbsp;&nbsp; 32840&nbsp; 10150524&nbsp;&nbsp; 1%=20
/backupsys<BR>/dev/ida/c0d0p4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
5185500&nbsp;&nbsp;&nbsp;&nbsp; 32840&nbsp;&nbsp; 5152660&nbsp;&nbsp; 1% =

/home2<BR></DIV></FONT></SPAN>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial size=3D2>The =
above is also=20
after I ran the following (per the link I gave =
earlier):</FONT></SPAN></DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial size=3D2><SPAN=20
class=3D183015016-15012008><FONT face=3DArial=20
size=3D2></FONT></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial size=3D2><SPAN=20
class=3D183015016-15012008><FONT face=3DArial size=3D2>/home/pcapazzi # =
mke2fs -m 0=20
/dev/ram0<BR>mke2fs 1.38 (30-Jun-2005)<BR>Filesystem label=3D<BR>OS =
type:=20
Linux<BR>Block size=3D4096 (log=3D2)<BR>Fragment size=3D4096 =
(log=3D2)<BR>125184 inodes,=20
250000 blocks<BR>0 blocks (0.00%) reserved for the super user<BR>First =
data=20
block=3D0<BR>8 block groups<BR>32768 blocks per group, 32768 fragments =
per=20
group<BR>15648 inodes per group<BR>Superblock backups stored on=20
blocks:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32768, 98304, =
163840,=20
229376</FONT></SPAN></DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial =
size=3D2>Writing inode=20
tables: done<BR>Writing superblocks and filesystem accounting =
information:=20
done</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D183015016-15012008><FONT face=3DArial size=3D2>This =
filesystem will=20
be automatically checked every 32 mounts or<BR>180 days, whichever comes =

first.&nbsp; Use tune2fs -c or -i to=20
override.<BR></FONT></SPAN></DIV></DIV></FONT></SPAN></BODY></HTML>

------_=_NextPart_001_01C85798.D41D834C--