WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Error in the umount  (Read 7224 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Error in the umount
« on: October 09, 2009, 07:02:29 AM »
In the new rc5, after install programs (geany and xfe +locales) the usbstick where the system is installed is unable to unmount, the error declare a partition busy.
The older rc2 don't have this problem (I tried simply replacing the kernel and the ramdisk and reinstalling from scratch).
The file tcz2ram.lst is complete.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Error in the umount
« Reply #1 on: October 09, 2009, 04:57:29 PM »
with 2.4 stable this problem is resolved!
you are mythic!

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Error in the umount
« Reply #2 on: October 09, 2009, 08:08:59 PM »
It sounds like this is the problem I observed recently in TC 2.3.1 caused by the tcz2ram function in tce-load. The script did not "umount -d" so the loop device was not deleted when the extension is unmounted. The loop device was still linked to the file on shutdown, so the filesystem could not be re-mounted read-only. TC 2.4 fixes this.

An addition to rc.shutdown in an earlier version of TC addresses the "umount: can't mount xyz read-only" problem:
for loop in $(losetup -a|cut -d: -f1); do umount -d $loop 2>/dev/null; done

and adding "losetup -d" to the end prevents this error even if -d is omitted when unmounting:
for loop in $(losetup -a|cut -d: -f1); do umount -d $loop 2>/dev/null || losetup -d $loop; done

It might be worth adding to the next version as a safeguard, but as observed, the real issue is resolved in 2.4.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Error in the umount
« Reply #3 on: October 14, 2009, 09:46:14 PM »
This problem returns.
This time on a microcore 2.4.1 installed in this manner.
Plus I added core elements in tcz2ram.list, that is complete.
   
The error is the same: "umount: can't umount /mnt/hda1: Device or resource busy"

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: Error in the umount
« Reply #4 on: October 15, 2009, 12:49:21 PM »
To see which process is using the device try running:

fuser -m /mnt/hda1
ps | grep PID#

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Error in the umount
« Reply #5 on: October 15, 2009, 05:00:06 PM »
 combo3,    your command did not cause any response from the prompt, but you gave me the right idea for the test.
The problems is in the core elements and core xserver, install makes it impossible to unmount the partition,    add to list tcz2ram.lst not solve anything

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Error in the umount
« Reply #6 on: October 16, 2009, 01:38:27 AM »
Not sure why a release candidate topic is ongoing, as there is no currently available release candidate.
If there is an issue with a released version then please post accordingly.
Release candidates are only for testing purposes and their use is strongly discouraged once a final version is released.
10+ Years Contributing to Linux Open Source Projects.