On Thu, 2004-08-12 at 19:51, Evan N. McNabb wrote:
> > I just installed Debian/Knoppix (gotta love that hardware detection and 10
> > minute installation!). The installer informed me that I didn't need a swap
> > partition even though I had created on previously with parted. Anyhow, I created
> > /dev/hda5 and then tried the swapon command. No dice! Anyhow, I'm wondering if I
> > need to format /dev/hda5 with dd. Also, how the heck can I get it initialized at
> > boot? Thanks!
> 
> This should work:
> 
> dd if=/dev/zero of=/dev/hda5 bs=1024 count=????whatever_it_needs_to_be????

dd if=/dev/zero of=/dev/hda5

works just fine.  No need to specifiy count or block size.  The device
is a fixed length and dd won't go beyond the end of it.

However I don't think swap partitions need to be zeroed at all to work. 
Just run mkswap after partitioning.

> 
> mkswap /dev/hda5
> 
> swapon /dev/hda5
> 
> -Evan
> 
> /********************************************************************\
>        Evan McNabb: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
>                       Instructor, Guru Labs
>                    http://evan.mcnabbs.org
>  GnuPG Fingerprint: 53B5 EDCA 5543 A27A E0E1 2B2F 6776 8F9C 6A35 6EA5
> \********************************************************************/
> 
> ______________________________________________________________________
> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
-- 
Michael Torrie <[EMAIL PROTECTED]>

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to