简单易懂!服务器硬盘格式化步骤大揭秘 (服务器硬盘怎么格式化)

服务器硬盘格式化是一种非常重要的操作,它可以清除服务器硬盘上存储的所有数据,让服务器恢复到出厂设置,为新的使用做好准备。但是由于格式化是一种比较高级的操作,很多人可能不太清楚如何进行相关设置,下面我们就来揭秘一下服务器硬盘格式化的步骤。

1.备份重要数据

在进行服务器硬盘格式化操作之前,我们首先需要备份重要数据。因为格式化会清除所有硬盘上的数据,如果您没有备份,那就会导致您的数据无法恢复。所以,在进行服务器硬盘格式化之前,请务必备份好您的重要数据。

2.关机并插入U盘

在进行服务器硬盘格式化之前,您需要将U盘插入服务器,并将服务器关闭。然后再次打开服务器,进入BIOS设置。

3.选择优盘启动

在BIOS设置中,您需要将优盘启动选项设置为优先启动。这样,在服务器启动的时候,它会首先检查U盘是否插入,如果插入,那么服务器就会从U盘启动。

4.选择操作系统

在U盘启动之后,您将被要求选择要使用的操作系统。这通常是在安装操作系统时指定的,所以您需要确保选择正确的操作系统。

5.进行硬盘分区

在选择操作系统之后,您需要对服务器硬盘进行分区。这需要您使用分区工具来指定硬盘的大小和数量。如果您有多台硬盘,则需要为每个硬盘指定分区和容量。

6.格式化硬盘

当您完成硬盘分区之后,您就可以对服务器硬盘进行格式化了。格式化可以清除所有硬盘上的数据,并将硬盘重新划分为指定的大小和数量。在格式化过程中,请注意是否需要保留数据。

7.安装操作系统

在格式化硬盘之后,您就可以开始安装操作系统了。这通常需要您输入许多信息,例如用户名、密码、许可证密钥等。安装过程可能需要一些时间,所以请耐心等待完成。

8.恢复备份数据

如果您在格式化之前备份了数据,则可以在安装操作系统之后开始恢复备份数据。这可以通过使用备份工具或手动将备份数据复制到服务器上来完成。

以上就是服务器硬盘格式化的全部步骤。虽然格式化操作可能会对服务器造成一些影响,但这种操作非常重要,可以确保服务器能够正常运行。在进行服务器硬盘格式化操作之前,请务必备份重要数据,并确保您了解每个步骤的具体细节。

相关问题拓展阅读:

linux系统硬盘怎么格式化

LVM将一个或多个硬盘的分区在逻辑上,相当于一个大硬盘来使用,当硬盘的空间不够使用的时候,可以继续将 其它 的硬盘的分区加入其中,这样可以实现磁盘空间的动态管理,相对于普通的

磁盘分区

有很大的灵活性。那么你知道

linux系统

硬盘怎么格式化吗?我带来了linux系统硬盘格式化的具 体操 作过程,下面大家跟着我一起来学习一下吧。

  linux系统硬盘怎么格式化

  分区与格式化

  先用fdisk分区,分区完成后再用mkfs格式化并创建

文件系统

,挂载,磁盘就能使用啦。

  分区的原理:

  MBR:主引导扇区

  主分区表:64bytes,最多只能分四个主分区,每个主分区的记录(相关信息,比如分区大小,位置)在主分区表里占14bytes。

  野仿如果要建多于四个的分区,就要拿出一个主分区做为扩展分区,再在扩展分区里面进行其扮模它的分区操作。在 建扩展分区的时候会建立一张对应的扩展分区表,它记录了在这个扩展分区里的分区的相关信息;理论上它没有分区数量的限制,在扩展分区内部的分区叫做逻辑分区,如上图中的 /dev/hda5,/dev/hda6/,/dev/hda7

  格式化原理:

  在分好区后,分区里面是空的,没有任何东西。为了能让OS识别,就必须要向分区里写入相应格式的数据。比如windows的FAT32,NTFS;Linux的ext2,ext3,ext4(目前ext3格式的用的比较多,ext4还厅脊缓在实验之中,在新的Fedora上使用的就是ext4的文件系统)。

  Windows/dos常用的分区工具:fdisk/partition magic/diskpart

  Linux下常用的分区工具:

  fdisk/sfdisk:命令行工具,各种版本和环境都能使用,包含在软件包util-linux中

  diskdruid:图形化分区工具,只能在安装REDHAT系统时使用。

  下面我们开始实验:

  环境/工具:Fedora 14/256M

内存卡

;fdisk

  之一步:fdisk

  # fdisk -l /dev/sdb

  Disk /dev/sdb: 254 MB,bytes

