V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  kgdb00  ›  全部回复第 1 页 / 共 4 页
回复总数  77
1  2  3  4  
@hsfzxjy @sunjiayao 不好意思,是我复制错了,又 sha256sum 了一下,结果前面没有 T
@hsfzxjy @sunjiayao 刚发现,以前都没有注意到,我直接拷贝一整串到浏览器 ctrl f 没搜到,就以为不对。

为什么 sha256sum 前面要多一个 T 啊,我试了一下其他文件前面没有 T ,manpage 也没有说明。
10 天前
回复了 Hsinyao 创建的主题 职场话题 校招 offer, Intel VS 腾讯
#10 同问
@kokutou @bitdepth @ynyounuo @Routeros @Cooky 刚才我把另一个 u 盘重新插上去,发现超过 4GB 的文件大小也被自动减去了 4GB ,然后我在固态硬盘上 mkfs.exfat 创建一个新的文件系统(啥参数都不加),拷贝进去一个 5GB 的文件,umount 后再 mount ,也出现了同样的问题,各位可以试试。
@bitdepth 不太理解你说的意思,我这个 u 盘是这款:

“闪迪(SanDisk)32GB Micro USB 接口 U 盘 DD3 酷捷 黑色 读速 150MB/s 安卓手机平板三用 便携 APP 管理软件”

京东自营还有在售,不过我是 5 年前买的,所以担心会不会是用久了出现质量问题了,不过数据拷贝进去都没有任何的损坏,也不能因为这一个问题就断定 u 盘坏了。
@kokutou 我最开始已经说了,用另一个 u 盘(金士顿的)没这个问题
@ynyounuo

用 isoinfo -d -i 的 volume size * block size 和 du -b 的结果相比较是说明什么问题呢?

我发现 fedora server 35 的 iso 也是不一致的,但 sha256sum 和官网的是一致的


[email protected]:/c/iso# sha256sum Fedora-Server-dvd-x86_64-35-1.2.iso
3fe521d6c7b12c167f3ac4adab14c1f344dd72136ba577aa2bcc4a67bcce2bc6 Fedora-Server-dvd-x86_64-35-1.2.iso
[email protected]:/c/iso#
[email protected]:/c/iso# isoinfo -d -i Fedora-Server-dvd-x86_64-35-1.2.iso
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: Fedora-S-dvd-x86_64-35
Volume set id:
Publisher id:
Data preparer id:
Application id: GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 1089891
El Torito VD version 1 found, boot catalog is in sector 380
Joliet with UCS level 3 found
Rock Ridge signatures version 1 found
Eltorito validation header:
Hid 1
Arch 0 (x86)
ID ''
Key 55 AA
Eltorito defaultboot header:
Bootid 88 (bootable)
Boot media 0 (No Emulation Boot)
Load segment 0
Sys type 0
Nsect 4
Bootoff 50BAD 330669
[email protected]:/c/iso#
[email protected]:/c/iso# /usr/bin/du -b Fedora-Server-dvd-x86_64-35-1.2.iso
2232418304 Fedora-Server-dvd-x86_64-35-1.2.iso
[email protected]:/c/iso#
[email protected]:/c/iso# stat Fedora-Server-dvd-x86_64-35-1.2.iso
File: Fedora-Server-dvd-x86_64-35-1.2.iso
Size: 2232418304 Blocks: 4360200 IO Block: 4096 regular file
Device: 801h/2049d Inode: 4194318 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ d) Gid: ( 1000/ d)
Access: 2021-11-20 00:03:38.167116659 +0800
Modify: 2021-11-05 07:15:49.224372134 +0800
Change: 2021-11-05 07:24:56.164238609 +0800
Birth: 2021-11-05 07:10:48.164996198 +0800
[email protected]:/c/iso#
[email protected]:/c/iso# bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
1089891 * 2048
2232096768
而且我发现 win11 上个月正式发布 iso 后,微软好像悄悄又更新了 iso ,我的 sha256 和官网的对不上,但我用 google 搜我的 sha256 这一串,可以搜到好多结果,各位可以试试:

667bd113a4deb717bc49251e7bdc9f09c2db4577481ddfbce376436beb9d1d2f

