LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Long boot time and freezes (https://www.linuxquestions.org/questions/linux-newbie-8/long-boot-time-and-freezes-359183/)

Saketh 09-01-2005 11:04 AM

Long boot time and freezes
 
When Fedora Core 3 is booting, it spends about 10 minutes on "Enabling Swap Space." Why is this, and how can I fix it? Am I missing a swap partition or something? Should I reinstall FC3 before it's too late, this time with a swap partition? I think I have one though. Here is my partition table anyway:
http://img374.imageshack.us/img374/7...ontable8bg.png
Also, my computer will always freeze up at relatively random times. However, this happens generally when I am running the FC up2date utility. Is there another way that I can update everything? I think my kernel and utilties are in need of updating. When it's booting, it says Enabling Swap Space [OK] for a long time. The OK appears right when Enabling Swap Space does. So I'd guess that the swap space is enabled quickly, but why is it hanging for so long?

When I say freeze, the mouse stops moving, and the screen becomes like a frozen picture.

I have 512 MB of RAM.

Here's my ps -e.

Quote:

PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 migration/1
5 ? 00:00:00 ksoftirqd/1
6 ? 00:00:00 events/0
7 ? 00:00:00 events/1
8 ? 00:00:00 khelper
9 ? 00:00:00 kacpid
30 ? 00:00:00 kblockd/0
31 ? 00:00:00 kblockd/1
41 ? 00:00:00 pdflush
32 ? 00:00:00 khubd
42 ? 00:00:00 pdflush
44 ? 00:00:00 aio/0
45 ? 00:00:00 aio/1
43 ? 00:00:00 kswapd0
118 ? 00:00:00 kseriod
199 ? 00:00:00 kmirrord/0
200 ? 00:00:00 kmirrord/1
209 ? 00:00:00 kjournald
1207 ? 00:00:00 udevd
1933 ? 00:00:00 khpsbpkt
1953 ? 00:00:00 knodemgrd_0
2229 ? 00:00:00 kjournald
2622 ? 00:00:00 syslogd
2626 ? 00:00:00 klogd
2637 ? 00:00:00 irqbalance
2648 ? 00:00:00 portmap
2668 ? 00:00:00 rpc.statd
2701 ? 00:00:00 rpc.idmapd
2771 ? 00:00:00 nifd
2802 ? 00:00:00 mDNSResponder
2814 ? 00:00:00 smartd
2824 ? 00:00:00 acpid
2836 ? 00:00:00 cupsd
2872 ? 00:00:00 sshd
2883 ? 00:00:00 xinetd
2904 ? 00:00:00 sendmail
2914 ? 00:00:00 sendmail
2966 ? 00:00:00 gpm
2996 ? 00:00:00 htt
2997 ? 00:00:00 htt_server
3009 ? 00:00:00 cannaserver
3021 ? 00:00:00 crond
3051 ? 00:00:00 xfs
3061 ? 00:00:00 anacron
3070 ? 00:00:00 atd
3089 ? 00:00:00 dbus-daemon-1
3102 ? 00:00:00 cups-config-dae
3113 ? 00:00:00 hald
3123 tty1 00:00:00 mingetty
3124 tty2 00:00:00 mingetty
3125 tty3 00:00:00 mingetty
3126 tty4 00:00:00 mingetty
3127 tty5 00:00:00 mingetty
3128 tty6 00:00:00 mingetty
3129 ? 00:00:00 gdm-binary
3382 ? 00:00:00 gdm-binary
3387 ? 00:00:05 X
3831 ? 00:00:00 gnome-session
3859 ? 00:00:00 ssh-agent
3886 ? 00:00:00 dbus-launch
3887 ? 00:00:00 dbus-daemon-1
3891 ? 00:00:01 gconfd-2
3894 ? 00:00:00 gnome-keyring-d
3896 ? 00:00:00 bonobo-activati
3898 ? 00:00:00 gnome-settings-
3904 ? 00:00:00 gam_server
3913 ? 00:00:00 xscreensaver
3937 ? 00:00:00 metacity
3941 ? 00:00:00 gnome-panel
3943 ? 00:00:00 nautilus
3945 ? 00:00:00 gnome-volume-ma
3949 ? 00:00:00 eggcups
3951 ? 00:00:00 pam-panel-icon
3953 ? 00:00:01 rhn-applet-gui
3954 ? 00:00:00 pam_timestamp_c
3958 ? 00:00:00 gnome-vfs-daemo
3965 ? 00:00:00 mapping-daemon
3968 ? 00:00:01 gnome-terminal
3970 ? 00:00:00 wnck-applet
3971 ? 00:00:00 gnome-pty-helpe
3972 pts/1 00:00:00 bash
3994 pts/1 00:00:00 ps
Thanks for your help!

Vampirite 09-01-2005 12:13 PM

Are you sure you've configured your swap properly? According to your partition map it says "Type 8E" Normally it should say "Linux Swap" It's easy with partition magic, just create a partition formatted as Linux Swap. Then apply your changes.

Next, you'll need to configure your /etc/fstab file, I can't remember off hand how to do that, open fstab in an editor and make sure the line for swap points to the newly created swap partition.

If you format the "Type 8E" partition as "Linux Swap", it should be /dev/hda5 I think.

Hope that works!

etruiii 09-01-2005 12:49 PM

I think I would have to agree with Vampirite.

Depending on your familiarity with the system (and how much you have invested into your current set-up) you may want to consider a fresh reinstall. I would only recommend this if you haven't invested a large amount of time and effort into what's aleady on your system.

Beyond that, manual configuration of fstab is probably the way to go. I only recommend that you be cautious of the waht and how of your changes to make sure it's done correctly.

Good luck...

Saketh 09-01-2005 08:24 PM

I spent a ton of time getting ndiswrapper and my WLAN to work, so I don't think I'll reinstall. I have PartitionMagic 8 - are you saying I should reformat /dev/hda5 into a Linux Swap? Or should I take a piece of my current Windows partition and use that instead?

Also, how would I determine the size of the swap? I was told that 512 MB of RAM is sufficient enough without a swap file/partition.

bosewicht 09-01-2005 09:00 PM

You should be able to use fdisk or cfdisk to format the swap partition(a reinstall isn't necessary). 512 should be enough for swap. I would also make a backup of fstab before you edit it. Do a search in here for fstab and look at how swap should be edited.

Saketh 09-01-2005 09:17 PM

I don't know how to use fdisk and cfdisk, so I guess I will just use PartitionMagic.

And would my fstab contain this line:


/dev/hda5 none swap sw 0 0

bosewicht 09-01-2005 09:20 PM

cfdisk is easy to use, but use whatever you are comfortable with. Regardless, backup fstab before you edit it. make a copy of it called fstab.backup or something

Saketh 09-01-2005 09:28 PM

Before I go ahead and start partitioning, I want to get something straight.
Which partition should I reformat into a Linux Swap type? Should I just carve out a new partition from existing space?

Vampirite 09-02-2005 06:35 AM

OK, Heres what to do:

- Open up partition magic, then delete the "Type 8E" Partition. (If you're not using it)

- Click on "Create new Partition" in the Partition Magic 8 side bar. Make it 512MB when going through the wizard.

- Apply changes.

- Reboot into linux, bring up a teminal window or something.

- Type this at the prompt:
Code:

cfdisk
- Now look at the partition table, the one at the bottom should be your swap partition. Note it down (/dev/?)

- Now go into a text editor, and open "/etc/fstab" Save it as "/etc/fstab.backup"

- Now go and open the original "/etc/fstab" add this line:
Code:

/dev/? none swap sw 0 0
Make sure you replace /dev/? with the one that you wrote down.

- Save it.

That should work, however I do no know how to configure swaps in fstab and I am just using your example that you provided.

If it does not work, navigate to /etc then delete fstab, and rename fstab.backup as fstab. This will revert back to your original configuration.

It would be helpful if you uploaded your /etc/fstab file contents.


All times are GMT -5. The time now is 07:47 PM.