ad

管理磁盘分区的 Linux sfdisk 命令示例-英雄云拓展知识分享

匿名投稿 284 2024-02-01

【摘要】 如果您是系统管理员,那么管理 Linux 服务器的硬盘分区是一项关键任务。在本教程中,我们将重点介绍如何使用 sfdisk 命令行实用程序来管理您的硬盘分区。

如果您是系统管理员,那末管理 Linux 服务器的硬盘分区是一项关键任务。

在本教程中,我们将重点介绍如何使用 sfdisk 命令行实用程序来管理您的硬盘分区。

虽然 sfdisk 类似于fdisk,但少量有分区操作活动在 sfdisk 中非常容易履行。举例来看,您可使用 sfdisk 以非交互方式创建新分区。

本教程介绍了以下 sfdisk 活动:

  1. 查看现有磁盘分区
  2. 更改显示单位(以 MB 为单位的显示大小)
  3. 创建新磁盘分区(交互方法)
  4. 验证分区表一致性
  5. 显示总分区大小
  6. 将磁盘分区详细信息转储到文本文件
  7. 从文本文件创建新分区(非交互方法)
  8. 显示扩大分区详细信息
  9. 显示磁盘几何以进行调试
  10. 显示所有磁盘分区类型
  11. 仅操作单个磁盘分区
  12. 验证的试运行模式
  13. 将特定分区标记为可引导
  14. 更改分区类型
  15. 从 Shell 脚本创建新分区(非交互方法)

1.查看现有磁盘分区

使用 -l 选项,您可以查看所有磁盘分区。-l 代表列表。

管理磁盘分区的 Linux sfdisk 命令示例-英雄云拓展知识分享

默许情况下,这将显示系统上所有磁盘的分区。

# sfdisk -l

Disk /dev/sda: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sda1 * 0+ 1044- 1045- 8387584 83 Linux

/dev/sda2 0 - 0 0 0 Empty

/dev/sda3 0 - 0 0 0 Empty

/dev/sda4 0 - 0 0 0 Empty

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

在上面:

  • 它显示 sda 和 sdf 装备的分区。
  • sda 只有一个分区。即sda1。但是,-l 选项仍将始终显示所有 4 个主分区信息。由于在本例中,sda 只有一个分区(即 sda1),其余 3 个分区(sda2、sda3、sda4)将在最后一列显示“Empty”。
  • 装备 sdf 没有任何分区。即还没有在此装备上创建任何内容。因此,这种情况下,它没有列出此装备的任何内容。

您还可以经过传递装备名称来查看特定装备的磁盘分区,以下所示。

# sfdisk -l /dev/sdf

除 -l,您还可使用 –list,以下所示。

sfdisk --list

sfdisk --list /dev/sdf

如果您是管理硬盘的新手,您可能还想了解如何使用常规受信任的 fdisk 命令:7 Linux fdisk 命令示例管理硬盘分区

2.更改显示单位(显示大小以MB为单位)

默许情况下,sfdisk 将以块为单位显示大小。在上面的 sfdisk -l 输出中,查看名为“#blocks”的列。

但是,如果要以 MB 为单位显示大小,请使用 -u 选项,以下所示。-u 代表单位。您必须指订单位类型。在本例中,我们指定的单位类型是 M(即 MB)

-uM 选项会将上述输出中的“#cyls”列替换为“MiB”(以 MB 为单位的大小),以下所示。

# sfdisk -l -uM

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End MiB #blocks Id System

/dev/sdf1 0+ 8032- 8033- 8225279+ 83 Linux

/dev/sdf2 8032+ 8189- 157- 160650 83 Linux

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

