ROSA Linux Bugzilla – Bug 3875
jbd2 locks an unmounted file system
Last modified: 2014-03-24 18:17:14 MSK
After some time of working in Live mode I notice that I cannot format an unmounted partition:
[root@localhost live]# mkfs.ext4 /dev/sda2
mke2fs 1.42.5 (29-Jul-2012)
/dev/sda2 is apparently in use by the system; will not make a filesystem here!
Investigation shows that the partition is locked by jbd2:
[root@localhost live]# lsof | grep sda
jbd2/sda2 3982 root cwd DIR 252,0 4096 2 /
jbd2/sda2 3982 root rtd DIR 252,0 4096 2 /
jbd2/sda2 3982 root txt unknown /proc/3982/exe
Usually, this problem appears after I try to install ROSA from live system on an existing partition (not each time, unfortunately). Detailed steps:
0. Prerequisites: the hard drive contains only one partition which is ext4-formatted (and large enough to hold ROSA); one swap-formatted partition may also be present in addition to this ext4.
1. Start draklive-install.
2. In partitioning select "Use existing partitions" (the ext4-partition will be selected for the root of the target system).
3. On the next step agree to format this partition, continue installation.
4. After installation is completed (draklive-install exited), the target partition remains locked by jbd2, despite the fact that it is now unmounted.