然后可以去微软官网下载 win11 的页面,点击那个“Verify your download”,没有一个结果和这个是一样的,应该就是微软悄悄更新 ISO 了。
我上面总共用了 desktop ,server ,laptop 三个设备,可能会让各位感到迷惑,但结果都是一样的。
@ynyounuo @kokutou

umount 后再 mount ,5GB 的文件大小就变成 1GB 了

findmnt 输出:

└─/mnt/1 /dev/sda1 exfat rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro
@ynyounuo 刚才创建了一个 5GB 的文件,结果大小显示正常

[email protected]:/mnt/1# /usr/bin/dd if=/dev/zero of=5GB obs=1G count=0 seek=5
[email protected]:/mnt/1# /usr/bin/du -h *
5.0G 5GB
2.1G Fedora-Server-dvd-x86_64-35-1.2.iso
1.9G Fedora-Workstation-Live-x86_64-35-1.2.iso
396M gparted-live-1.3.1-1-amd64.iso
2.9G ubuntu-20.04.3-desktop-amd64.iso
1.2G ubuntu-20.04.3-live-server-amd64.iso
3.0G ubuntu-21.10-desktop-amd64.iso
250M Win10_English_x64.iso
1.2G Win11_English_x64.iso
[email protected]:/mnt/1# /usr/bin/du -b *
5368709120 5GB
2232418304 Fedora-Server-dvd-x86_64-35-1.2.iso
2009333760 Fedora-Workstation-Live-x86_64-35-1.2.iso
415236096 gparted-live-1.3.1-1-amd64.iso
3071934464 ubuntu-20.04.3-desktop-amd64.iso
1261371392 ubuntu-20.04.3-live-server-amd64.iso
3116482560 ubuntu-21.10-desktop-amd64.iso
4556128256 Win10_English_x64.iso
5497985024 Win11_English_x64.iso
[email protected]:/mnt/1#
@ynyounuo
win10 的不一致,win11 的一致

[email protected]:/c/iso# isoinfo -d -i Win10_English_x64.iso
CD-ROM is in ISO 9660 format
System id:
Volume id: ESD_ISO
Volume set id: ESD_ISO
Publisher id:
Data preparer id: IMAPI2 (1.0) ISO9660 FORMATTER COPYRIGHT (C) 2004-2007 MICROSOFT
Application id:
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 2224395
El Torito VD version 1 found, boot catalog is in sector 1404
NO Joliet present
NO Rock Ridge present
Eltorito validation header:
Hid 1
Arch 0 (x86)
ID 'Microsoft IMAPIv2'
Key 55 AA
Eltorito defaultboot header:
Bootid 88 (bootable)
Boot media 0 (No Emulation Boot)
Load segment 0
Sys type 0
Nsect 8
Bootoff 57D 1405
[email protected]:/c/iso#
[email protected]:/c/iso# /usr/bin/du -b Win10_English_x64.iso
4556128256 Win10_English_x64.iso
[email protected]:/c/iso#
[email protected]:/c/iso# bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2224395 * 2048
4555560960



[email protected]:/c/iso# isoinfo -d -i Win11_English_x64.iso
CD-ROM is in ISO 9660 format
System id:
Volume id: CCCOMA_X64FRE_EN-US_DV9
Volume set id: CCCOMA_X64FRE_EN-US_DV9
Publisher id: MICROSOFT CORPORATION
Data preparer id: MICROSOFT CORPORATION, ONE MICROSOFT WAY, REDMOND WA 98052, (425) 882-8080
Application id: CDIMAGE 2.56 (01/01/2005 TM)
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 2684563
El Torito VD version 1 found, boot catalog is in sector 22
NO Joliet present
NO Rock Ridge present
Eltorito validation header:
Hid 1
Arch 0 (x86)
ID 'Microsoft Corporation'
Key 55 AA
Eltorito defaultboot header:
Bootid 88 (bootable)
Boot media 0 (No Emulation Boot)
Load segment 0
Sys type 0
Nsect 8
Bootoff 20B 523
[email protected]:/c/iso#
[email protected]:/c/iso# /usr/bin/du -b Win11_English_x64.iso
5497985024 Win11_English_x64.iso
[email protected]:/c/iso#
[email protected]:/c/iso# bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
2684563 * 2048
5497985024
sha256sum 跟微软官网的是一样的
windows 10 里显示的文件大小都是正常的。
@Cooky 这个 exfat 文件系统是用 ventoy 创建的。
@ysc3839 @ynyounuo