以下是您可以指定的不同单位类型:

  • M 代表 MB
  • C 代表气缸数(这是默许值)
  • S 表示扇区数
  • B 表示块的数量(这也与#cylinders 一起显示在默许输出中)

# sfdisk -l -uM

# sfdisk -l -uC

# sfdisk -l -uS

# sfdisk -l -uB

3.创建新的磁盘分区(交互方法)

在以下示例中,我们将使用一个空硬盘 (sdf) 并使用 sfdisk 在其上创建分区。

# sfdisk /dev/sdf

以下是将上述命令的输出分解为多个部份,以便于理解。

首先,它会检查 sdf 以确保它当前没有被挂载或被其他人使用。

Checking that no-one is using this disk right now ...

OK

接下来,它将显示此装备上确当前分区信息。从这里可以看出,至今为止 sdf 装备上没有分区。

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

sfdisk: /dev/sdf: unrecognized partition table type

Old situation:

sfdisk: No partitions found

接下来,它会要求您输入所有 4 个主分区的分区大小。即便您只想创建一个分区,它也会为所有主分区提示您 4 个不同的时间。

在下面的:

  • 在这个例子中,我喜欢创建两个分区。
  • 因此,这种情况下,当它提示输入“/dev/sdf1 :”时,我正在创建第一个分区。在这里,我输入了“0 1024”。0 是柱面的开始,1024 是第一个分区的柱面结束。
  • 接下来,当它提示输入“/dev/sdf2 :”时,我正在创建第2个分区。在这里,我只是按下回车键,它将占用所有剩余空间并创建第2个分区。
  • 接下来,我只是为 sdf3 和 sdf4 按下回车键。由于 sdf 上没有剩余空间,因此它将为 Empty,以下所示。
  • 另外,请注意,默许情况下,它会将分区创建为“Linux”类型。如果要将其更改成不同的类型,则应指定类型。

Input in the following format; absent fields get a default value.

<start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>

Usually you only need to specify <start> and <size> (and perhaps <type>).

/dev/sdf1 :0 1024

/dev/sdf1 0+ 1023 1024- 8225279+ 83 Linux

/dev/sdf2 :

/dev/sdf2 1024 1043 20 160650 83 Linux

/dev/sdf3 :

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 :

/dev/sdf4 0 - 0 0 0 Empty

现在,sfdisk 将显示它将创建的分区。以下所示,它将创建两个分区(sdf1 和 sdf2)。

New situation:

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 1023 1024- 8225279+ 83 Linux

/dev/sdf2 1024 1043 20 160650 83 Linux

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

Warning: no primary partition is marked bootable (active)

This does not matter for LILO, but the DOS MBR will not boot this disk.

最后,它会要求确认。如果您犯了一个毛病并且不想创建上述分区,请键入“q”退出。在这里,我输入了 y 来创建这两个新分区。

Do you want to write this to disk? [ynq] y

Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)

to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

最后,我验证了使用 sfdisk -l 成功创建了分区,以下所示。

# sfdisk -l /dev/sdf

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 1023 1024- 8225279+ 83 Linux

/dev/sdf2 1024 1043 20 160650 83 Linux

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty


4.验证分区表一致性

使用 -V(大写 V)选项对分区表履行一致性检查。V代表验证。

如以下输出所示,当一切正常时它会说“OK”。这也将显示任何正告消息。

# sfdisk -V

Warning: partition 1 does not end at a cylinder boundary

/dev/sda: OK

Warning: no primary partition is marked bootable (active)

This does not matter for LILO, but the DOS MBR will not boot this disk.

/dev/sdf: OK

您还可以仅验证特定装备,以下所示。

# sfdisk -V /dev/sdf

另外,您可以组合 V 和 l 选项,以下所示。

sfdisk -lv

如果您在 shell 脚本中履行验证,那末您可使用 -q 选项和 V。q 代表安静。在这类情况下,它不会显示任何输出。但是,您可以检查命令的状态以检查一致性检查是经过还是失败,以下所示。

# sfdisk -Vq

# echo $?

0

如果要检查磁盘内容本身的一致性,请使用以下方法:10 Linux Fsck 命令示例检查和修复文件系统

5.显示总分区大小

要显示包括所有分区的磁盘总大小,请使用 -s 选项。-s 代表大小。

这将以块数显示总分区大小。

