Ошибка отключения файловой системы linux error unmounting

Непонятки с диском-появилась ошибка Установил ОС Линукс Минт 19.3-все работает нормально,но сегодня, при попытке исправить ошибки на диске, получил сообщение-error unmounting/dev/sda5:target is busy (udisks-error-quark,14) Что это такое и что с ним делать.Я не спец и поэтому спрашиваю в надежде что кто-нибудь подскажет решение. Для выполнения проверки файловой системы на ошибки её нужно отмонтировать (отключить). […]

Содержание

  1. Непонятки с диском-появилась ошибка
  2. Непонятки с диском-появилась ошибка
  3. Непонятки с диском-появилась ошибка
  4. Непонятки с диском-появилась ошибка
  5. Непонятки с диском-появилась ошибка
  6. Непонятки с диском-появилась ошибка
  7. Непонятки с диском-появилась ошибка
  8. Непонятки с диском-появилась ошибка
  9. Непонятки с диском-появилась ошибка
  10. Непонятки с диском-появилась ошибка
  11. Непонятки с диском-появилась ошибка
  12. Непонятки с диском-появилась ошибка
  13. Непонятки с диском-появилась ошибка
  14. Непонятки с диском-появилась ошибка
  15. Непонятки с диском-появилась ошибка
  16. Непонятки с диском-появилась ошибка
  17. Re: Непонятки с диском-появилась ошибка
  18. Thread: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)
  19. [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)
  20. Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)
  21. Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)
  22. Thread: unmount error, udisks-error-quark, 14
  23. unmount error, udisks-error-quark, 14
  24. Thread: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)
  25. error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)
  26. Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)
  27. Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)
  28. Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)
  29. Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)
  30. Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

Непонятки с диском-появилась ошибка

Установил ОС Линукс Минт 19.3-все работает нормально,но сегодня, при попытке исправить ошибки на диске, получил сообщение-error unmounting/dev/sda5:target is busy (udisks-error-quark,14) Что это такое и что с ним делать.Я не спец и поэтому спрашиваю в надежде что кто-нибудь подскажет решение.

Для выполнения проверки файловой системы на ошибки её нужно отмонтировать (отключить).

Если /dev/sda5 у тебя смонтирована как корневая файловая система или какая-либо часть корневой файловой системы, то тогда тебе нужно грузиться с LiveCD / LiveUSB диска и запускать проверку файловой системы на /dev/sda5.

Непонятки с диском-появилась ошибка

Да,смонтировано на Корень файловой системы. А если я отключу раздел(отмонтирую) данные не пропадут? Режим запущу и проверю раздел. Заранее благодарю.

А если я отключу раздел(отмонтирую) данные не пропадут?

Ничего не пропадёт если просто нормально отмонтировать. Другой вопрос, что там за ошибки появились, тут может и пропасть кое-что. И ещё вопрос: как раздел удалось примонтировать если он с ошибками, read only?

Непонятки с диском-появилась ошибка

А не легче будет ПОЛНОСТЬЮ переустановить систему?Как они,ошибки,появились?Я думаю,что просто до этого неправильно удалил один раздел-надо было в GParted,а я просто удалил в утилите Диски.

Если у тебя аппаратные проблемы с ЖД, переустановка системы не поможет от слова совсем.

Ты крайне невнятно описал проблему. Давай немного выводов:

Здесь тебе нужно подробнее рассказать, что делал и зачем.

Про переустановку Всеволод тебе пояснил.

Пусть сперва те выводы скинет, что я выше просил, узнаем хоть, как и что примонитровано. Попробуем прочекать после его ФС.

Потом надо быдет ещё smartmontools поставить и SMART у диска глянуть, если будет такая возможность.

А у Тебя далеко идущие планы :).

Ой, обычная ситуация. Смотрим сперва ФС, потом ЖД. Возможно, все не страшно и обойдется чеком.

Непонятки с диском-появилась ошибка

Хм, сейчас корень примонтирован у тебя в rw. Ладно, а что именно ты пытался исправить на диске, когда получил эту ошибку?

Непонятки с диском-появилась ошибка

Просто при попытке обновления-в частности ядра-получил это сообщение об ошибке.Да и при попытке исправить в утилите Диски получил эту ошибку.У меня один вопрос-с этой ошибкой «жить и работать» можно?Это я о компе.Сейчас ядро 5.4.0-48.

Непонятки с диском-появилась ошибка

Можно еще вопрос?Диск в норме?

Пока не знаю. У тебя какие-то непонятки с нумерацией разделов, ХЗ, чем вызваны. Но вроде не должны сильно мешать.

