Re:Don't use 1234 as your password
by jrockway on Sunday November 17, 2013 @09:10PM
(#6752112)
Heh, I also destroyed my Linux system at about that age. "swapon /dev/hda". Oops.
[ Parent
| on HN ]
Wouldn't you need to initialize the partition with 'mkswap'?
Apparently not. Try it :)
sorry for the old post, but I did try it and it refuses to activate swap on a non-swap enabled device. Now I assume that you had done that a while back (judging from the hda device) so there are probably now some extra safety checks (good thing too!) :-D well I'm sorry for your loss long ago :-)
[root@localhost ~]# swapon /dev/sdb
swapon: /dev/sdb: read swap header failed: Invalid argument
*edited the formating