Re: swap byte size?!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ok - nobody..

so here is what i think and please correct me if I'm wrong:

bs=1024 - this would be the size of each block in bytes
count=2097152  the number if 1024 byte sized blocks in 2 gigs

1 gig is 1,073,741,824 bytes. divided by 1024 bytes/block i get 1048576
blocks - for 1 gig. so for 2 gigs it'll be 2097152 blocks.

does this logic make sense?

thanks...



> hi all...  this is probably a stupid question but anyway..
>
> i want to add a swap file to my system. following the rule of 2 to 1 the
> file would need to be 2 gigs because the ram is a gig. but using the dd
> command what do i put for bs and count?
> i was looking around on google but couldn't exactly find it..
>
> thanks a lot...
>
>
>
> --
> Software is like sex: It's better when it's free. (Linus Torvalds)
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>


--
Software is like sex: It's better when it's free. (Linus Torvalds)


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux