<br><br><div class="gmail_quote">On Tue, Jul 6, 2010 at 10:01 AM,  <span dir="ltr"><<a href="mailto:m.roth@5-cent.us">m.roth@5-cent.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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>