由于用老毛桃做启动盘,会破坏数据,所以先备份一下:
[root@localhost mnt]# dd if=/dev/sdb of=/mnt/u.xxd bs=20M
把U整个都做成镜像了。
在挂载的时候遇到了问题:
[root@localhost mnt]# mount /mnt/u.xxd /sdb3
mount: mount point /sdb3 does not exist
[root@localhost mnt]# mount /mnt/u.xxd /sdd3
mount: /dev/loop0 is write-protected, mounting read-only
mount: unknown filesystem type ‘(null)’
[root@localhost mnt]# fdisk -l /mnt/u.xxd
Disk /mnt/u.xxd: 8004 MB, 8004304896 bytes, 15633408 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 label type: dos
Disk identifier: 0x4bd0e615
Device Boot Start End Blocks Id System
/mnt/u.xxd1 32 15633407 7816688 b W95 FAT32
U盘虽然只有一个分区,但是挂载时候要跳过16384(32*512)字节
[root@localhost mnt]# mount -o offset=16384 /mnt/u.xxd /sdd3
挂载成功!