Operating System - Linux
1753883 Members
7257 Online
108809 Solutions
New Discussion юеВ

/dev/sdd1 is apparently in use by the system

 
Maaz
Valued Contributor

/dev/sdd1 is apparently in use by the system

/dev/sda3, /dev/sdb1, /dev/sdc1 are member of a raid-5 volume /dev/md0.

I add a new hard disk(/dev/sdd), then create a partition(/dev/sdd1) via fdisk.

now when I try make file system, I got the following error
mkfs.ext3 /dev/sdd1
mke2fs 1.38 (30-Jun-2005)
/dev/sdd1 is apparently in use by the system; will not make a filesystem here!

but when I try to make file system on /dev/dm-1 it works

following the output of 'fdisk -l'

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 530113+ 83 Linux
/dev/sda2 67 589 4200997+ 82 Linux swap / Solaris
/dev/sda3 590 30401 239464890 fd Linux raid autodetect

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 30401 244196001 fd Linux raid autodetect

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 30401 244196001 fd Linux raid autodetect

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/md0: 490.4 GB, 490423713792 bytes
2 heads, 4 sectors/track, 119732352 cylinders
Units = cylinders of 8 * 512 = 4096 bytes


Disk /dev/dm-1: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Regards
2 REPLIES 2
Jeeshan
Honored Contributor

Re: /dev/sdd1 is apparently in use by the system

you didn't partitioned the disk /dev/sdd and mark it as Linux raid autodetect and then try
a warrior never quits
Matti_Kurkela
Honored Contributor

Re: /dev/sdd1 is apparently in use by the system

I don't see any partitions on /dev/sdd; when partitioning the disk, did you forget to actually write the new partition table to the disk? (the "w" command in fdisk)

Because there are no partitions on /dev/sdd, /dev/sdd1 does not exist. Trying to access it causes an error. Apparently mkfs.ext3 does not expect that you might be trying to run it on a partition that is not there, and gives a non-sense error message.

MK
MK