仅使用外部硬盘-不使用内部硬盘...
我有一个容量为0.25%的2TB硬盘;我使用以下命令将“ dd”文件添加到该文件:
"sudo dd if=/dev/sda bs=16M of=/dev/sdb"
(sda and sdb = 2 different hdd's)
I would like to 'dd' more files there from another hdd, to fill up the rest of the 2TB hdd. I do **NOT** want to add the files to the 2TB hdd as an image.
**UPDATE:**
sudo fdisk -l /dev/sda
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: xxxxx
Device Start End Sectors Size Type
/dev/sda2 264192 976771071 976506880 465.7G Microsoft basic data
:~$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Model:
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID):
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2930522221 sectors (1.4 TiB)
Number Start (sector) End (sector) Size Code Name
2 264192 976771071 465.6 GiB 0700 Basic data partition
要将文件添加到已经 有 文件的外部硬盘上,我使用以下命令:
sudo dd if=/dev/sdx# bs=16M of=/dev/sdy#
首先,我使用gparted为要复制文件的硬盘创建了第二个分区,以便不覆盖第一个分区上已经存在的文件。
然后,简单地,我只是在dd命令中为“ if”和“ of”都包括了分区号。
第二个分区对应于上述dd命令中“ sdy#”中的“#”。
“ sdx#”中的分区“#”对应于主机文件的硬盘的分区。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句