默许情况下,这将显示系统上每一个硬盘的总分区大小。另外,它将显示系统上所有磁盘的总大小,以下所示。

# sfdisk -s

/dev/sda: 8388608

/dev/sdf: 8388608

total: 16777216 blocks

您还可以指订单个硬盘(或)分区,以下所示。

# sfdisk -s /dev/sdf

8388608

# sfdisk -s /dev/sdf1

1654694

6. 将磁盘分区详细信息转储到文本文件

sfdisk 还为您提供了将所有磁盘分区信息转储到文本文件中的选项。

为此,就某些情况而言,请使用 -d 选项。-d 代表转储。

默许情况下,-d 会将输出转储到屏幕上。这将包括系统上所有装备的分区信息。

# sfdisk -d

您还可以转储特定装备的分区信息,以下所示。

# sfdisk -d /dev/sda

要将其转储到文本文件,请履行以下操作。这会将 sda 的分区信息转储到 sda.out 文本文件中。

# sfdisk -d /dev/sda > sda.out

# cat sda.out

# partition table of /dev/sda

unit: sectors

/dev/sda1 : start= 2048, size= 16775168, Id=83, bootable

/dev/sda2 : start= 0, size= 0, Id= 0

/dev/sda3 : start= 0, size= 0, Id= 0

/dev/sda4 : start= 0, size= 0, Id= 0

7.从文本文件创建新分区(非交互方法)

-d 选项的美好的地方在于,您可以获得特定装备的分区转储,并使用它在另外一台装备上创建类似的分区转储。

举例来看,如果要将 sda 装备上确当前分区复制到 sdf 装备上,则可使用 -d 选项,以下所示。

首先,将前面示例中所示的 sda 装备转储到 sda.out 文件中。

在上面的例子中,我们看到我们在 sda 装备上有一个分区。

现在,在 sdf 装备上,至今为止我们有两个分区。

# sfdisk -l /dev/sdf

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 499 500- 4016249+ 83 Linux

/dev/sdf2 500 1043 544 4369680 83 Linux

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

现在,使用上一个示例中的 sda.out 文件,并使用它在 sdf 装备上创建类似的分区,以下所示。

# sfdisk /dev/sdf < sda.out

上述命令将使用 sda.out 文件中的分区信息,并使用它在 sdf 上自动创建新分区,而无需询问用户的任何输入,以下所示。

Checking that no-one is using this disk right now ...

OK

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Old situation:

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 499 500- 4016249+ 83 Linux

/dev/sdf2 500 1043 544 4369680 83 Linux

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

New situation:

Units: sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System

/dev/sdf1 * 2048 16777215 16775168 83 Linux

/dev/sdf2 0 - 0 0 Empty

/dev/sdf3 0 - 0 0 Empty

/dev/sdf4 0 - 0 0 Empty

Warning: partition 1 does not end at a cylinder boundary

Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)

to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

现在,正如您从以下输出中看到的那样,sdf 有一个新分区,类似于 sda。

# sfdisk -l

Disk /dev/sda: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sda1 * 0+ 1044- 1045- 8387584 83 Linux

/dev/sda2 0 - 0 0 0 Empty

/dev/sda3 0 - 0 0 0 Empty

/dev/sda4 0 - 0 0 0 Empty

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 * 0+ 1044- 1045- 8387584 83 Linux

/dev/sdf2 0 - 0 0 0 Empty

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

8.显示扩大分区详细信息

x 代表扩大分区。当您将 x 与 l 组合在一起时,它还将显示非主扩大分区,以下所示。

# sfdisk -lx /dev/sdf

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 205 206- 1654694+ 83 Linux

/dev/sdf2 206 411 206 1654695 83 Linux

/dev/sdf3 412 514 103 827347+ 82 Linux swap / Solaris

/dev/sdf4 515 1043 529 4249192+ 5 Extended

/dev/sdf5 515+ 617 103- 827347 83 Linux

- 618 1043 426 3421845 5 Extended

- 515 514 0 0 0 Empty

- 515 514 0 0 0 Empty

/dev/sdf6 618+ 1043 426- 3421844+ 83 Linux

- 618 617 0 0 0 Empty

- 618 617 0 0 0 Empty

- 618 617 0 0 0 Empty

您还可以在创建新分区时使用 -x 选项,在这类情况下,sfdisk 将要求(或期望)它们的输入描写符。

9. 显示磁盘几何以进行调试

当您调试与分区表相干的任何问题时,您应当验证的一件事是装备上的分区表信息是不是与内核所理解的相同。

经过直接读取分区表来验证内核对装备几何形状的想法是不是与装备的真实几何形状相同是一个好主张。

-G 选项(大写G)将经过直接读取分区表来显示装备的真实几何形状,以下所示。

# sfdisk -G

/dev/sda: 1044 cylinders, 255 heads, 63 sectors/track

/dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

-g 选项(小写 g)将显示内核对装备几何形状的想法。

# sfdisk -g

/dev/sda: 1044 cylinders, 255 heads, 63 sectors/track

/dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

在这个例子中,两个输出都像它应当的那样匹配。如果这不匹配,则有一些问题。

10.显示所有磁盘分区类型

要查看使用 sfdisk 创建新分区时可使用的所有支持的分区类型,请使用 -T 选项。T代表类型(即分区类型)。

这将显示分区类型 ID 和描写性名称。创建分区时,您将指定分区类型 ID。举例来看,使用 82 作为交换分区的类型。

# sfdisk -T

Id Name

0 Empty

1 FAT12

2 XENIX root

3 XENIX usr

4 FAT16 <32M

5 Extended

6 FAT16

..

..

82 Linux swap / Solaris

83 Linux

84 OS/2 hidden C: drive

85 Linux extended

86 NTFS volume set

87 NTFS volume set

88 Linux plaintext

8e Linux LVM

关于交换空间:使用 dd、mkswap 和 swapon 添加交换空间的 2 种方法

11. 仅操作单个磁盘分区

您可使用 -N 选项来操作特定的磁盘分区。-N 代表数字(即分区号)。

您可使用它在已有其他分区的现有磁盘上创建一个新分区。

在以下示例中,在 sdf 装备中,我们已有一个分区。但是,我们要创建第2个分区。

# sfdisk /dev/sdf -N2

Checking that no-one is using this disk right now ...

OK

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Old situation:

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 511 512- 4112639+ 83 Linux

/dev/sdf2 0 - 0 0 0 Empty

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

Input in the following format; absent fields get a default value.

<start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>

Usually you only need to specify <start> and <size> (and perhaps <type>).

/dev/sdf2 :512 1024

Warning: given size (1024) exceeds max allowable size (532)

/dev/sdf2 :512 532

/dev/sdf2 512 1043 532 4273290 0 Empty

New situation:

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 511 512- 4112639+ 83 Linux

/dev/sdf2 512 1043 532 4273290 0 Empty

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

Warning: no primary partition is marked bootable (active)

This does not matter for LILO, but the DOS MBR will not boot this disk.

Do you want to write this to disk? [ynq] y

Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)

to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

在上面:

  • 我们使用 -N2 选项仅操作第2个分区。
  • 这意味着,sfdisk 将只要求您提供 sdf2 的分区信息,如上所示。
  • 这不会修改现有的 sdf1 分区。
  • 另外,这不会提示您提供有关 sdf3 和 sdf4 的信息

12. 验证的试运行模式

在您真正创建新分区或更改分区表上的任何信息之前,您需要确保您所具有的命令的语法是不是一切正常。

在这类情况下,最好使用 -n 选项,它会真正完成所有动作而不做任何事情。

-n 选项是一个试运行选项,它将履行命令应当履行的任何操作,但不会保存任何内容或更改任何内容。

举例来看,当您更改分区类型时,可使用 -n 选项,该选项将经过命令但不会真正更改任何内容,以下所示。

# sfdisk -n --change-id /dev/sdf 1 82

