admin avatar

Mount: special device /dev/sdb1 does not exist error resolution record

🕞 by admin

The following error occurred while mounting the hard disk partition

mount: special device /dev /sdb1 does not exist

This means that the sdb1 device does not exist. . .

Repartition the hard drive

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
fdisk /dev/sdb

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): d
No partition is defined yet!
Could not delete partition 1

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-1953525167, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-1953525167, default 1953525167):

Created a new partition 1 of type 'Linux' and of size 931.5 GiB.

Command (m for help): p
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 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
Disklabel type: dos
Disk identifier: 0x8e61971e

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1        2048 1953525167 1953523120 931.5G 83 Linux


Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Restricted mounting the partition, and then the following error appeared

mount: unknown filesystem type 'ddf_raid_member

Explain that the hard disk has been configured with soft RAID before, check the soft RAID status

cat /proc/mdstat

The following information is displayed, but in fact the server itself is not configured with soft RAID, so just delete the soft RAID

1
2
3
4
5
md126: inactive sdb [0]
       976224256 blocks super external: / md127 / 0

md127: inactive sdb [0] (S)
       538328 blocks super external: ddf

Remove the system's soft RAID

1
2
3
4
usre @ demo: ~ # mdadm -S /dev/md126
mdadm: stopped / dev / md126
user @ demao: ~ # mdadm -S /dev/md127
mdadm: stopped /dev/md127

Restrict the partition to a certain directory,

mount /dev sdb1/demo

Mount /dev/sdb1 to the demo folder of the root directory

Use df /home/data to view the partitions mounted on the directory

💘 相关文章

写一条评论