Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
swap device doesn't activate on startup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
den1jay
n00b
n00b


Joined: 01 Aug 2004
Posts: 11
Location: Australia

PostPosted: Mon Aug 02, 2004 3:08 am    Post subject: swap device doesn't activate on startup Reply with quote

Hi ! I just installed Gentoo couple of days back and today when playing with it found that the swap device doesn't get activated at startup or boot ... I have to manually activate it by 2 commands in bash shell

"mkswap /dev/hda2
swapon /dev/hda2"

i am sick of doing this everytime i boot my linux box. I am using Sony Vaio PCG-FXA10 with 30 gig harddisk, 256 mb Ram and 512 swap device.
Also, i am unable to mount my boot device /dev/hda1so can't copy the new kernel image i compiled to the boot device.

During install i created a /mnt/gentoo/boot which is i think /boot now because Gentoo's / is /mnt/gentoo ... anyways, i am really confused here ...



# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs> <mountpoint> <type> <opts> <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 noauto,noatime 1 1
/dev/ROOT / xfs noatime 0 0
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0

# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults 0 0


If my system picks up my root partition from /etc/fstab file then i think "fstab" is written correct ... any suggestions what shall i do ...
Is it a bug in gentoo ???

Another thing i found was If my system stays turned on for like some 2 days then it gets very slow, my RAM just gets shit, though i don't run any program at all. I run KDE ... and when i reboot my laptop it just doesn't reboot, so i have to manually take out the power cable and battery to restart it.

Is this a bug with Gentoo or KDE or is my laptop **cked ???

Please Help me ... Thanks in advance.

Regards, Jay.
Back to top
View user's profile Send private message
arrruken
n00b
n00b


Joined: 28 Feb 2004
Posts: 48

PostPosted: Mon Aug 02, 2004 3:15 am    Post subject: Reply with quote

Well I hope what you posted wasnt your fstab...
If it is, you didnt change anything, where it says "/dev/BOOT" you need to manually edit it to say "/dev/hda1" etc etc. Youll need to do that for /dev/ROOT which I assume will be "/dev/hda2" or "/dev/hda3" depending on which one is your swap partition.
If you did copy the your kernel to /boot and configured lilo/grub right, your system will still boot despite the fact that you have no filesystems mounted, though it should give you a good amount of errors.
Back to top
View user's profile Send private message
den1jay
n00b
n00b


Joined: 01 Aug 2004
Posts: 11
Location: Australia

PostPosted: Mon Aug 02, 2004 3:39 am    Post subject: Reply with quote

arrruken wrote:
Well I hope what you posted wasnt your fstab...
If it is, you didnt change anything, where it says "/dev/BOOT" you need to manually edit it to say "/dev/hda1" etc etc. Youll need to do that for /dev/ROOT which I assume will be "/dev/hda2" or "/dev/hda3" depending on which one is your swap partition.


oooops !!! I needed to change my /etc/fstab ... hmmm .... thanks mate

arruken wrote:
If you did copy the your kernel to /boot and configured lilo/grub right, your system will still boot despite the fact that you have no filesystems mounted, though it should give you a good amount of errors."


I'll change my /etc/fstab and then copy kernel image so that i won't get any errors.

Thanks for real help.

Regards,
Jay.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum