将全新的 Windows 7 文件系统硬盘克隆到 Linux 服务器,因为没有外部硬盘或磁盘用于备份

将全新的 Windows 7 文件系统硬盘克隆到 Linux 服务器,因为没有外部硬盘或磁盘用于备份

新款联想 x220 笔记本电脑,配备 Windows 7 Pro,规格如下。我想将磁盘备份到我的服务器,但我需要知道 W7 fs,它是什么?

$ sudo mount -t ntfs /dev/sdb Windows/
NTFS signature is missing.
Failed to mount '/dev/sdb': Invalid argument
The device '/dev/sdb' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
$ sudo mount -t ntf /dev/sdb Windows/
mount: unknown filesystem type 'ntf'
$ sudo mount -t nts /dev/sdb Windows/
mount: unknown filesystem type 'nts'

$ dmesg|tail
[   25.928832] sdb: p2 size 4779917312 extends beyond EOD, truncated
[   25.928867] sdb: p3 start 4804509696 is beyond EOD, truncated
[   25.929882] sd 6:0:0:0: [sdb] 78142806 4096-byte logical blocks: (320 GB/298 GiB)
[   25.931382] sd 6:0:0:0: [sdb] No Caching mode page present
[   25.931387] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[   25.931392] sd 6:0:0:0: [sdb] Attached SCSI disk
[   27.960028] wlan0: no IPv6 routers present
[  174.655199] EXT3-fs (sdb): error: can't find ext3 filesystem on dev sdb.
[  174.657319] EXT2-fs (sdb): error: can't find an ext2 filesystem on dev sdb.
[  174.660818] EXT4-fs (sdb): VFS: Can't find ext4 filesystem

或许相关

  1. https://unix.stackexchange.com/questions/11028/backup-whole-hard-disk-linux

  2. USB-SATA 适配器 - 建议将新硬盘连接到我的 *ix 笔记本电脑,https://superuser.com/a/387134/114739

  3. 我正在使用这些 SATA 至 HDD 2.5 英寸适配器这里这里,买了两件但两者似乎都可以工作,至少在 Ubuntu 和 Windows 中自动安装可以正常工作。

对于 Luke 的评论

$ sudo fdisk -l

Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 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: 0x000da58e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   113055743    56526848   83  Linux
/dev/sda2       113057790   117229567     2085889    5  Extended
/dev/sda5       113057792   117229567     2085888   82  Linux swap / Solaris
Note: sector size is 4096 (not 512)

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 4864 cylinders, total 78142806 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x181d6d22

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048     3074047    12288000    7  HPFS/NTFS/exFAT
/dev/sdb2         3074048   600563711  2389958656    7  HPFS/NTFS/exFAT
/dev/sdb3       600563712   625139711    98304000    7  HPFS/NTFS/exFAT

同意 Lamar 的评论

root@h:/# mount -t ntfs /dev/sdb2 /Windows/
NTFS signature is missing.
Failed to mount '/dev/sdb2': Invalid argument
The device '/dev/sdb2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@h:/# sudo mount -t ntfs /dev/sdb2 /Windows/
NTFS signature is missing.
Failed to mount '/dev/sdb2': Invalid argument
The device '/dev/sdb2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

$ sudo mount -t ntfs /dev/sdb2 /Windows
NTFS signature is missing.
Failed to mount '/dev/sdb2': Invalid argument
The device '/dev/sdb2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

答案1

您可以使用将整个驱动器克隆为图像文件dd,甚至可以压缩它以节省空间:

sudo dd if=/dev/sdb2 | bzip2 >~/old-disk.img.bz2

如果你有pv,你甚至可以得到一个进度条:

sudo pv /dev/sdb2 | bzip2 >~/old-disk.img.bz2

答案2

你想使用NTFS-3G,注意3G

这应该可以解决问题:

$ mount -t ntfs-3g /dev/sdb2 /mnt/point

我经常使用它在 Debian Squeeze 下安装带有 Server 2008 R2 虚拟硬盘的外部硬盘。

答案3

mount 命令应该有 /host 和 /Windows,就像这个 /host/Windows/。试试看。

相关内容