sfdisk: -n flag was given: Nothing changed

您也能够在创建新分区时使用它,以下所示。这将经过命令并在输出中显示所有内容,但不会真正创建新分区。

sfdisk -n /dev/sdf < sda.out

13. 将特定分区标记为可引导

使用 -A 选项将特定分区标记为引导分区。-A 代表激活。

以下示例将第2个分区 (sdf2) 激活为活动分区(即标记为引导)。请注意,如果此装备上的任何其他分区 (sdf) 已标记为引导,则它们现在将被取消标记。

# sfdisk -A2 /dev/sdf

Done

正如您从以下输出中看到的,只有 sdf2 处于活动状态。第 2 列(即 Boot)中的“*”表示这被标记为引导分区。

# sfdisk -l /dev/sdf

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 511 512- 4112639+ 83 Linux

/dev/sdf2 * 512 1043 532 4273290 0 Empty

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

14.更改分区类型

您可以更改现有分区的分区类型。

首先,使用 –print-id 选项显示特定分区的分区类型。以下命令将显示 sdf1 的分区类型。这里输出中的 83 表示 sdf1 是 Linux 分区类型。

# sfdisk --print-id /dev/sdf 1

83

以下输出 0 表示 sdf2 分区当前为空。

# sfdisk --print-id /dev/sdf 2

现在,使用以下所示的 –change-id 选项来更改分区装备的分区类型。

在本例中,我们将 sdf2 分区的分区类型更改成 83(即 Linux 分区)

# sfdisk --change-id /dev/sdf 2 83

Done

正如您从以下输出中看到的,现在 sdf2 设置为 Linux 分区类型(.ie 查看最后一列“System”)

# sfdisk -l /dev/sdf

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 511 512- 4112639+ 83 Linux

/dev/sdf2 * 512 1043 532 4273290 83 Linux

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

15. 从 Shell 脚本创建新分区(非交互方法)

sfdisk 的一大好处是您可以从命令行即时创建分区,而无需与 sfdisk 进行任何交互。

当您想从 shell 脚本自动创建分区时,这非常有用。

至今为止,正如您从以下输出中看到的那样,sdf 装备当前是空的。这没有任何分区。

# sfdisk -l /dev/sdf

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0 - 0 0 0 Empty

/dev/sdf2 0 - 0 0 0 Empty

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

现在,履行以下命令,它将使用下面提供的值自动创建3个分区(sdf1、sdf2、sdf3)。

# sfdisk /dev/sdf <<EOF

0,512

,512

;

;

EOF

在上面:

  • 对所有 4 个主分区,上述输入中应当有 4 行。
  • 第一行表示它应当从第一个柱面开始直到 512 创建第一个分区(即 sdf1)
  • 第2行表示它应当从最后一个可用柱面作为第一个柱面开始,并从那里使用 +512 个柱面来创建第2个分区(即 sdf2)
  • 第3行有分号,表示使用默许值,不提示用户输入第3个分区。在这类情况下,它将使用磁盘上所有剩余的柱面并创建第3个分区(即 sdf3)
  • 第4行有分号,表示使用默许值,不提示用户对第 4 个分区进行任何操作。在这类情况下,由于没有剩余空间,它不会为第 4 个分区(即 sdf4)创建任何内容

以下是上述 sfdisk 命令的输出。请注意,这其实不要求用户提供任何输入。

Checking that no-one is using this disk right now ...

OK

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Old situation:

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0 - 0 0 0 Empty

/dev/sdf2 0 - 0 0 0 Empty

/dev/sdf3 0 - 0 0 0 Empty

/dev/sdf4 0 - 0 0 0 Empty

New situation:

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 511 512- 4112639+ 83 Linux

/dev/sdf2 512 1023 512 4112640 83 Linux

/dev/sdf3 1024 1043 20 160650 83 Linux

/dev/sdf4 0 - 0 0 0 Empty

Warning: no primary partition is marked bootable (active)

