|

楼主 |
发表于 2004-1-3 10:53:27
|
显示全部楼层
这个帖子回答了我的第一个问题,为了像我一样的初学者能
找到答案,所以把它贴过来。
问题:
/dev/hda2
unable to find swap-space signature
swapon: /dev/hda2: invalid argument
解决:
:-)没有格式化交换分区。用mkswap格式化、初始化交换分区。
Well, it worked so far...just needs a kernel now. woohoo! It actually wasn't
even that painful... ~40 hrs for stage 1&2 to compile isnt bad considering
the machine its on. I just hope it doesnt take 567 tries to get the kernel
in. Back to work, thanx again.
On Thursday 20 November 2003 22:55, Ray wrote:
> seems you missed
> mkswap -c /dev/hda2
> before mounting your swap...
> See more: man mkswap
>
> mkswap [-c] [-vN] [-f] [-p PSZ] device [size]
> .........
> .........
>
> Ray
>
> Nick W wrote:
> >Ok, so in an old thread someone mentioned my out of memory problem was
> > because I wasnt enabling swap. Ive been working on a boot disk [its an
> > old machine no cd-boot] that allows me to do this. After many tries Im so
> > very close but its being stupid. Heres the output from various
> > commands...
> >
> >[EMAIL PROTECTED] /dev/hda2
> >unable to find swap-space signature
> >swapon: /dev/hda2: invalid argument
> >//thats odd...so I take a longshot
> >
> >//dont know if this is even feasable
> >[EMAIL PROTECTED] -t swap swap /dev/hda2
> >mount: unable to mount /dev/hda2: no such device
> >//interesting, so now I want to find where hda2 dissappeared to
> >//by the way swap is listed in fstab and is correct.
> >//but is not working on boot obviously
> >
> >[EMAIL PROTECTED] -l /dev/hda2
> >brw-r----- 1 root root 3, 2 Nov 20 2003 /dev/hda2
> >
> >[EMAIL PROTECTED]
> >/dev/ram0 on / type ext2 (rw)
> >proc on /proc type proc (rw)
> >/dev/hda1 on /mnt/gen type ext2 (rw)
> >//note it sees hda1
> >
> >[EMAIL PROTECTED] hda
> >//then I press p to list the partition table
> >
> >Disk /dev/hda: 255 heads, 63 sectors, 527 cylinders
> >Units=cylinders of 16065 * 512 bytes
> >
> >Device Boot Begin Start End Blocks ID System
> >/dev/hda1 1 1 447 3590496 83 Linux Native
> >/dev/hda2 448 448 527 642600 82 Linux Swap
> >
> >so as it stands, Im clueless...is there a mkswapfs command?
> >
> >thanks, |
|