对象 {path} 不是可安装的文件系统

对象 {path} 不是可安装的文件系统

我使用的是 Fedora 26,并且有 2 个磁盘。其中1个有2个分区

/dev/sdb : 30GB /dev/sdb1 : 20GB /dev/sdb2 : 10GB

我正在尝试使用以下命令安装分区: udisksctl mount -b /dev/sdb1

我收到此错误:

`Object /org/freedesktop/UDisks2/block_devices/sdb1 is not a mountable filesystem.`

我怎样才能解决这个问题?

fdisk -l

Disk /dev/sda: 25 GiB, 26843545600 bytes, 52428800 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: 0x6092c6a8

Device     Boot   Start      End  Sectors Size Id Type
/dev/sda1  *       2048  2099199  2097152   1G 83 Linux
/dev/sda2       2099200 52428799 50329600  24G 8e Linux LVM


Disk /dev/sdb: 30 GiB, 32212254720 bytes, 62914560 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: 0xb6a8a9cf

Device     Boot    Start      End  Sectors Size Id Type
/dev/sdb1           2048 41943039 41940992  20G 83 Linux
/dev/sdb2       41943040 62914559 20971520  10G 83 Linux


Disk /dev/mapper/fedora_fedora-root: 21.5 GiB, 23081254912 bytes, 45080576 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 /dev/mapper/fedora_fedora-swap: 2.5 GiB, 2684354560 bytes, 5242880 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

df-h

Filesystem                      Size  Used Avail Use% Mounted on
devtmpfs                        2.0G     0  2.0G   0% /dev
tmpfs                           2.0G     0  2.0G   0% /dev/shm
tmpfs                           2.0G  4.2M  2.0G   1% /run
tmpfs                           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/mapper/fedora_fedora-root   22G  5.4G   15G  27% /
tmpfs                           2.0G   12K  2.0G   1% /tmp
/dev/sda1                       976M  128M  781M  15% /boot
tmpfs                           393M   16K  393M   1% /run/user/1001

lsblk -o 名称,fstype

NAME                   FSTYPE
sda                    
├─sda1                 ext4
└─sda2                 LVM2_member
  ├─fedora_fedora-root ext4
  └─fedora_fedora-swap swap
sdb                    
├─sdb1                 
└─sdb2                 
sr0                    iso9660

文件-s /dev/sdb1

/dev/sdb1: data

答案1

问题解决了!

我使用mkfs.ext4 /dev/sdb1mkfs.ext4 /dev/sdb2来更改分区的文件系统类型,然后使用以下命令安装它们:

mount /dev/sdb1 /mnt
mount /dev/sdb2 /mnt2

相关内容