View previous topic :: View next topic |
Author |
Message |
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Jul 28, 2004 6:29 pm Post subject: Can a developer help me? Problem with the init script |
|
|
I am sorry for insisting on this, but it is pretty serious.
I have problems with the init scripts. When the system reboots/shutdowns it does not umount the filesystems. What I see is the following:
Deactivating swap [ok]
System is halted
Umounted filesystems
and then the system freezes and I have to press either the power button or alt+Ctrl+del.
So, I need all the assistans I can get from an expert, someone who know how Gentoo works and can guide me to the source of the problem
Thank you
Last edited by MasterX on Wed Jul 28, 2004 11:34 pm; edited 1 time in total |
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Wed Jul 28, 2004 6:47 pm Post subject: |
|
|
Well, a title like this:
'Can a developer help me?'
Is about as useless as it gets...
Now if you still want help, from an experienced user (not developer), please paste your /etc/fstab, uname -a, what version of gentoo you're using 2004.1 or 2004.2...
Try booting from the LiveCD then mounting and unmounting the filesystems, see if anything goes wrong... maybe try a forced fsck when you're at it...
also before you shutdown (with problems), give me a 'ps aux' list...
Regards,
Pascal de Bruijn
PS: In the mean time, you can reduce data-loss by doing a triple 'sync' before issueing the 'halt' or 'reboot' command. |
|
Back to top |
|
|
sireyessire Advocate
Joined: 20 Mar 2003 Posts: 2991 Location: back in Paris, France
|
Posted: Wed Jul 28, 2004 6:56 pm Post subject: Re: Can a developer help me? |
|
|
MasterX wrote: | I am sorry for insisting on this, but it is pretty serious.
I have problems with the init scripts. When the system reboots/shutdowns it does not umount the filesystems. What I see is the following:
Deactivating swap [ok]
System is halted
Umounted filesystems
and then the system freezes and I have to press either the power button or alt+Ctrl+del.
So, I need all the assistans I can get from an expert, someone who know how Gentoo works and can guide me to the source of the problem
Thank you |
i have the same prolem than you on my laptop (dell Inspiron8600) since i tried to update the kernel to a newer version than 2.6.6-rc3-love4. i tried vanilla-2.6, mm, ck but none have succeded in "remounting remaining filesystem".
I thought it was a acpi issue but if i disable it, it still hangs up.
however, if i press return when it freezes, a prompt is available and dmesg says that
my root partition is stopped
system halted
but after reboot, on boot i see a warning message saying my root partition wasn't CLEANLY unmounted.
NB: it is reiserfs (v3.6)
On the other hand, on desktop, love-sources rocks like ninja (2.6.8-rc2-love1) but not on the laptop
any clue? _________________ I never think of the future. It comes soon enough.
Albert Einstein
Try simpler first
Shockley |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Jul 28, 2004 7:12 pm Post subject: |
|
|
pmjdebruijn wrote: | Well, a title like this:
'Can a developer help me?'
Is about as useless as it gets...
Now if you still want help, from an experienced user (not developer), please paste your /etc/fstab, uname -a, what version of gentoo you're using 2004.1 or 2004.2...
Try booting from the LiveCD then mounting and unmounting the filesystems, see if anything goes wrong... maybe try a forced fsck when you're at it...
also before you shutdown (with problems), give me a 'ps aux' list...
Regards,
Pascal de Bruijn
PS: In the mean time, you can reduce data-loss by doing a triple 'sync' before issueing the 'halt' or 'reboot' command. |
Most of your questions are asked here https://forums.gentoo.org/viewtopic.php?t=202376
In the fstab I have the following:
Code: |
/dev/hdb1 /boot ext3 noauto,noatime 1 1
/dev/hdb3 / ext3 noatime 1 2
/dev/hdb2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
/dev/cdroms/cdrom1 /mnt/cdrom1 iso9660 noauto,ro,user 0 0
#/dev/sr0 /mnt/cdrom1 iso9660 noauto,ro,user 0 0
/dev/hdb5 /usr ext3 defaults 1 2
/dev/hdb6 /var ext3 defaults 1 2
/dev/hdb7 /tmp ext3 defaults 1 2
/dev/hda10 /home ext3 defaults 1 2
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
|
Code: |
uname -a
Linux 2.6.7 #1 Mon Jul 26 16:47:02 CDT 2004 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
|
Code: |
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1316 476 ? S 09:40 0:01 init [3]
root 2 0.0 0.0 0 0 ? SWN 09:40 0:00 [ksoftirqd/0]
root 3 0.0 0.0 0 0 ? SW< 09:40 0:00 [events/0]
root 4 0.0 0.0 0 0 ? SW< 09:40 0:00 [khelper]
root 5 0.0 0.0 0 0 ? SW< 09:40 0:00 [kacpid]
root 25 0.0 0.0 0 0 ? SW< 09:40 0:00 [kblockd/0]
root 26 0.0 0.0 0 0 ? SW 09:40 0:00 [khubd]
root 39 0.0 0.0 0 0 ? SW 09:40 0:00 [pdflush]
root 40 0.0 0.0 0 0 ? SW 09:40 0:00 [pdflush]
root 42 0.0 0.0 0 0 ? SW< 09:40 0:00 [aio/0]
root 41 0.0 0.0 0 0 ? SW 09:40 0:00 [kswapd0]
root 185 0.0 0.0 0 0 ? SW 09:40 0:00 [kseriod]
root 188 0.0 0.0 0 0 ? SW 09:40 0:00 [kjournald]
root 324 0.0 0.1 1672 960 ? S 09:40 0:00 /sbin/devfsd /dev
root 4645 0.0 0.0 0 0 ? SW 09:40 0:00 [kjournald]
root 4646 0.0 0.0 0 0 ? SW 09:40 0:00 [kjournald]
root 4647 0.0 0.0 0 0 ? SW 09:40 0:00 [kjournald]
root 4648 0.0 0.0 0 0 ? SW 09:40 0:00 [kjournald]
root 5886 0.0 0.6 5816 3108 ? S 09:41 0:00 /usr/sbin/cupsd
xfs 6830 0.0 1.0 6940 5288 ? S 09:41 0:00 /usr/X11R6/bin/xfs -daemon -config /etc/X11/fs/config -droppriv -user xfs -por
root 6899 0.0 0.0 1308 480 tty1 S 09:41 0:00 /sbin/agetty 38400 tty1 linux
root 6900 0.0 0.0 1308 480 tty2 S 09:41 0:00 /sbin/agetty 38400 tty2 linux
root 6901 0.0 0.0 1308 480 tty3 S 09:41 0:00 /sbin/agetty 38400 tty3 linux
root 6902 0.0 0.0 1308 480 tty4 S 09:41 0:00 /sbin/agetty 38400 tty4 linux
root 6903 0.0 0.0 1308 480 tty5 S 09:41 0:00 /sbin/agetty 38400 tty5 linux
root 6904 0.0 0.0 1308 480 tty6 S 09:41 0:00 /sbin/agetty 38400 tty6 linux
root 6932 0.0 0.4 10572 2268 ? S 09:41 0:00 /usr/bin/gdm
root 7634 0.0 0.5 11136 3076 ? S 09:42 0:00 /usr/bin/gdm
root 7637 1.5 4.8 102404 24820 ? S 09:42 4:19 /usr/X11R6/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
vasilis 7650 0.0 0.2 4544 1072 ? S 09:42 0:00 /bin/sh --login /usr/kde/3.2/bin/startkde
vasilis 7668 0.0 0.1 2768 880 ? S 09:42 0:00 /usr/bin/ssh-agent -- /usr/kde/3.2/bin/startkde
vasilis 7693 0.0 1.8 21156 9760 ? S 09:42 0:00 kdeinit: Running...
vasilis 7696 0.0 1.9 23124 9816 ? S 09:42 0:00 kdeinit: dcopserver --nosid
vasilis 7698 0.0 2.1 24820 11136 ? S 09:42 0:00 kdeinit: klauncher
vasilis 7701 0.0 3.2 29616 16856 ? S 09:42 0:02 kdeinit: kded
vasilis 7708 0.0 2.9 26648 15136 ? S 09:42 0:00 kdeinit: kxkb
vasilis 7719 1.1 1.1 9772 6056 ? S 09:42 3:10 //usr/kde/3.2/bin/artsd -F 10 -S 4096 -d -s 60 -m artsmessage -c drkonqi -l 3
vasilis 7741 0.0 3.3 32272 17472 ? S 09:42 0:00 kdeinit: knotify
vasilis 7742 0.0 0.0 1308 304 ? S 09:42 0:00 kwrapper ksmserver
vasilis 7744 0.0 2.5 25140 12932 ? S 09:42 0:00 kdeinit: ksmserver
vasilis 7745 0.0 3.0 27308 15964 ? S 09:42 0:10 kdeinit: kwin -session 107a2a0785000108695979900000267860000_1090948491_92608
vasilis 7747 0.0 2.8 26588 14816 ? S 09:42 0:00 kdeinit: kwrited
vasilis 7750 0.0 2.5 25272 13032 ? S 09:42 0:02 kdeinit: khotkeys
vasilis 7751 0.0 3.2 26992 16840 ? S 09:42 0:12 kdeinit: kdesktop
vasilis 7753 0.1 3.9 31384 20196 ? S 09:42 0:28 kdeinit: kicker
vasilis 7755 0.0 2.0 22536 10556 ? S 09:42 0:00 kdeinit: kio_file file /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp/
vasilis 7758 0.0 0.7 14192 3868 ? S 09:42 0:00 /usr/bin/lineakd
vasilis 7762 0.0 0.7 14192 3868 ? S 09:42 0:00 /usr/bin/lineakd
vasilis 7763 0.0 0.7 14192 3868 ? S 09:42 0:00 /usr/bin/lineakd
vasilis 7785 0.0 2.9 26716 15152 ? S 09:42 0:01 kdeinit: klipper
vasilis 7787 0.7 3.8 33552 19772 ? S 09:42 2:04 superkaramba -session 10503a933f000108999666700000231110008_1090948490_768987
vasilis 7788 0.0 3.1 27860 16384 ? S 09:42 0:01 korgac --miniicon korganizer
vasilis 7790 0.0 2.5 26292 13200 ? S 09:42 0:00 kalarmd --login
vasilis 7821 0.2 7.3 48968 38160 ? S 09:43 0:44 kdeinit: konqueror --silent
vasilis 13481 0.0 3.3 28328 17116 ? S 09:53 0:04 kdeinit: konsole
vasilis 13491 0.0 0.2 4736 1440 pts/3 S 09:53 0:00 /bin/bash
vasilis 15077 0.1 5.7 43324 29548 ? S 09:56 0:15 kmail -caption KMail -icon kmail -miniicon kmail
vasilis 15087 0.0 2.3 24436 12280 ? S 09:56 0:03 kdeinit: kio_pop3 pop3s /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp
vasilis 15088 0.0 1.9 22216 10284 ? S 09:56 0:00 kdeinit: kio_pop3 pop3 /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp/
vasilis 5198 0.0 3.9 33232 20240 ? S 11:38 0:04 kdeinit: kmplayer -caption KMPlayer -icon kmplayer.png -miniicon kmplayer.png
vasilis 5271 0.3 1.8 27912 9548 ? S 11:38 0:29 mplayer -wid 54526043 -slave -vo xv -framedrop -af volume -contrast 0 -brightn
vasilis 5345 0.0 1.1 23812 5888 ? S 11:38 0:00 mplayer -wid 54526043 -slave -vo xv -framedrop -af volume -contrast 0 -brightn
vasilis 8081 0.2 4.6 33224 23916 ? S 13:43 0:03 kdiff3 -icon kdiff3 -miniicon kdiff3 -caption KDiff3
vasilis 11397 0.0 3.0 27536 15600 ? S 13:49 0:00 kdeinit: kio_uiserver
root 14881 0.0 0.0 1332 432 ? S 13:54 0:00 /sbin/dhcpcd eth0
bin 14958 0.0 0.1 1504 640 ? S 13:54 0:00 /sbin/portmap
root 14988 0.0 0.2 2484 1072 ? S 13:54 0:00 /usr/sbin/famd -T 0 -c /etc/fam.conf
root 15025 0.0 0.2 4284 1096 ? S 13:54 0:00 /bin/sh /usr/bin/mysqld_safe
mysql 15151 0.0 1.0 37548 5172 ? S 13:54 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-fi
root 15152 0.0 0.2 3188 1408 ? S 13:54 0:00 /usr/sbin/sshd
mysql 15155 0.0 1.0 37548 5172 ? S 13:54 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-fi
mysql 15156 0.0 1.0 37548 5172 ? S 13:54 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-fi
mysql 15157 0.0 1.0 37548 5172 ? S 13:54 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-fi
root 20665 0.0 0.0 1392 516 ? S 14:04 0:00 metalog [MASTER]
root 20666 0.0 0.0 1380 472 ? S 14:04 0:00 metalog [KERNEL]
root 20703 0.0 0.1 1484 572 ? S 14:04 0:00 /usr/sbin/crond
vasilis 20870 0.0 2.0 22432 10708 ? S 14:04 0:00 kdeinit: kio_http http /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp/
vasilis 20890 0.0 2.0 22396 10616 ? S 14:04 0:00 kdeinit: kio_http http /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp/
vasilis 20900 0.0 2.0 22436 10672 ? S 14:05 0:00 kdeinit: kio_http http /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp/
vasilis 20901 0.0 2.0 22396 10616 ? S 14:05 0:00 kdeinit: kio_http http /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp/
vasilis 22289 0.0 2.0 22408 10608 ? S 14:07 0:00 kdeinit: kio_http http /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tmp/
vasilis 22724 0.0 1.9 22096 10044 ? S 14:08 0:00 kdeinit: kio_about about /tmp/ksocket-vasilis/klauncherzihPub.slave-socket /tm
vasilis 23285 0.0 0.2 4740 1448 pts/13 S 14:09 0:00 /bin/bash
vasilis 25720 0.2 0.3 9144 1652 ? S 14:13 0:00 aspell -a -S -C
vasilis 25856 0.0 0.1 2292 796 pts/13 R 14:14 0:00 ps aux
|
Do all these help? |
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Wed Jul 28, 2004 9:03 pm Post subject: |
|
|
Hmmm, well my first guess would be that it won't unmount because the filesystem is busy... which means not all processes are terminated.
What I would try is, disabling X/KDM at boot, and see if your problems reside...
Regards,
Pascal de Bruijn |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Jul 28, 2004 10:11 pm Post subject: |
|
|
pmjdebruijn wrote: | Hmmm, well my first guess would be that it won't unmount because the filesystem is busy... which means not all processes are terminated.
What I would try is, disabling X/KDM at boot, and see if your problems reside...
Regards,
Pascal de Bruijn |
No, it does not. Yesterday i disable X at boot and still the command reboot behaved in exactly the same way |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Jul 28, 2004 10:34 pm Post subject: |
|
|
A couple of months ago, my system was working fine.
The fact that is shut downs before it umounts the filesystems is becuase something is messed up with the scripts.
This is why I asked the help from a developer. He or she would not know which scripts are called during these calls and therefore I would be able to track down the problem |
|
Back to top |
|
|
Sugarat Guru
Joined: 24 Jul 2002 Posts: 348
|
Posted: Wed Jul 28, 2004 10:34 pm Post subject: |
|
|
Drop to single user runlevel and then try reboot _________________ --[ UltraSPARC ]--
Accept no imitations |
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Wed Jul 28, 2004 11:04 pm Post subject: |
|
|
Yes, okay... I might be out of my league here... Still that doesn't justify that topic title...
Put something informative into the topic title!
Regards,
Pascal de Bruijn |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Jul 28, 2004 11:33 pm Post subject: |
|
|
Sugarat wrote: | Drop to single user runlevel and then try reboot |
Nice idea ... too bas it did not work
Went I run the reboot command, I saw the following three messages
Code: |
Stopping devfsd [ok]
Deactivating swap [ok]
System is halted
Umounting filesystems
|
|
|
Back to top |
|
|
pmjdebruijn Guru
Joined: 24 Jul 2003 Posts: 506 Location: Sittard, The Netherlands
|
Posted: Wed Jul 28, 2004 11:45 pm Post subject: |
|
|
Well have you tried re-emerging the base rc scripts?
I'm not sure how the package is called... You'll have to do some searching...
Regards,
Pascal de Bruijn |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Thu Jul 29, 2004 12:36 am Post subject: |
|
|
pmjdebruijn wrote: | Well have you tried re-emerging the base rc scripts?
I'm not sure how the package is called... You'll have to do some searching...
Regards,
Pascal de Bruijn |
By running qpkg -f reboot I found that reboot, shutdown,halt, init belong to baselayout package. If this is the correct file, I updated, downdated a couple of times. I even boot in LiveCD to update baselayout, without luck |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Thu Jul 29, 2004 2:53 pm Post subject: |
|
|
Nobody knows?? |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Thu Jul 29, 2004 8:50 pm Post subject: |
|
|
Is it a good idea to unemerge baselayout and then to reemerge it.
I am afraid that when I simple reemerge it some files are not overwrtten. |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Thu Jul 29, 2004 10:38 pm Post subject: |
|
|
The script halt.sh looks fine. Right "Deactivating swap" you find "Umount filesystems". Nevertheless, this is not executed and something else is executed.
Can somebody tell me, which program prints the output "System is halted"? |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Thu Jul 29, 2004 10:50 pm Post subject: |
|
|
Problem is solved.
The command halt -w &>/dev/null
was causing all the problems. When this command is used the system should not reboot, but in my case it did. Wonder why?
Anyhow, I would like to thank all those who brainstormed to help me find the solution. |
|
Back to top |
|
|
Macguyvok n00b
Joined: 09 Mar 2004 Posts: 54 Location: ....right behind you....
|
Posted: Wed Sep 15, 2004 9:07 pm Post subject: Informative.... or not... |
|
|
How did you fix it? I have the same problem on my laptop..... _________________ --Mac
"The DM is GOD!" No.... God's just my little NPC
Coconut falls from sky... Take 2 points damage! |
|
Back to top |
|
|
|