Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: swap gone?coul, swap not found on boot< Next Oldest | Next Newest >
antonino Offline





Group: Members
Posts: 48
Joined: Sep. 2006
Posted: Nov. 10 2006,16:34 QUOTE

Well, /dev/hda1 was and still is a linux swap partition (at least according to cfdisk), so I am still amazed by this unknown 'behaviour'.
I put
/dev/hda1   swap   swap   defaults   0 0
in /etc/fstab
but that didn't work: Swap Ussed: 0/0 -- 0%
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 10 2006,18:51 QUOTE

I think you need to use mkswap to format it first... did you already do that though?
Back to top
Profile PM 
Ramik Offline





Group: Members
Posts: 53
Joined: Nov. 2006
Posted: Nov. 10 2006,19:42 QUOTE

A swat partition is faster and requires formating first with mkswap,
It is loaded with the same binary "swapon" bu instead of pointing to the file, you point to the partition.

Swap Partitions cant be mounted, it is considerably faster then a swap file because the kernel access the data directly rather then first checking file location in the partition table plus fragmentations are rarer since the swap partition table is quite more flexible...

If you have a choice, go with swap partition, an their is an added benefit is if the swap partition in on another HD.
Back to top
Profile PM 
antonino Offline





Group: Members
Posts: 48
Joined: Sep. 2006
Posted: Nov. 11 2006,15:01 QUOTE

Thanks to all contributors!

I put:
/dev/hda1   swap   swap   defaults   0 0
in /etc/fstab
and mkswap/dev/hda1
in /etc/init.d/checkroot.sh. between the lines containing
echo "Activating swap..."
and
swapon -a 2> /dev/null
Back to top
Profile PM WEB 
Ramik Offline





Group: Members
Posts: 53
Joined: Nov. 2006
Posted: Nov. 11 2006,20:12 QUOTE

Sounds right, Good luck !
Back to top
Profile PM 
13 replies since Nov. 10 2006,10:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: swap gone?coul

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code