[SLUG] Unclean Unmounting
Hi All, I am a little confused at present. Lately everytime I boot into Linux (SuSE 7.3 Personal), nearly all the time now, my boot messages tell me that hdb3 (the / partition) was not unmounted cleanly, so it scans the disk. Now when it shuts down, it tells me that is unmounting all the disks and hdb3 is supposedly unmounted. But the next time I boot in it tells me it is not cleanly unmounted. I have checked all the included docs and have been to the SuSe website, but I haven't found an answer. The only thing I can think is I recently dleted Wine from my hardrive and since then the problems have started. Does anyone have any ideas, or has this happened to anyone else? Regards Paul See part of boot log messages below, Kernel logging (ksyslog) stopped. Kernel log daemon terminating. Boot logging started on /dev/tty1(/dev/console) at Mon Jan 28 10:01:56 2002 fbmngplay: no process killed Run file system check on root for LVM activation doneRemounting root file system (/) read/write for vgscan... Scanning for LVM volume groups... vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group Activating LVM volume groups... vgchange -- no volume groups found Activating swap-devices in /etc/fstab... doneChecking file systems... fsck 1.24a (02-Sep-2001) /dev/hdb3 was not cleanly unmounted, check forced. /dev/hdb3: |= | 1.2% [snipped] || 100.0% /dev/hdb3: 116909/948416 files (0.5% non-contiguous), 953591/1895670 blocks /dev/hdb1: clean, 32/5664 files, 4193/22648 blocks doneMounting local file systems... proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/hdb1 on /boot type ext2 (rw) doneActivating remaining swap-devices in /etc/fstab... doneSetting up the CMOS clockdone Setting up timezone datadone Setting up loopback devicedone Setting up hostnamedone Mount SHM FS on /dev/shmdone Configuring serial ports... ttyS0 at 0x03f8 (irq = 4) is a 16550A Configured serial ports doneRunning /etc/init.d/boot.local doneCreating /var/log/boot.msg donekillproc: kill(23,29) Enabling syn flood protectiondone Disabling IP forwardingdone killproc: kill(23,3) INIT: Entering runlevel: 5 Boot logging started on /dev/tty1(/dev/console) at Sun Jan 27 23:03:34 2002 Master Resource Control: previous runlevel: N, switching to runlevel: 5 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
RE: [SLUG] Unclean Unmounting
do you have an old hard disk? once I had Red Hat 6.0 installed on an old machine and every now and then when i was booting linux it would tell me that my hard disk is due for a check. I could never figure out why except that maybe because the disk was old and already had a few bad clusters, it would do a routine check to make sure the old disk is still going properly... i dunno, thats just a guess.. -Original Message- From: Paul Copeland [mailto:[EMAIL PROTECTED]] Sent: Sunday, 27 January 2002 11:43 PM To: SLUG List Subject: [SLUG] Unclean Unmounting Hi All, I am a little confused at present. Lately everytime I boot into Linux (SuSE 7.3 Personal), nearly all the time now, my boot messages tell me that hdb3 (the / partition) was not unmounted cleanly, so it scans the disk. Now when it shuts down, it tells me that is unmounting all the disks and hdb3 is supposedly unmounted. But the next time I boot in it tells me it is not cleanly unmounted. I have checked all the included docs and have been to the SuSe website, but I haven't found an answer. The only thing I can think is I recently dleted Wine from my hardrive and since then the problems have started. Does anyone have any ideas, or has this happened to anyone else? Regards Paul See part of boot log messages below, Kernel logging (ksyslog) stopped. Kernel log daemon terminating. Boot logging started on /dev/tty1(/dev/console) at Mon Jan 28 10:01:56 2002 fbmngplay: no process killed Run file system check on root for LVM activation doneRemounting root file system (/) read/write for vgscan... Scanning for LVM volume groups... vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group Activating LVM volume groups... vgchange -- no volume groups found Activating swap-devices in /etc/fstab... doneChecking file systems... fsck 1.24a (02-Sep-2001) /dev/hdb3 was not cleanly unmounted, check forced. /dev/hdb3: |= | 1.2% [snipped] || 100.0% /dev/hdb3: 116909/948416 files (0.5% non-contiguous), 953591/1895670 blocks /dev/hdb1: clean, 32/5664 files, 4193/22648 blocks doneMounting local file systems... proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/hdb1 on /boot type ext2 (rw) doneActivating remaining swap-devices in /etc/fstab... doneSetting up the CMOS clockdone Setting up timezone datadone Setting up loopback devicedone Setting up hostnamedone Mount SHM FS on /dev/shmdone Configuring serial ports... ttyS0 at 0x03f8 (irq = 4) is a 16550A Configured serial ports doneRunning /etc/init.d/boot.local doneCreating /var/log/boot.msg donekillproc: kill(23,29) Enabling syn flood protectiondone Disabling IP forwardingdone killproc: kill(23,3) INIT: Entering runlevel: 5 Boot logging started on /dev/tty1(/dev/console) at Sun Jan 27 23:03:34 2002 Master Resource Control: previous runlevel: N, switching to runlevel: 5 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug Searching for "A Better Way" to a home loan ?. Call RAMS on 13 7267, or go to http://www.rams.com.au The e-mail and any attachments may contain confidential information. If you receive it in error you must not use or disclose the information. You must tell us and delete it. We do not waive any legal privilege by sending it. RAMS does not promise that the email is free from virus defect or error. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Unclean Unmounting
On 27 Jan 02, at 23:42, Paul Copeland wrote about: [SLUG] Unclean Unmounting > > I am a little confused at present. Lately everytime I boot into Linux (SuSE > 7.3 Personal), nearly all the time now, my boot messages tell me that hdb3 > (the / partition) was not unmounted cleanly, so it scans the disk. > > Now when it shuts down, it tells me that is unmounting all the disks and hdb3 > is supposedly unmounted. But the next time I boot in it tells me it is not > cleanly unmounted. [snip] WARNING: This remedy can f*ck your hdd (but it has worked for me). *** USE AT YOUR OWN RISK *** *** NO responsibility is accepted etc... *** BEFORE you begin: man fsck man e2fsck then: 1. Force a manual fsck: fsck -f /dev/hdb3 (take the default answer to every question!) 2. Repeat 1. above. If no errors are reported, you have fixed it (cheers - STOP HERE). 3. If 2. fails with the same or further errors: fsck -fc /dev/hdb3 (take the default answer to every question!) 4. Repeat 1. above. If no errors are reported, you have fixed it (cheers). If otherwise, the hdd is severely f*cked, throw it out and start again. Good luck, Russell --- Post HTML at your own risk --- Not everyone uses mail readers that can easily display HTML messages. Consequently, you will reach a larger audience if you post your messages in plain-text. Many people simply ignore HTML messages, because it takes a nontrivial amount of effort to read them. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Unclean Unmounting
Paul Copeland was once rumoured to have said: > Hi All, > > I am a little confused at present. Lately everytime I boot into Linux (SuSE > 7.3 Personal), nearly all the time now, my boot messages tell me that hdb3 > (the / partition) was not unmounted cleanly, so it scans the disk. It is possible that a process is still running on a filesystem which has prevented it from being unmounted properly. Debian (IIRC) handles this case by doing a second pass to remount any remaining filesystems after the unmount pass as read-only. I've not seen any other distros implement this behaviour. I have seen this one crop up from time to time however, so its not entirely out of the realms of probability. Another possibility is caches/buffers not being flushed to disk completely before the reset/power-down occurs, however this is a definately shouldn't happen case. C. -- --==-- Crossfire | This email was brought to you [EMAIL PROTECTED] | on 100% Recycled Electrons --==-- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Unclean Unmounting
On Tue, Jan 29, 2002 at 04:15:47PM +1100, Crossfire wrote: > Another possibility is caches/buffers not being flushed to disk > completely before the reset/power-down occurs, however this is a > definately shouldn't happen case. Another shouldn't happen case, if the / filesystem is mounted read/write I think it will be marked as unclean, but you should see a warning about this. -- Note: You can skip this section if you want to move on. chesty -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
RE: [SLUG] Unclean Unmounting
On Tue, 29 Jan 2002, Chris Barnes wrote: > do you have an old hard disk? once I had Red Hat 6.0 installed on an old > machine and every now and then when i was booting linux it would tell me > that my hard disk is due for a check. I could never figure out why except > that maybe because the disk was old and already had a few bad clusters, it > would do a routine check to make sure the old disk is still going > properly... > > i dunno, thats just a guess.. Unfortunately wrong, don't let that stop you suggesting ideas though. The reason why this happens is there's a counter and also a last checked date stored in the superblock of the ext2 filesystem. When either the mount count is reached or it's been too long the filesystem is checked on bootup. "man tune2fs" "tune2fs -l /dev/hda5" (as an example) Look for "Mount Count:", "Maximum mount count:", "Last checked:" and "Check interval" in the output of the above. -- -- Web: www.arcadia.au.com/gripz Phone/fax: 02 4950 1194 Mobile: 0408 686 201 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Unclean Unmounting
On Sun, 27 Jan 2002, Paul Copeland wrote: > Hi All, > > I am a little confused at present. Lately everytime I boot into Linux (SuSE > 7.3 Personal), nearly all the time now, my boot messages tell me that hdb3 > (the / partition) was not unmounted cleanly, so it scans the disk. > > Now when it shuts down, it tells me that is unmounting all the disks and hdb3 > is supposedly unmounted. But the next time I boot in it tells me it is not > cleanly unmounted. I have checked all the included docs and have been to the > SuSe website, but I haven't found an answer. > > The only thing I can think is I recently dleted Wine from my hardrive and > since then the problems have started. Does anyone have any ideas, or has > this happened to anyone else? I sympathise, this isn't going to be an easy one to debug. Basically something probably is locking the filesystem and it fails to unmount. This could be something as simple as a shell sitting in the directory or more likely some program holding a file open that doesen't kill easily. Your log doesen't say where the filesystem is mounted, this may help, as will any output you can capture as you shutdown, know any shorthand :-) Try shutting down your system step by step manually, start with the GUI - shut it down & login at the text console as root, basically kill off processes that are non-essential - networking, cron, apache, mail, leave syslog till last (it may catch some info), possibly unmounting the filesystem in question (eg if it's /home you can do this, but not if it's / . For that you'd have to use "mount -o remount,ro /" which will make the root partition read only. Further mounting/unmounting will result in warnings that /etc/mtab could not be updated which is OK under the circumstances. Finally you should end up with less than a dozen processes running, the system should shutdown without stuffing up the filesystem. > > Regards > Paul > > See part of boot log messages below, > > Kernel logging (ksyslog) stopped. > Kernel log daemon terminating. > Boot logging started on /dev/tty1(/dev/console) at Mon Jan 28 10:01:56 2002 > fbmngplay: no process killed > Run file system check on root for LVM activation > doneRemounting root file system (/) read/write for vgscan... > Scanning for LVM volume groups... > vgscan -- reading all physical volumes (this may take a while...) > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created > vgscan -- WARNING: This program does not do a VGDA backup of your volume group > > Activating LVM volume groups... > vgchange -- no volume groups found > > Activating swap-devices in /etc/fstab... > doneChecking file systems... > fsck 1.24a (02-Sep-2001) > /dev/hdb3 was not cleanly unmounted, check forced. > /dev/hdb3: |= | 1.2% > [snipped] || 100.0% > > /dev/hdb3: 116909/948416 files (0.5% non-contiguous), 953591/1895670 blocks > /dev/hdb1: clean, 32/5664 files, 4193/22648 blocks > doneMounting local file systems... > proc on /proc type proc (rw) > devpts on /dev/pts type devpts (rw,mode=0620,gid=5) > /dev/hdb1 on /boot type ext2 (rw) > doneActivating remaining swap-devices in /etc/fstab... > doneSetting up the CMOS clockdone > Setting up timezone datadone > Setting up loopback devicedone > Setting up hostnamedone > Mount SHM FS on /dev/shmdone > Configuring serial ports... > ttyS0 at 0x03f8 (irq = 4) is a 16550A > Configured serial ports > doneRunning /etc/init.d/boot.local > doneCreating /var/log/boot.msg > donekillproc: kill(23,29) > Enabling syn flood protectiondone > Disabling IP forwardingdone > killproc: kill(23,3) > INIT: Entering runlevel: 5 > Boot logging started on /dev/tty1(/dev/console) at Sun Jan 27 23:03:34 2002 > Master Resource Control: previous runlevel: N, switching to runlevel: 5 > > -- -- Web: www.arcadia.au.com/gripz Phone/fax: 02 4950 1194 Mobile: 0408 686 201 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug