Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1759 - File System Corruption after System Update - Upgrade

Attached to Project: Arch Linux
Opened by Jason Porter (jayptr) - Monday, 08 November 2004, 13:46 GMT
Last edited by Judd Vinet (judd) - Thursday, 11 November 2004, 19:21 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.6 Widget
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I did an install of 0.6 Widget, and the install was successful. All I installed was the base packages from the CD nothing more. After install, I then proceeded to do a system update to current so that all packages would be updated. After all packages that were newer were updated successfully I rebooted the machine. When the machine shuts down, the system is unable to unmount the file system properly. It displays busy for all mounted partitions, but proceeds to reboot anyways, resulting in file system errors that sometimes can be automatically corrected when the machines starts back up or has to be manually checked and repaired using the install/rescue cd. It doesn't matter if it is a shutdown or reboot, the result is the same. I thought at first perhaps it was a change with the kernel between 2.6.3 and 2.6.9 but leaving the kernel out of the update to current doesn’t resolve the problem. The only thing else I can think of is it has something to do with linux utilities used for mounting and unmounting, etc. I almost decided to not report this problem, but felt possible file corruption could be serious. This may not be an issue in the 0.7 beta release because the packages will be more up to date, and an update to current may not be necessary.
This task depends upon

Closed by  Judd Vinet (judd)
Wednesday, 02 February 2005, 03:01 GMT
Reason for closing:  Works for me
Additional comments about closing:  Closing. Open a new bug if it happens again.
Comment by Judd Vinet (judd) - Thursday, 11 November 2004, 19:22 GMT
New to me. This problem hasn't been reported before, with 0.6 or 0.7.

What filesystems do you use?
Comment by Jason Porter (jayptr) - Thursday, 11 November 2004, 20:01 GMT
I have only used the ext3 filesystem. I have had this problem repeat itself on three different machines.
Comment by Jason Porter (jayptr) - Thursday, 11 November 2004, 20:05 GMT
I should also mention:

My partition structure

125M /boot
1024M swap partition
renaming space /

I was using the default fstab as was configured by the install program during setup.
Comment by Judd Vinet (judd) - Tuesday, 16 November 2004, 18:44 GMT
I did some tests today.

I installed 0.6 Widget (base only), then --sysupgrade'ed all packages. The first reboot did not successfully umount filesystems, and the ext3 had to be recovered from journal. fsck also scanned the ext3 / and ext2 /boot partitions on bootup, but that is standard for a new install, I think.

The second reboot was fine, partitions were all umounted successfully.

As a possible solution, you could edit /etc/rc.shutdown and change the block that says "Unmounting Filesystems" to be something like the following:

stat_busy "Unmounting Filesystems"
/bin/umount -a
while [ $? -gt 0 ]; do
/usr/bin/sleep 2
/bin/umount -a
done
stat_done

Note that /usr will have to be mounted to the script to use the sleep utility.

See if that loops forever, or if the script can eventually umount your filesystems.
Comment by Jason Porter (jayptr) - Wednesday, 17 November 2004, 17:13 GMT
I am currenty away from home. If I can I will try it this weekend and see if it works for me.

Thanks Judd
Comment by Jason Porter (jayptr) - Monday, 29 November 2004, 14:35 GMT
I haven't been able to get around to trying to see if the code above works. I don't know when I will be able to this point. I might be moving in the next few weeks. If someone will like to try please feel free.

Loading...