翻出n年前的上网本折腾,160g硬盘,不知道哪里出问题,把整个过程都献上
实际149g,pe启动,用DiskGenius分了一个49g,4k对齐,装xp,xp中显示这个分区52,614,393,856字节,49GB
完了后,用UltraISO把mint的iso写进u盘,重启->u盘启动,到mint的安装,去到挂载那一项,显示有个52GB的ntfs分区(52614MB),102G的未分配,mb数和xp一样,为什么GB数显示就对不上呢?分交换空间,分/的时候提示超过剩余空间,本来100g的空间,当102g分当然超过....为什么……………………
再用pe启动,什么分区软件都显示和xp一样,就是ptdd这个软件启动提示分区表错误,本来多少个字节,移位什么的,修复后xp分区就没了
用台式机同样的操作,就是一开始没有用软件分区4k对齐,直接xp安装过程中分区安装,装mint的时候就正常了
是不是mint不认识4k对齐?还是怎么回事,哪位大神可以帮帮忙
mint分区的问题.....
- npfzw
- 帖子: 35
- 注册时间: 2010-08-30 19:41
- 联系:
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: mint分区的问题.....
登入試用桌面重启->u盘启动
把下面指令 複製 貼進終端機 執行
1-1. sudo fdisk -l /dev/sda
1-2. sudo parted /dev/sda unit B print
1-3. sudo parted /dev/sda unit MiB print
1-4. sudo parted /dev/sda unit MB print
把結果直接複製 貼上來
- npfzw
- 帖子: 35
- 注册时间: 2010-08-30 19:41
- 联系:
Re: mint分区的问题.....
打这个贴时搞错了两个数字,mint安装,ntfs分区是52.6g,空闲107.4g(不是102g),对整件事没影响
下面是二楼要的结果:
mint@mint ~ $ sudo fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 identifier: 0x94479447
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 102764543 51381248 7 HPFS/NTFS/exFAT
mint@mint ~ $ sudo parted /dev/sda unit B print
Model: ATA ST9160314AS (scsi)
Disk /dev/sda: 160041885696B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1048576B 52615446527B 52614397952B primary ntfs boot
mint@mint ~ $ sudo parted /dev/sda unit MiB print
Model: ATA ST9160314AS (scsi)
Disk /dev/sda: 152628MiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1.00MiB 50178MiB 50177MiB primary ntfs boot
mint@mint ~ $ sudo parted /dev/sda unit MB print
Model: ATA ST9160314AS (scsi)
Disk /dev/sda: 160042MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1.05MB 52615MB 52614MB primary ntfs boot
mint@mint ~ $
下面是二楼要的结果:
mint@mint ~ $ sudo fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 identifier: 0x94479447
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 102764543 51381248 7 HPFS/NTFS/exFAT
mint@mint ~ $ sudo parted /dev/sda unit B print
Model: ATA ST9160314AS (scsi)
Disk /dev/sda: 160041885696B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1048576B 52615446527B 52614397952B primary ntfs boot
mint@mint ~ $ sudo parted /dev/sda unit MiB print
Model: ATA ST9160314AS (scsi)
Disk /dev/sda: 152628MiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1.00MiB 50178MiB 50177MiB primary ntfs boot
mint@mint ~ $ sudo parted /dev/sda unit MB print
Model: ATA ST9160314AS (scsi)
Disk /dev/sda: 160042MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1.05MB 52615MB 52614MB primary ntfs boot
mint@mint ~ $
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: mint分区的问题.....
Disk /dev/sda: 160.0 GB, 160041885696 bytes
1. 0 ~ 1048575B = 1048575B - 0B + 1B = 1048576B = 2048 sectors # /dev/sda1 前面空白sudo parted /dev/sda unit B print
Disk /dev/sda: 160041885696B
1 1048576B 52615446527B 52614397952B primary ntfs boot
2. 1048576B ~ 52615446527B = 52615446527B - 10485756B + 1B = 52614397952B = 52.614397952 GB # /deb/sda1 大小
3. 52615446528B ~ 160041885696B = 160041885696B - 52615446528B + 1B = 107426439169B = 107.426439169GB # /deb/sda1 後面 尚未分配空間
4. 建議
107.426439169GB # /deb/sda1 後面 尚未分配空間
先使用 gparted 分割好
再開始安裝
5. 52614397952B=52614397952÷1024÷1024=50177 MiBsudo parted /dev/sda unit MiB print
1 1.00MiB 50178MiB 50177MiB primary ntfs boot
52614397952B=52614397952÷1024÷1024÷1024=49.000976563 GiB
6. 52614397952B=52614397952÷1000÷1000=52614.397952 MBsudo parted /dev/sda unit MB print
1 1.05MB 52615MB 52614MB primary ntfs boot
52614397952B=52614397952÷1000÷1000÷1000=52.614397952 GB
- npfzw
- 帖子: 35
- 注册时间: 2010-08-30 19:41
- 联系:
Re: mint分区的问题.....
终于明白了,ubuntu从10.10开始使用十进制,衍生版也跟着....刚才试过ubuntu14.04,连debian也换了
折腾一下其他发行版看看................谢了
折腾一下其他发行版看看................谢了
- astolia
- 论坛版主
- 帖子: 6569
- 注册时间: 2008-09-18 13:11
Re: mint分区的问题.....
注意MiB、GiB和MB、GB的区别
http://zh.wikipedia.org/zh-cn/Gibibyte
中间带i的是2进制,没有i的是10进制
由于windows的误用,所以很多人搞不清楚这点
http://zh.wikipedia.org/zh-cn/Gibibyte
中间带i的是2进制,没有i的是10进制
由于windows的误用,所以很多人搞不清楚这点
- npfzw
- 帖子: 35
- 注册时间: 2010-08-30 19:41
- 联系:
Re: mint分区的问题.....
我想问一下,是不是所有linux都已经换成十进制?搜索引擎得到的只是说除苹果外,10.10版以后的ubuntu以及衍生版astolia 写了:注意MiB、GiB和MB、GB的区别
http://zh.wikipedia.org/zh-cn/Gibibyte
中间带i的是2进制,没有i的是10进制
由于windows的误用,所以很多人搞不清楚这点
p.s.如果不首先4k对齐的话,一直都没发现这个矛盾,我觉得不只显示方面的误解,比如说有107g可用,用的时候就提示错误.不选手动挂载分区,自动的话就过了,系统在装,装好再测试一下究竟有多少空间可用
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: mint分区的问题.....
1. Ubuntu 的 gparted / parted 預設基本分割單位是 MiB如果不首先4k对齐的话,一直都没发现这个矛盾
啟動 gparted 時 確認是選取 MiB 為單位
只要分割時全部採取整數值 所有的分割區 起點/大小/分割區間隔 自然都是 MiB 的整數值
自然就是 4k 对齐
1-1. 參閱這個 gparted 圖形
viewtopic.php?p=3109093#p3109093
2. 新的 Windows 8 以後的分割工具 也都支援 MiB 為基本單位
3. 1 MiB = 1024 x 1024 = 1048576 B = 1048576 bytes
4. 會出現這個矛盾是因為早期分割工具 第一個分割區的起點 不是 1 MiB
而是 512 B 或 32768 B
5. 至於 MiB 與 MB 的差別 只是 單位的換算 弄清楚 單位如何換算 就不會困擾了