- Joined
- May 15, 2006
If you found this page through a search, please see post #9 for a fix!
------
Hello all,
I've been working on this issue for almost a solid day and I can't figure out how to format a single partition. It is almost silly since it is easy, but I can't seem to get it to go through. If I issue the following command, I get this:
Searching the internet comes up with a few solutions, such as a RAID device running or the drive is being mounted. The issue is, neither of these are true and the partition isn't being mounted at all. Here is what I'm seeing on my side for information:
mount
umount /dev/sda3
lvdisplay
fdisk -l
mdadm --detail --scan
lvs
I can't seem to find why it thinks the drive is being used. I even tried this in single user mode and got the same message. I know that I can fire up a live disk and do this without issue, but I know there is a way to do it without resorting to that. I've gone through well over five pages of Google search results and have turned up empty handed. The partition is currently unformatted and not used by the operating system at all. Here is how the drive is being partitioned:
I'm unable to perform this format with command line utilities (preferred) or UI based one such as GParted. I'm able to delete /dev/sda3 then create it all at once, but it still gives the same error.
"/dev/sda1" is the Windows 7 recovery partition.
"/dev/sda2" is the actual Windows 7 partition
"/dev/sda3" will be the Linux EXT4 partition, once I can format it.
------
Hello all,
I've been working on this issue for almost a solid day and I can't figure out how to format a single partition. It is almost silly since it is easy, but I can't seem to get it to go through. If I issue the following command, I get this:
Code:
[root@thideras-main ~]# mkfs.ext4 /dev/sda3
mke2fs 1.41.12 (17-May-2010)
/dev/sda3 is apparently in use by the system; will not make a filesystem here!
mount
Code:
[root@thideras-main ~]# mountftp://thideras@
/dev/mapper/vg_thiderasmain-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sdb1 on /boot type ext4 (rw)
/dev/mapper/vg_thiderasmain-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
gvfs-fuse-daemon on /home/thideras/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=thideras)
Code:
[root@thideras-main ~]# umount /dev/sda3
umount: /dev/sda3: not mounted
Code:
[root@thideras-main ~]# lvdisplay
/dev/md125: read failed after 0 of 4096 at 0: Input/output error
--- Logical volume ---
LV Name /dev/vg_thiderasmain/lv_root
VG Name vg_thiderasmain
LV UUID xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx
LV Write Access read/write
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 1600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg_thiderasmain/lv_home
VG Name vg_thiderasmain
LV UUID xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx
LV Write Access read/write
LV Status available
# open 1
LV Size 58.94 GiB
Current LE 1886
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/vg_thiderasmain/lv_swap
VG Name vg_thiderasmain
LV UUID xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx
LV Write Access read/write
LV Status available
# open 1
LV Size 9.81 GiB
Current LE 314
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
Code:
[root@thideras-main ~]# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb7d4408b
Device Boot Start End Blocks Id System
/dev/sda1 * 16065 224909 104422+ 7 HPFS/NTFS
/dev/sda2 224910 615980294 307877692+ 7 HPFS/NTFS
/dev/sda3 615981056 1953523711 668771328 83 Linux
Disk /dev/sdb: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb09031cc
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 1026047 512000 83 Linux
/dev/sdb2 1026048 250068991 124521472 8e Linux LVM
Disk /dev/dm-0: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 10.5 GB, 10536091648 bytes
255 heads, 63 sectors/track, 1280 cylinders, total 20578304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 63.3 GB, 63283658752 bytes
255 heads, 63 sectors/track, 7693 cylinders, total 123600896 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table
Code:
[root@thideras-main ~]# mdadm --detail --scan
ARRAY /dev/md127 metadata=imsm UUID=d399cac8:be79920b:43eab79d:e93761b1
mdadm: cannot open /dev/md/RAID0_0: No such file or directory
Code:
[root@thideras-main ~]# lvs
/dev/md125: read failed after 0 of 4096 at 0: Input/output error
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lv_home vg_thiderasmain -wi-ao 58.94g
lv_root vg_thiderasmain -wi-ao 50.00g
lv_swap vg_thiderasmain -wi-ao 9.81g
I'm unable to perform this format with command line utilities (preferred) or UI based one such as GParted. I'm able to delete /dev/sda3 then create it all at once, but it still gives the same error.
"/dev/sda1" is the Windows 7 recovery partition.
"/dev/sda2" is the actual Windows 7 partition
"/dev/sda3" will be the Linux EXT4 partition, once I can format it.
Last edited: