In my /etc/rc.boot script, I find this line: swapon -a 2>%1 | sed -e '/busy/d'
Is this the line that is mounting my swap partition? Do I need this line in the /etc/fstab? /dev/hda2 none swap sw 0 0 for the rc.boot script to work? Because if I don't have this line, you say my swap partition won't be activated? Dzuy Nguyen ----- Original Message ----- From: Ethan Benson <[EMAIL PROTECTED]> To: Dzuy M. Nguyen <[EMAIL PROTECTED]> Cc: <debian-user@lists.debian.org> Sent: Wednesday, March 22, 2000 6:56 AM Subject: Re: Mounting the Swap partition > On Wed, Mar 22, 2000 at 06:46:41AM -0800, Dzuy M. Nguyen wrote: > > I recently checked my '/etc/fstab' and found that my swap drive does not mount > > at boot. When I check with 'df' I do not see it on the printout. > > swap does not show up in df listings > > > I was wondering if I should ad this command in the '/etc/fstab': > > > > /dev/hda2 none swap sw > > that does need to be in fstab for swap to be activated, but swap > partitions are not `mounted' you also need to add a 0 0 to the end of > that line like this: > > /dev/hda2 none swap sw 0 0 > > > Do you need to mount the swap partition? > > not like a filesystem no, but at boot swapon -a is run, which looks in > /etc/fstab to see what swap partitions you have that should be > activated, if none are found then swap is not activated and your swap > partition is unused. > > you will not see swap anywhere in the filesystem however, and it is > not shown in mount or df listings. it is however shown in `free' and `top' > > > -- > > Dzuy M. Nguyen > > > > > > -- > > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > > > > -- > Ethan Benson > http://www.alaska.net/~erbenson/ > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >