Инструменты пользователя

Инструменты сайта



Display or manipulate a disk partition table.

Копирование таблицы разделов

Копирование таблицы разделов с имеющегося /dev/sdd на новый диск /dev/sdc

sfdisk -d /dev/sdd –force | sfdisk /dev/sdc



sfdisk: Checking that no-one is using this disk right now ...
sfdisk: cannot open –force for reading: Нет такого файла или каталога
sfdisk: OK

Disk /dev/sdc: 121601 cylinders, 255 heads, 63 sectors/track
sfdisk:  /dev/sdc: unrecognized partition table type
Old situation:
sfdisk: No partitions found
New situation:
Units: sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sdc1          2048 1953523711 1953521664  fd  Linux raid autodetect
/dev/sdc2             0         -          0   0  Empty
/dev/sdc3             0         -          0   0  Empty
/dev/sdc4             0         -          0   0  Empty
sfdisk: Warning: partition 1 does not end at a cylinder boundary
sfdisk: Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...

sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)


sfdisk/sfdisk.txt · Последние изменения: 2018-12-23 13:22 — GreyWolf