无法在 Ubuntu Server 中安装第二个硬盘

无法在 Ubuntu Server 中安装第二个硬盘

我正在向我的 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 <[email protected]>
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 会提供比我的解释更好的煽动。

我真的希望能够使用这个驱动器而无需重新格式化它。任何帮助将不胜感激!

答案1

看起来你有一个EFI GPT那里有分区表。您需要内核对此的支持。作为快速检查,请执行以下操作:zgrep CONFIG_EFI_PARTITION /proc/config.gz.这是一个 HOWTO在此类磁盘的安装分区上。

相关内容