heads, 61 sectors/track, 1016 cylinders, totalsectors

  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 identifier: 0x

  Device Boot Start End Blocks Id System

  # fdisk /dev/sdb

  Command (m for help): #在输入上面的命令后会出现左边的提示,输入m就会得到一个帮助菜单,如下:

  Command (m for help): m

  Command action

  a toggle a bootable flag

  b edit bsd disklabel

  c toggle the dos compatibility flag

  d delete a partition

  l list known partition types

  m print this menu

  n add a new partition

  o create a new empty DOS partition table

  p print the partition table

  q quit without saving changes

  s create a new empty Sun disklabel

  t change a partition’s system id

  u change display/entry units

  v verify the partition table

  w write table to disk and exit

  x extra functionality (experts only)

  #help虽然是英文的,可都很简单,在这里不再解释。

  #现在,我们正式开始分区的操作:

  Command (m for help): n #新建分区

  Command action

  e extended

  p primary partition (1-4)

  #e/p分别对应扩展分区 /主分区;我们先分四个主分区,每个50M;然后再来增加主分区或扩展分区,看会出现怎样的状况,嘿嘿。

  p #分区类型为主分区

  Partition number (1-4, default 1): 1 #分区号,在这里我们依次选择1、2、3、4

  First sector (, default 2023): #指定分区的起始扇区,一般默认,按enter键即可。

  Last sector, +sectors or +size{K,M,G} (, default): +50M #指定分区的终止扇区,根据前面的提示我们可以做出相应的选择+sectors 或 +size{K,M,G}

  Command (m for help): p #用p打印出已建好的分区列表

  Disk /dev/sdb: 254 MB,bytes

heads, 61 sectors/track, 1016 cylinders, totalsectors

  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 identifier: 0x

  Device Boot Start End Blocks Id System

  /dev/sdbLinux

  #剩下的三个分区的建立操作同上

  #分好四个主分区后的情况如下

  Command (m for help): p

  Disk /dev/sdb: 254 MB,bytes

heads, 61 sectors/track, 1016 cylinders, totalsectors

  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 identifier: 0x

  Device Boot Start End Blocks Id System

  /dev/sdbLinux

  /dev/sdbLinux

  /dev/sdbLinux

  /dev/sdb8 25+ 83 Linux

  #已经建好四个主分区啦,现在我们来看看如果再建主分区或是扩展分区的话会出现怎样的情况:

  Command (m for help): n

  You must delete some partition and add an extended partition first

  #看到了吧,不能再建分区啦!要再建分区的话必须删除some分区,再新建一个扩展分区才行。

  #现在,我们删掉一个主分区,来新建扩展分区

  Command (m for help): d #删除分区

  Partition number (1-4): 4 #选择要删除分区的分区号,我们选第四个

  Command (m for help): p #打印,如下,四个分区变成了三个!

  Disk /dev/sdb: 254 MB,bytes

heads, 61 sectors/track, 1016 cylinders, totalsectors

  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 identifier: 0x

  Device Boot Start End Blocks Id System

  /dev/sdbLinux

  /dev/sdbLinux

  /dev/sdbLinux

  #新建一个扩展分区

  #如果在没有建满三个主分的区的情况下建立扩展分区,相关选项会有些不同。

  Command (m for help): n

  Command action

  e extended

  p primary partition (1-4)

  e

  Selected partition 4

  First sector (, default): #enter,默认

  Using default value

  Last sector, +sectors or +size{K,M,G} (, default): #enter,默认,使用剩余空间

  Using default value

  Command (m for help): p

  Disk /dev/sdb: 254 MB,bytes

heads, 61 sectors/track, 1016 cylinders, totalsectors

  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 identifier: 0x

  Device Boot Start End Blocks Id System

  /dev/sdbLinux

  /dev/sdbLinux

  /dev/sdbLinux

  /dev/sdbExtended

  #接下来,我们在新建的扩展分区里再新建两个逻辑分区,因为已经有了三个主分区,这里不会再显示是建立逻辑分区还是主分区的提示!

  Command (m for help): n

  First sector (, default): #enter

  Using default value

  Last sector, +sectors or +size{K,M,G} (, default): +50M

  Command (m for help): n

  First sector (, default): #enter

  Using default value

  Last sector, +sectors or +size{K,M,G} (, default): #enter

  Using default value

  Command (m for help): p

  Disk /dev/sdb: 254 MB,bytes

heads, 61 sectors/track, 1016 cylinders, totalsectors

  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 identifier: 0x

  Device Boot Start End Blocks Id System

  /dev/sdbLinux

  /dev/sdbLinux

  /dev/sdbLinux

  /dev/sdbExtended

  /dev/sdbLinux

  /dev/sdbLinux

  #上面的列表,就是我们今天分区的成果啦!接下来保存退出,重启计算机,就可以进行下一步的mkfs操作啦!如果忘记了相关的操作命令,记得按m!!!

  Command (m for help): w #保存

  The partition table has been altered!

  Calling ioctl() to re-read partition table.

  Syncing disks.

  另:在建好分区后,我们还可以更改相关分区的文件系统类型

  #如,我们要把第二个主分区改成Linux下的交换分区,操作如下

  Command (m for help): t #更改文件系统类型

  Partition number (1-6): 2 #选择第二个分区

  Hex code (type L to list codes): L #选择要更改的文件系统编码,可以按L来查看相关编码信息。

Empty 24 NEC DOS 81 Minix / old Lin bf Solaris

FAT12 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT-

XENIX root 3c PartitionMagic 83 Linux c4 DRDOS/sec (FAT-

XENIX usr 40 VenixOS/2 hidden C: c6 DRDOS/sec (FAT-

  …………

Hidden FAT16 64 Novell Netware af HFS / HFS+ fb VMware VMFS

Hidden HPFS/NTF 65 Novell Netware b7 BSDI fs fc VMware VMKCORE

AST SmartSleep 70 DiskSecure Mult b8 BSDI swap fd Linux raid auto

b Hidden W95 FAT3 75 PC/IX bb Boot Wizard hid fe LANstep

c Hidden W95 FAT3 80 Old Minix be Solaris boot ff B

e Hidden W95 FAT1

  Hex code (type L to list codes): 82 #查找到linux swap的编码为82

  Changed system type of partition 2 to 82 (Linux swap / Solaris)

  Command (m for help): p

  …………..

  Device Boot Start End Blocks Id System

  /dev/sdbLinux

  /dev/sdbLinux swap / Solaris

  /dev/sdbLinux

  /dev/sdbExtended

  /dev/sdbLinux

  /dev/sdbLinux

  #最后别忘了保存!如果你须要的话!

  #扩展分区不能直接使用,逻辑分区只能建立在扩展分区上!

  第二步:mkfs(mkfs时分区的格式更好与fdisk设定的分区格式一致,不然…….)

  mkfs支持ext2 ext3 vfa msdos jfs reiserfs等文件系统。

  用法1:mkfs -t

  例: mkfs -t ext3 /dev/sdb2

  用法2:mkfs.

  例:mkfs,vfat /dev/sdb3

  mke2fs支持ext2/ext3文件系统

  用法:mke2fs

  例:mke2fs -j /dev/sdb5

  # 更多更具体的用法请参照相关命令的man手册

  下面,接着实验:

  例一

  # mkfs -t ext3 /dev/sdb1

  mke2fs 1.41.12 (17-May-2023)

  Filesystem label=

  OS type: Linux

  Block size=1024 (log=0)

  Fragment size=1024 (log=0)

  Stride=0 blocks, Stripe width=0 blocks

inodes,blocks

blocks (5.00%) reserved for the super user

  First data block=1

  Maximum filesystem blocks=

block groups

blocks per group, 8192 fragments per group

inodes per group

  Superblock backups stored on blocks:

, 24577, 40961

  Writing inode tables: done

  Creating journal (4096 blocks): done

  Writing superblocks and filesystem accounting information: done

  This filesystem will be automatically checked every 34 mounts or

days, whichever comes first. Use tune2fs -c or -i to override.

  例二:

  # fdisk /dev/sdb

  Command (m for help): t

  Partition number (1-6): 6

  Hex code (type L to list codes): L

Empty 24 NEC DOS 81 Minix / old Lin bf Solaris

FAT12 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT-

XENIX root 3c PartitionMagic 83 Linux c4 DRDOS/sec (FAT-

XENIX usr 40 VenixOS/2 hidden C: c6 DRDOS/sec (FAT-

FAT16

Extended 42 SFS 86 NTFS volume set da Non-FS data

FAT16 4d QNX4.x 87 NTFS volume set db CP/M / CTOS / .

HPFS/NTFS 4e QNX4.x 2nd part 88 Linux plaintext de Dell Utility

  ………

  Hex code (type L to list codes): 7

  Changed system type of partition 6 to 7 (HPFS/NTFS)

  Command (m for help): p

  Disk /dev/sdb: 254 MB,bytes

heads, 61 sectors/track, 1016 cylinders, totalsectors

  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 identifier: 0x

  Device Boot Start End Blocks Id System

  /dev/sdbLinux

  /dev/sdbLinux swap / Solaris

  /dev/sdbLinux

  /dev/sdbExtended

  /dev/sdbLinux

  /dev/sdbHPFS/NTFS

  Command (m for help): w

  The partition table has been altered!

  Calling ioctl() to re-read partition table.

  Syncing disks.

  # mkfs.ntfs /dev/sdb6

  Cluster size has been automatically set to 4096 bytes.

  Initializing device with zeroes: 100% – Done.

  Creating NTFS volume structures.

五舟服务器怎么重装格式化硬盘

.先关机,然后拔掉主机后面的电源线、网线、连接器等所有的线,才可以进喊埋信行拆机。

2.拆主机先拆盖子,一般是在主机的后面有两颗螺丝,拧掉螺丝,主机盖子是横着拉开的。

3.找到主机里面原来的硬盘,拆下,需要用螺丝刀的,

4.拆下后上面连接着很多主机里面的线,把线拔掉,

5.然后将新的硬盘连接好,不知道连接哪几条线的可以用手机拍下,对照着原本郑轮的连接,

6.然后还放进原本硬盘的位置放好,用螺丝拧紧液洞即可。

7.盖上主机盖,插上电源,新的硬盘就安装完成啦

关于服务器硬盘怎么格式化的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。


数据运维技术 » 简单易懂!服务器硬盘格式化步骤大揭秘 (服务器硬盘怎么格式化)