[問題] 讀取外接3TB硬碟出現問題
----最新更新 問題解決
換了外接盒cyberslim的,一切正常。
所以是外接盒的關係,現在1TB+3TB接在RPi一代上。
----
外接盒是玄人志向座式USB 2.0,硬碟 toshiba 3TB 格式NTFS
環境是arch linux @ raspberry pi 與 arch linux @ x86(筆電)
----
硬碟是在windows 7 底下格式化(GPT & NTFS),拿到linux底下要使用時發現
沒有辨識出來,假設sda代表這顆硬碟,他並沒有顯示sda1這樣的分割區
[root@alarmpi rex]# ls /dev/sd*
/dev/sda
這時我利用fdisk查看了一下硬碟資訊,顯示如下
[root@alarmpi rex]# fdisk -l /dev/sda
The primary GPT table is corrupt, but the backup appears OK, so that will be
used.
Disk /dev/sda: 746.5 GiB, 801569726464 bytes, 1565565872 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
Disklabel type: gpt
Disk identifier: 8B70A37D-25F0-44D1-979A-D52355A88B59
Device Start End Sectors Size Type
/dev/sda1 34 1565563919 1565563886 746.5G Microsoft basic data
顯示只有746.5G,上網搜尋一下fdisk好像不支援gpt的分割,但查詢應該沒有什麼問題?
於是安裝了gdisk來查詢試試,顯示如下
[root@alarmpi rex]# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.0
Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Disk /dev/sda: 1565565872 sectors, 746.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 8B70A37D-25F0-44D1-979A-D52355A88B59
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 5860532223 2.7 TiB 0700 Basic data partition
請問這種情況會是外接盒支援度不足嗎?謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.164.18.14
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1439387785.A.9FF.html
※ 編輯: a149851571 (1.164.18.14), 08/12/2015 21:57:40
※ 編輯: a149851571 (1.164.18.14), 08/12/2015 22:03:29
→
08/12 22:06, , 1F
08/12 22:06, 1F
→
08/13 01:38, , 2F
08/13 01:38, 2F
→
08/13 01:58, , 3F
08/13 01:58, 3F
確實是單純為了讓windows讀,我之前也有嘗試改用ext3,但好像變成745.6GB可用空間
也割不出2.7TB的樣子,今天下班再來試一次
※ 編輯: a149851571 (59.115.1.53), 08/13/2015 07:33:34
推
08/13 11:54, , 4F
08/13 11:54, 4F
→
08/13 12:00, , 5F
08/13 12:00, 5F
→
08/13 12:05, , 6F
08/13 12:05, 6F
→
08/13 12:08, , 7F
08/13 12:08, 7F
這邊這個情況好像是整個硬碟判讀都錯誤了
因為我也有嘗試乾脆整個硬碟都用ext3,是用gdisk分割的
但只能做出一塊746.5GB就沒有剩餘空間了
※ 編輯: a149851571 (1.34.254.90), 08/13/2015 12:36:03
→
08/13 13:14, , 8F
08/13 13:14, 8F
→
08/13 13:14, , 9F
08/13 13:14, 9F
但是在windows 7底下又一切正常 orz...
只能等下禮拜回家才能試另一個外接盒了
※ 編輯: a149851571 (1.34.254.90), 08/13/2015 14:43:48
→
08/13 16:35, , 10F
08/13 16:35, 10F
→
08/13 16:38, , 11F
08/13 16:38, 11F
→
08/13 16:41, , 12F
08/13 16:41, 12F
→
08/13 16:41, , 13F
08/13 16:41, 13F
因為沒有一定要讓win讀,所以有試過直接在linux下用gdisk重做分割區,
並格式化成ext3,分割的時候都用預設值選擇分割區範圍(最大分割區),
就這樣只產生了一個分割區,而且大小只有746.5gb,就不給再分割了,
像是這顆硬碟本來就只有746.5GB的感覺。
→
08/13 17:51, , 14F
08/13 17:51, 14F
→
08/13 17:53, , 15F
08/13 17:53, 15F
我是用 windows 7 64bit 切割的哦,而且在windows下運作是正常的,
筆電也是arch linux 64bit,但樹莓派就不太清楚了arch linux ARM應該是64bit的樣子?
※ 編輯: a149851571 (59.115.1.53), 08/13/2015 19:29:04
→
08/14 08:12, , 16F
08/14 08:12, 16F
→
08/14 18:26, , 17F
08/14 18:26, 17F
※ 編輯: a149851571 (123.192.16.20), 09/14/2015 16:45:55