On 9/22/07, <b class="gmail_sendername">Dan Ritter</b> <<a href="mailto:dsr-myth@tao.merseine.nu">dsr-myth@tao.merseine.nu</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, Sep 22, 2007 at 01:37:39AM -0400, Michael T. Dean wrote:<br><br>(dsr said:)<br>> > sudo mkswap /dev/hda2<br>> > sudo swapon /dev/hda2<br>> ><br>> > (in future, your fstab line should work.)
<br>><br>> Almost...<br>><br>> mkswap -L SWAP /dev/hda2<br>><br>> Or, whatever the label (in /etc/fstab) may be.<br><br>Ah, but he already did:<br><br>> >> label. I quit qtparted and edited /etc/fstab to comment out the existing
<br>> >> swap line and create a copy that references the drive directly as /dev/hda2<br><br>So it's currently immaterial. But you're right, that would let<br>him switch back to mount-by-label later on.<br>
<br>-dsr-<br></blockquote></div>Thanks everyone. Got it working. It was weird, though.<br><br>The first time I ran mkswap I just provided the device, /dev/hda2 and it didn't run very long but it seemed to work with swapon -a ... until I rebooted and I was back to no swap.
<br><br>Somewhere along the way with my struggle I ended up using the full-blown command "mkswap -c -L SWAP-hda2 -v1 /dev/hda2" and it took so long I started to think the system had gone south on me. Once done, I went ahead and reverted my /etc/fstab back to the line I had commented out and it has held up through several reboots since.
<br><br>Craig.<br>