<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
In the past I only heard that /proc and /sys are "RAM directories", now
I get /dev as well. thank you.<br>
<pre class="moz-signature" cols="72">Tang Jianwei
</pre>
<br>
On 07/06/2010 10:14 PM, John Kennedy wrote:
<blockquote
 cite="mid:AANLkTilGEe3sADuuAYWMCgrf0NoHVAUkLImZ78_BIOWM@mail.gmail.com"
 type="cite"><br>
  <br>
  <div class="gmail_quote">On Tue, Jul 6, 2010 at 10:01 AM, <span
 dir="ltr"><<a moz-do-not-send="true" href="mailto:m.roth@5-cent.us">m.roth@5-cent.us</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div class="im">Jerry McAllister wrote:<br>
> On Tue, Jul 06, 2010 at 06:41:06PM +0800, Tang Jianwei wrote:<br>
><br>
>> I tried to create some swap files in /dev directory for my
desktop.<br>
>> the dd and mkswap were ok. but when I try to swapon it, i get
this:<br>
>><br>
>> # swapon /dev/myswap<br>
>> swapon: /dev/myswap: Invalid argument<br>
>><br>
>> but when I mv the file to some other directory like /mnt or /,
the<br>
>> swapon works.<br>
>><br>
>> could sb. tell me why?<br>
    <br>
    </div>
Well, /dev is *not* a good place for anything but device files.<br>
    <div class="im">><br>
> /dev is not a real directory for data files.<br>
    </div>
<snip><br>
Um, er, what do you mean about it not being a "real" directory?<br>
    <br>
         mark<br>
    <font class="Apple-style-span" color="#888888"><br>
    </font></blockquote>
  <div><br>
  </div>
  <div>I would say he means "real" as exists on a hard drive like /home
of /var as opposed to "virtual" as exists in RAM like /proc.</div>
  <div>John</div>
  </div>
-- <br>
John Kennedy<br>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
  </pre>
</blockquote>
</body>
</html>