其他文件也有同样的情况,只要大于 4GB ,报告的大小就自动减去了 4GB

[email protected]:/mnt# /usr/bin/du -h 3/*
2.1G 3/Fedora-Server-dvd-x86_64-35-1.2.iso
1.9G 3/Fedora-Workstation-Live-x86_64-35-1.2.iso
396M 3/gparted-live-1.3.1-1-amd64.iso
2.9G 3/ubuntu-20.04.3-desktop-amd64.iso
1.2G 3/ubuntu-20.04.3-live-server-amd64.iso
3.0G 3/ubuntu-21.10-desktop-amd64.iso
250M 3/Win10_English_x64.iso
1.2G 3/Win11_English_x64.iso # 这个大小也错了
[email protected]:/mnt#
[email protected]:/mnt# /usr/bin/du -bh 3/*
2.1G 3/Fedora-Server-dvd-x86_64-35-1.2.iso
1.9G 3/Fedora-Workstation-Live-x86_64-35-1.2.iso
396M 3/gparted-live-1.3.1-1-amd64.iso
2.9G 3/ubuntu-20.04.3-desktop-amd64.iso
1.2G 3/ubuntu-20.04.3-live-server-amd64.iso
3.0G 3/ubuntu-21.10-desktop-amd64.iso
4.3G 3/Win10_English_x64.iso
5.2G 3/Win11_English_x64.iso
[email protected]:/mnt#
[email protected]:/mnt# /usr/bin/du -b 3/*
2232418304 3/Fedora-Server-dvd-x86_64-35-1.2.iso
2009333760 3/Fedora-Workstation-Live-x86_64-35-1.2.iso
415236096 3/gparted-live-1.3.1-1-amd64.iso
3071934464 3/ubuntu-20.04.3-desktop-amd64.iso
1261371392 3/ubuntu-20.04.3-live-server-amd64.iso
3116482560 3/ubuntu-21.10-desktop-amd64.iso
4556128256 3/Win10_English_x64.iso
5497985024 3/Win11_English_x64.iso
[email protected]:/mnt#
[email protected]:/mnt#
@ynyounuo

[email protected]:/mnt# /usr/bin/du --block-size=1 3/Win10_English_x64.iso
261160960 3/Win10_English_x64.iso
[email protected]:/mnt#
[email protected]sktop:/mnt# /usr/bin/du -b 3/Win10_English_x64.iso
4556128256 3/Win10_English_x64.iso
[email protected]:/mnt#
[email protected]:/mnt#
@ysc3839

[email protected]:/mnt$ file /usr/bin/du
/usr/bin/du: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=eacf80f509266fff220e1672d42d51fbc3094921, for GNU/Linux 3.2.0, stripped
[email protected]:/mnt$
[email protected]:/mnt$ /usr/bin/du -bsh 3/Win10_English_x64.iso
4.3G 3/Win10_English_x64.iso
[email protected]:/mnt$
[email protected]:/mnt$ /usr/bin/du -bs 3/Win10_English_x64.iso
4556128256 3/Win10_English_x64.iso
[email protected]:/mnt$
[email protected]:/mnt$ /usr/bin/du -bh 3/Win10_English_x64.iso
4.3G 3/Win10_English_x64.iso
[email protected]:/mnt$
[email protected]:/mnt$ /usr/bin/du -h 3/Win10_English_x64.iso
250M 3/Win10_English_x64.iso
[email protected]:/mnt$
[email protected]:/mnt$ /usr/bin/du -sh 3/Win10_English_x64.iso
250M 3/Win10_English_x64.iso
[email protected]:/mnt$
[email protected]:/mnt$
1  2  3  4  
关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2766 人在线   最高记录 5497   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 01:02 · PVG 09:02 · LAX 17:02 · JFK 20:02
♥ Do have faith in what you're doing.