Все исправления/изменения производятся только на отмонтированных разделах, тут мог Диск и ругнуться.

А вот как ты ядро обновлял?

Непонятки с диском-появилась ошибка

Че? apt тут при чем? Я тебя какую команду выполнить просил?

Непонятки с диском-появилась ошибка

Ядро пытался обновить,но получил эту ошибку.Сейчас версия ядра 5.4.0-48

Что за ****** ты несешь?

Я так понимаю, эту ошибку можно получить при попытке отмонтировать раздел который в данный момент используется. Зачем его пытались отмонтировать?

sudo blkid -c /dev/null

Непонятки с диском-появилась ошибка

МЫ ПОТЕРЯЛИ ЕГО.

Непонятки с диском-появилась ошибка

Это я не тебе 🙂 ты просто долго не отвечал.

Непонятки с диском-появилась ошибка

Как ты пытался ядро обновить??

Непонятки с диском-появилась ошибка

Пришло обновление,пытался обновиться-получил эту ошибку. При попытке исправить в утилите Диски-этаже ошибка.

Непонятки с диском-появилась ошибка

Окей, я убедился. Теперь имеет смысл чекнуть ФС на ошибки. В Linux Mint это просто — в меню GRUB2 при загрузке выбираем rescue режим, а там fsck.

Непонятки с диском-появилась ошибка

Ну, мужик, Всеволод тебе написал — в rescue!!

Непонятки с диском-появилась ошибка

Ребята!Не ругайте меня сильно!Я прочитал,но как туда попасть-не знаю.Где взять этот grub2,если при загрузке я его НЕ ВИЖУ.

Esc нажать после BIOS. Выбрать rescue, там далее отдельный пункт fsck, чтобы вообще все за тебя автоматика сделала.

Или recovery — я уже забыл, как там это называется.

Непонятки с диском-появилась ошибка

Re: Непонятки с диском-появилась ошибка

Я бы туда не полез. Там темно и страшно, и гуя нету. Да и всё равно ОСь лучше переустановить, предварительно вдумчиво запланировав разметку. А то этот единственный пятый, да ещё на расширенном разделе, с имеющимися ошмётками под закос использования efi (остатки виндовсы, да?) — это как бы абздец в фундаменте твоей стройки. Оно, может быть, и так бы работало, но не всякое «ядро» при обновлении научено понимать такие замесы конструкций. Вот и не поняло чиво тут и где.

error unmounting/dev/sda5:target is busy

Подёргай шлейф, либо попробуй поменять интерфейсный кабель.

Можно также попробовать посмотреть в каком процессе участвует диск и попробовать придушить его.

Источник

Thread: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

Thread Tools
Display

[ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

So right now I’m trying to make a bootable Ubuntu flash drive to impress my friends, and so far it seemed to work, until when I was trying to unmount my flash drive from /cdrom but i come across the error

What I’ve seen is that I need to unmount the drive or else I wont be able to install it directly on the flash drive.

If you all need me to type in something in terminal I’m happy to.

Any support would help. Thanks!

Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

If any process is using any files or sitting with a PWD inside a directory on the flash drive, then it will be «busy» and cannot be umounted.

If you want help making a live-boot flash device, there is a how-to page just for that.
If you want help umounting storage (umount is the command, not unmount), it cannot be in use. Certain file systems will always be in use — like the boot and OS partitions. The only way to access them when the partition(s) aren’t mounted is to boot from alternate media — an SSD, HDD, flash disk, USB disk, CDROM, DVD, something else.

Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

Then how can I install it on the flash drive if I can’t unmount the drive?

Источник

Thread: unmount error, udisks-error-quark, 14

Thread Tools
Display

unmount error, udisks-error-quark, 14

First I have to tell I’m not English and try to do best to make it readeble for you.

Now the problem with my SSD-card. I have the problem for a very long time but had more places on other hdd for the Trusty system. The problems were also before February 2012 the year I started with Ubuntu and say definite goodbey to Windows (after 31-year). After every installation of a new system version, I made a clean install. But everytime the totally system (p.e. Trusty Tahr) changed from place (first hdd) to another hdd without an error message. Everytime Ubuntu was replaced from /dev/sda1 to /dev/sdc5. (before with Windows it happend with a normal hdd too). My SSD is maybe 4-years old
Now I got an extra problem because my SD-card was not found again (with 64GB digital photos), so I had to call my mount/unmount problem to a forum .
The first message below is from when I tried to unmount the SSD:

Error unmounting /dev/sda1: Command-line `umount «/dev/sda1″‘ exited with non-zero exit status 1: umount: /: device is busy.
(In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
(udisks-error-quark, 14)
I had read over the years a lot about other users with the same problems on several Ubuntu/Linux websites but didn’t find the totall solution. Today I tried «ntfsck /dev/sda1» where I got the next message.

# ntfsck /dev/sda1
Boot sector: Bad jump.
Boot sector: Bad NTFS magic.
Boot sector: Bytes per sector is 0.
Volume size is set to zero.
file record corrupted at offset 7032972744 (0x1a332a5c8).
Loading $MFT runlist failed. Trying $MFTMirr.
Failed to read file record at offset 8959136302956019712 (0x7c553f0000000000).
Loading $MFTMirr runlist failed too. Aborting.
NTFS signature is missing.

The told replacements happened now 3 times, so I have not only a ‘Ubuntu Trusty Tahr’ at /dev/sda1, but also on another internal hard disks drives (hdd). It is a nice idea to learn the working of Ubuntu, but for real I like more silents and save that energy for other places.

So who can help me, before I tell my other Ubuntu-problems; it are not more problems when I worked with Windows

Источник

Thread: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

Thread Tools
Display

error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

Hi, i was trying to resize the disk cuz i wanted to have one partition.
Whenever i try to resize this error pops out.

error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

Can i forcibly unmount the disk without any damage happening to the pc?

Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

You cannot unmount a partition when it’s in use. So stop whatever is using it, or at least make sure those applications no longer use that partition. Note that the partition where the currently running operating system is installed is always in use, so you cannot unmount that. If you want to resize that, use a live disk.

Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

It’s impossible to know with the little information you have given us.

Let’s see the output of command

as I suspect you are trying to resize partitions that are mounted and/or in use.

You can not change partitions of the OS you are currently using and it is most commonly done using a live USB system.
All the *buntu family of OSs have gparted in the live USB so you can probably use the USB you used to install the system, assuming you installed it in the first place.

Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

I wanted to make 2 partitions, one for linux, one for windows.
I have one partition rn the one for linux.
Whenever im in the windows installation i can’t make a partition out of the linux drive cuz it says that its an unknown type.
Is there a way to make a partition?
Thanks.

Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

You don’t need to «make a partition» for Linux and certainly not from Windows. You can, from Windows, shrink Windows partitions to make room for another OS. The installer will then use that unallocated space to create the partitions it needs.

Re: error unmounting /dev/sdb5: target is busy (udisks-error-quark, 14)

Even if you do create a partition in Windows it will probably be unusable for Linux as Windows generally creates dynamic partitions which are completely useless for Linux.

As CW says, just leave the space unallocated and the Ubuntu installer will find it and can be pointed to it very easily by using the «Something Else» option, ie, manual partitioning, when you get to that stage of installing.

Источник

Sometimes when you unmount a filesystem or drive, the system shows «unmount target is busy» message. Unless you release the busy system, you won’t be able to unmount.

In this guide, we learn how to fix umount target is busy in Linux.

What is unmount target busy

A mounted filesystem can be accessed by any process running on the Linux operating system. When such a filesystem or a directory which is being accessed by some process is unmounted, the system may issue the target as busy (“device is busy”). One of the reasons the system doesn’t allow unmount is to prevent data loss.

This problem generally occurs in the following scenarios:

  1. The current working directory accessed by the terminal is on the path of the mount point
  2. A process is accessing the files on the filesystem hierarchy being unmounted
  3. A process is accessing a file which relies (reads/writes) on the file inside the filesystem which is being unmounted.
  4. Remote mount point unreachable
umount showing device is busy

Force unmount

Force unmount is one solution to detach the busy device.

Usually, you see a busy device message when you try to unmount an NFS filesystem. This happens often when the NFS server has some issues (mainly unreachable) and you have a soft NFS mount.

Force unmount will detach the server mount point by disrupting some running processes.

CAUTION: This may cause data loss or corrupt files or programs accessing file throw errors.

unmount -f /path/to/busy-nfs-mount
showing force unmount  of a mount point

You can verify if it is successfully unmounted using the df command.

Using lsof — Find and Kill the processes using the file

The lsof (list open files) command displays a list of all open files and the processes associated with them on a specific file system, directory, or device. By default, it lists all files, shared libraries, and directories that are currently open and provides as much information as possible about each of them.

We can use lsof command to find PID (process id) corresponding to our mount point and then kill that process.

Use the following lsof command to list processes using the mount point.

lsof /media/dsk
or
lsof  | grep '/media/dsk'
lsof showing processes using the file on the mounted disk

The output shows that the user linuxopsys has two bash processes with PIDs 4255 and 4335 using /media/dsk. 

Once these two programs are stopped the device is no longer busy.

Once you make sure its safe to kill the process, run the following kill command:

kill -9 4255
kill -9 4335

If no more processes tide to the mount point, you initiate umount command.

kill processes using the file on the mounted filesystem

Using fuser —  Kill processes accessing the file

fuser command in Linux helps to identify the processes which are accessing sockets or files on filesystems.

Use fuser command with -m option which lists all the processes accessing the files or mount point on the file system. You can add -v option for verbose.

The following example displays all the processes accessing the file system /media/dsk along with their process ids arranged in a tabular format.

fuser -mv /media/dsk
fuser command showing processes using the file

Now you found the processes which are using the file on the mounted filesystem. You can use kill command to terminate those processes.

You can add -k option to kill processes in a single command, so you can avoid one step.

fuser -kmv /media/dsk
fuser kill the processes using -k option

Lazy unmount

Lazy unmounting is used to unmount the mount point from the Linux filesystem hierarchy. The command removes all references to the detached file system as soon as it is no longer busy. Once no processes are accessing the unmounted file system, the umount command executes and actually detaches the file system. 

Lazy unmounting a mount point is beneficial when we don’t want to unexpectedly kill the process which are accessing the file systems as this may lead to loss of data or may corrupt the file systems. 

For example, when you are copying a file from the mounted flash drive to linux machine and need to unmount the mounted device at the same time so that you don’t need to actively check the status of the file transfer, you can execute a lazy unmount on the flash drive so that once the operation to copy the file is complete, the system automatically detaches the mount point of the flash drive.

To lazy unmount use -l option followed by the mount path:

umount -l <path_to_mount_point>
lazy unmount of a mounted device /media/dsk

Conclusion

In this guide, we learned how to fix when you encounter umount target is busy in Linux. We have explained solutions using force unmount, detaching busy device by finding and kill the processes, and finally lazy mount.

Thanks for reading, please leave your feedback and suggestions in the comment section.

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • Desktop Environments
  • [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

  1. Angry [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

    So right now I’m trying to make a bootable Ubuntu flash drive to impress my friends, and so far it seemed to work, until when I was trying to unmount my flash drive from /cdrom but i come across the error

    Code:

    Error unmounting /dev/sdb1: target is busy (udisks-error-quark,, 14)

    What I’ve seen is that I need to unmount the drive or else I wont be able to install it directly on the flash drive.

    If you all need me to type in something in terminal I’m happy to.

    Any support would help. Thanks!


  2. Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

    If any process is using any files or sitting with a PWD inside a directory on the flash drive, then it will be «busy» and cannot be umounted.

    If you want help making a live-boot flash device, there is a how-to page just for that.
    If you want help umounting storage (umount is the command, not unmount), it cannot be in use. Certain file systems will always be in use — like the boot and OS partitions. The only way to access them when the partition(s) aren’t mounted is to boot from alternate media — an SSD, HDD, flash disk, USB disk, CDROM, DVD, something else.


  3. Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

    Then how can I install it on the flash drive if I can’t unmount the drive?


  4. Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

    Quote Originally Posted by geek04
    View Post

    Then how can I install it on the flash drive if I can’t unmount the drive?

    This command forced an unmount for me. NOTE — it is umount NOT unmount.
    umount -l /PATH/OF/BUSY-DEVICE ….in my case umount -l /dev/sdc

    Next I ran the Ubuntu utility called simply «Disks» it came with Ubuntu and is very powerful.
    Start it with the unmounted drive plugged in. It will show the drive. Look for the gear wheels
    just underneath the drive, click on them and you can select «Check Filesystem» and «Repair
    Filesystem». I had to reboot the drive a few times after «Repair» but it worked.


  5. Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

    @geek04
    One stop application for installing distros on USB drives is mkusb
    Here is a very good tutorial on it….
    https://ubuntuforums.org/showthread.php?t=1958073
    It is the only application I have used for the past several years. Never had any issues with it.


  6. Re: [ubuntu] error unmounting /dev/sdb1: target is busy (udisks-error-quark, 14)

    Quote Originally Posted by geek04
    View Post

    Then how can I install it on the flash drive if I can’t unmount the drive?

    Use a different flash drive?

    gnome-disks might work, but few experts trust it. Be very careful. Please.


Bookmarks

Bookmarks


Posting Permissions

Понравилась статья? Поделить с друзьями:
  • Ошибка отключения mi band 3
  • Ошибка открытия бд недопустимое имя столбца operator id
  • Ошибка отклонения действия
  • Ошибка открытия бд недопустимое имя объекта prooms орион про
  • Ошибка отказ едс ман тга