This does not matter for LILO, but the DOS MBR will not boot this disk.

Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)

to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

验证是不是使用提供的值自动创建了3个分区。

# sfdisk -l /dev/sdf

Disk /dev/sdf: 1044 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System

/dev/sdf1 0+ 511 512- 4112639+ 83 Linux

/dev/sdf2 512 1023 512 4112640 83 Linux

/dev/sdf3 1024 1043 20 160650 83 Linux

/dev/sdf4 0 - 0 0 0 Empty


🌟 选择英雄云hpapaas 开启自动化、智能化企业转型未来 🌐       >>>>作为一款提供hpaPaaS平台服务的英雄云,有什么优势呢?面对数字化转型的挑战与机遇,选择一个适合自己企业的高度信息化、智能化和自动化的管理系统尤为重要。英雄云是一个值得考虑的选择。英雄云提供了一系列独特的优势,使其成为企业智能管理的首选。下面是英雄云的八大优势

1. 无需代码操作 💻

: 英雄云的平台无需编程知识,即可操作自定义的管理系统:ERP系统、CRM系统、进销存系统、人事行政OA系统、WMS系统等。这意味着用户无需拥有编程技能,也能轻松操控自己的系统。

2. 高度可定制性 🛠️

: 英雄云允许用户根据自己的业务需求、企业规模、成员人数、所需系统等等,进行高度定制服务;三大业务引擎:云表单(进阶版Excel)、工作流程(智能自动触发流程)以及仪表盘(可视化报表),帮助企业进行更简易的业务操作。

3. 减免重复工作 🔁

:无论是数据录入、审批流程还是报表生成,都可以轻松自动化,使员工能够专注于更有价值的任务。这种减免重复工作的方式不仅提高了工作效率,还降低了错误发生的可能性,为企业节省了时间和资源。

4. 生态系统集成 🌍

: 英雄云与其他常用企业应用和工具具有良好的生态系统集成能力,可以轻松集成与第三方系统,如财务软件、邮件服务等,实现全面的业务支持。

5. 数据分析与智能决策 📊

: 英雄云提供先进的数据分析工具如数据加工工厂,帮助用户更好地理解业务趋势和数据。这使得企业能够做出更明智的战略决策,优化业务流程。

6. 持续更新和改进

: 英雄云不断进行系统的更新和改进,以适应不断变化的业务环境和技术趋势。这意味着您始终能够使用最新的功能和性能提升。

7. 多样化部署 🌐

: 英雄云提供了多样化的部署选项,用户可以根据自身需求选择合适的部署方式,无需自主运维。无论是选择云端部署、私有云部署还是本地部署,英雄云都能提供灵活的解决方案。这意味着用户无需担心硬件维护、系统更新等问题,能够更专注于业务运营,降低了IT运营成本和风险。

8. 免费版本 💸

: 英雄云提供免费版本,用户可以在免费版本中获得一定数量的表单数据量和企业数据总量,为小型企业提供了经济实惠的选择。

选择英雄云作为您的数字化管理系统,将带来高度的灵活性、可定制性和效率提升。不管您的企业规模如何,英雄云都能满足您的需求,助力您的仓库管理更上一层楼。不妨注册一个英雄云账户,亲自体验这些优势,并让您的企业管理更加智能化和高效化


免责声明:

本网址(www.yingxiongyun.com)发布的材料主要源于独立创作和网友匿名投稿。此处提供的所有信息仅供参考之用。我们致力于提供准确且可信的信息,但不对材料的完整性或真实性作出任何保证。用户应自行验证相关信息的正确性,并对其决策承担全部责任。对于由于信息的错误、不准确或遗漏所造成的任何损失,本网址不承担任何法律责任。本网站所展示的所有内容,如文字、

上一篇:【图象几何】基于matlab GUI图象空间变换(仿射变换)【含Matlab源码 841期】-英雄云拓展知识分享
下一篇:华为云之ECS云产品快捷入门
相关文章

 发表评论

暂时没有评论,来抢沙发吧~

×