Re: passing swap partition parameter to kernel on boot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
dexter2 wrote:
> Hi,
> do somebody know, how can i tell kernell on boot to use swap
> partition /dev/hda2 ?
> I'm tring to run GNU/Debian on PC (Pentium 100MHz, RAM 8MB, HD 1GB).
> I'have removed harddisk, and cross installed system on it. I've compiled
> kernel 2.6.11.6 and put bzImage on /boot partition. I've installed GRUB
> on floppy (only stage1 and stage2). I've succesfully booted bzImage, but
> problem starts on INIT booting. It doesn't use swap, run out of memory
> and starts starting and killing processes in a loop.
> I use folloving commands in Grub:
> ----
> root (hd0,0)
> kernel /bzImage root=/dev/hda3 ro
> boot
> ---
> I apreciate any advice.
> Thanks
> Dexter
You need to create a swap partition first.
Once done you can add that to /etc/fstab and it will be used automatically.
For grub argument, I don't know but maybe swap=/dev/hdxx might work.
rrs
- --
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
Gnupg Key ID: 04F130BC
"Stealing logic from one person is plagiarism, stealing from many is
research."
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFCa4zQ4Rhi6gTxMLwRAip7AKChScv3UizG3ZvDea4D3kD1oDxwlgCdEVyV
ivXtP2XNakimUe+8rC5ryUo=
=4FM4
-----END PGP SIGNATURE-----
Reply to: