windows11磁盘标签修改无效

windows11磁盘标签修改无效,第1张

修改磁盘标签无效的一般原因有以下几种:

1. 磁盘可能是加密的NTFS磁盘,你需要先解锁它。

2. 文件系统可能是NTFS外部存储空间,可能是使用第三方软件或者硬件设备创建的,这种情物岁燃况下,你需要先选择正确的文件系统,然后重新格式化磁盘才能正常修改磁盘标签

3. 如果你尝试修改UDF格雀桥式的磁盘,那么你可能会发现,即使你已经修改了标签,也不会生效,这是因为UDF格式的磁盘不支持更改标签。

4. 如果是网络磁盘,那么你可能需要选择特定的文件系罩虚统,重新格式化磁盘才能正常修改磁盘标签。

一、fdisk-l

这个命令会列出当前分区和配置。

[root@cql ~]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x000e3d27

Device Boot Start End Blocks Id System

/dev/sda1 1 914 7340032 83 Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2 914 1437 4194304 82 Linux swap / Solaris

/dev/sda3 * 1437 2611 9436160 83 Linux

Disk /dev/sdb: 10.7 GB, 10737418240 bytes

255 heads, 63 sectors/track, 1305 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

/dev/sdb就是我新添加的硬盘拿棚

二、格式化:

[root@cql ~]# mkfs -t ext4 /dev/sdb

mke2fs 1.41.12 (17-May-2010)

文件系统标签=

*** 作系统:Linux

块大小=4096 (log=2)

分块大小=4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

591008 inodes, 2361547 blocks

118077 blocks (5.00%) reserved for the super user

第一个数据块=0

Maximum filesystem blocks=2420113408

73 block groups

32768 blocks per group, 32768 fragments per group

8096 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

正在写入inode表: 完成

Creating journal (32768 blocks): 完成

Writing superblocks and filesystem accounting information: 完成

This filesystem will be automatically checked every 29 mounts or

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

三、挂载硬盘:

新建文件夹:mkdir /data2

将硬盘挂载到data2下

mount /dev/消哪则sdb /data2

四、加入开机自动

我是通过修改缓或/etc/fstab文件,加入开机自动的,反正方法各种各样,都可以的,随自己的心情~

首先查看分区的UUID

[root@cql ~]# blkid

/dev/sda3: UUID="16046051-6a05-4e6b-b5d2-b64258f5e6d2" TYPE="ext4"

/dev/sda1: UUID="1573581f-e2d5-4f7c-a2de-da6e0eb94359" TYPE="ext4"

/dev/sda2: UUID="a0b44529-1476-4cd7-a009-51b879ba163a" TYPE="swap"

/dev/sdb1: UUID="f124b1f5-16df-4d68-bdc4-41aa08562111" TYPE="ext4"

编辑

[root@cql ~]# vi /etc/fstab

#

# /etc/fstab

# Created by anaconda on Sun Sep 17 22:40:58 2017

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

#

UUID=16046051-6a05-4e6b-b5d2-b64258f5e6d2 / ext4 defaults 1 1

UUID=1573581f-e2d5-4f7c-a2de-da6e0eb94359 /u01 ext4 defaults 1 2

UUID=a0b44529-1476-4cd7-a009-51b879ba163a swap swap defaults 0 0

tmpfs /dev/shm tmpfs defaults 0 0

devpts /dev/pts devpts gid=5,mode=620 0 0

sysfs /sys sysfs defaults 0 0

proc /proc proc defaults 0 0

UUID=f124b1f5-16df-4d68-bdc4-41aa08562111 /u01 ext4 defaults 1 2

~

"/etc/fstab" 16L, 899C written

[root@cql ~]# cat /etc/fstab

#

# /etc/fstab

# Created by anaconda on Sun Sep 17 22:40:58 2017

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

#

UUID=16046051-6a05-4e6b-b5d2-b64258f5e6d2 / ext4 defaults 1 1

UUID=1573581f-e2d5-4f7c-a2de-da6e0eb94359 /u01 ext4 defaults 1 2

UUID=a0b44529-1476-4cd7-a009-51b879ba163a swap swap defaults 0 0

tmpfs /dev/shm tmpfs defaults 0 0

devpts /dev/pts devpts gid=5,mode=620 0 0

sysfs /sys sysfs defaults 0 0

proc /proc proc defaults 0 0

UUID=f124b1f5-16df-4d68-bdc4-41aa08562111 /u01 ext4 defaults 1 2

重启,确认结果~

[root@cql ~]# reboot

Broadcast message from root@cql

(/dev/pts/3) at 21:50 ...

The system is going down for reboot NOW!

[root@cql ~]# df -hT

Filesystem Type Size Used Avail Use% Mounted on

/dev/sda3 ext3 8.9G 4.0G 4.5G 48% /

tmpfs tmpfs 931M 72K 931M 1% /dev/shm

/dev/sda1 ext3 8.9G 149M 8.3G 2% /u01

/dev/sdb1 ext3 8.9G 149M 8.3G 2% /u01


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/12207220.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-21
下一篇 2023-05-21

发表评论

登录后才能评论

评论列表(0条)

保存