Ubuntu

無法在 Ubuntu Server 中安裝第二個硬碟驅動器

  • July 29, 2011

我正在向我的 Ubuntu 伺服器添加第二個驅動器。它以前在 FreeNas 系統中,但我擺脫了 XFS 分區並創建了一個 ext4 分區(在較舊的 Ubuntu 系統中)。然後我將所有數據備份到上面,然後將磁碟安裝在我的 Ubuntu 伺服器中。

dmesg | 尾巴

[  294.570830] EXT4-fs (sdb): VFS: Can't find ext4 filesystem
[  365.523173] exe (1269): /proc/1269/oom_adj is deprecated, please use /proc/1269/oom_score_adj instead.
[  516.249248] EXT4-fs (sdb): VFS: Can't find ext4 filesystem
[  518.965799] EXT3-fs (sdb): error: can't find ext3 filesystem on dev sdb.

我還有一個 testdisk.log 文件如下

Thu Jul 28 19:40:00 2011
Command line: TestDisk

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.38-8-server (#42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011)
Compiler: GCC 4.5 - Oct 17 2010 19:13:58
ext2fs lib: 1.41.14, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       3907029168 sectors
/dev/sda: user_max   3907029168 sectors
/dev/sda: native_max 18446744073321613488 sectors
/dev/sda: dco        18446744073321613488 sectors
/dev/sdb: LBA, HPA, LBA48, DCO support
/dev/sdb: size       3907029168 sectors
/dev/sdb: user_max   3907029168 sectors
/dev/sdb: native_max 18446744073321613488 sectors
/dev/sdb: dco        18446744073321613488 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
Hard disk list
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ATA ST32000542AS
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ATA ST32000542AS

Partition table type (auto): EFI GPT
/dev/sdb: Host Protected Area (HPA) present.
Disk /dev/sdb - 2000 GB / 1863 GiB - ATA ST32000542AS
Partition table type: EFI GPT

Analyse Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=3907029167 (expected 3907029167)
hdr_lba_start=34
hdr_lba_end=3907029134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
1 P FreeBSD Swap                 128    4194431    4194304 [swap-ada0]
2 P Unknown                  4194432 3907029134 3902834703 [ada0]

search_part()
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63

recover_EXT2: s_block_group_nr=0/14888, s_mnt_count=5/25, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 487854337
recover_EXT2: part_size 3902834696
    MS Data                  4194432 3907029127 3902834696 [D1]
    EXT4 Large file Sparse superblock, 1998 GB / 1861 GiB

Results
  P MS Data                  4194432 3907029127 3902834696 [D1]
    EXT4 Large file Sparse superblock, 1998 GB / 1861 GiB

interface_write()
1 P MS Data                  4194432 3907029127 3902834696 [D1]
write!
No extended partition
You will have to reboot for the change to take effect.

TestDisk exited normally.

我並不是要轉儲日誌文件並要求其他人“讓它工作”,但我發現在這種情況下,testdisk.log 會比我的解釋提供更好的激勵。

我真的很想能夠使用這個驅動器而不必重新格式化它。任何幫助將不勝感激!

看起來您那​​裡有一個EFI GPT分區表。您需要在核心中對此提供支持。作為快速檢查,請執行zgrep CONFIG_EFI_PARTITION /proc/config.gz. 這是關於掛載此類磁碟分區的 HOWTO。

引用自:https://unix.stackexchange.com/questions/17568