Pages

Monday, December 12, 2016

Reformatting the one of the drive in the hard disk , which has boot loader



Reformatting the one of the drive in the hard disk , which has boot loader








To fix below error : “/dev/sda1 is apparently in use by the system; will not make a filesystem here!”


[root@ecmtest2 /]# mkfs.ext3 /dev/sda1
mke2fs 1.43-WIP (20-Jun-2013)
/dev/sda1 is apparently in use by the system; will not make a filesystem here!






System is not allowing to format one drive part of same hard disk which has Boot loader


Hard disk : /dev/sda
File mount / :
/dev/sda4 on / type ext4
/dev/sda3 on /boot type ext4 (rw)
/dev/sda1 on vfat : that should be changed to ext3


1. Get Disk Mapper by fdisk command



    fdisk -l /dev/sda1


/dev/sda1 1 121602 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/OVM_SYS_REPO_PART_35000c50092db5a04: 993.9 GB, 993933656064 bytes


Here mapper ID : OVM_SYS_REPO_PART_35000c50092db5a04

2.remove the mapper



     dmsetup remove OVM_SYS_REPO_PART_35000c50092db5a04e


3.Run the format command again





    mkfs.ext4 /dev/sda1



4.Edit the /etc/fstab 

No comments:

Post a Comment