goletsa
Gold Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору /dev/loop0 - Сам физический диск - например /dev/sdb /dev/loop1 - Логический раздел, будет виден после перезагрузки, скорее всего /dev/sdb1 Создание GPT раздела: goletsa-minipc:/mnt/disk3/alex/WD# losetup /dev/loop-0 gpt_test.disk goletsa-minipc:/mnt/disk3/alex/WD# gdisk /dev/loop-0 GPT fdisk (gdisk) version 0.5.1 Partition table scan: MBR: not present BSD: not present APM: not present GPT: not present Creating new GPT entries. Command (? for help): ? bback up GPT data to a file cchange a partition's name ddelete a partition ishow detailed information on a partition llist known partition types nadd a new partition ocreate a new empty GUID partition table (GPT) pprint the partition table qquit without saving changes rrecovery and transformation options (experts only) ssort partitions tchange a partition's type code vverify disk wwrite table to disk and exit xextra functionality (experts only) ?print this menu Command (? for help): o] This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): y Command (? for help): n Partition number (1-128, default 1): First sector (34-2097118, default = 34) or {+-}size{KMGT}: Last sector (34-2097118, default = 2097118) or {+-}size{KMGT}: Current type is 'Unused entry' Hex code (L to show codes, 0 to enter raw code): L 0700 Linux/Windows data 0c01 Microsoft Reserved 2700 Windows RE 4200 Windows LDM data 4201 Windows LDM metadat 8200 Linux swap 8301 Linux Reserved 8e00 Linux LVM a500 FreeBSD disklabel a501 FreeBSD boot a502 FreeBSD swap a503 FreeBSD UFS a504 FreeBSD ZFS a505 FreeBSD Vinum/RAID a800 Apple UFS a901 NetBSD swap a902 NetBSD FFS a903 NetBSD LFS a903 NetBSD RAID a904 NetBSD concatenated a905 NetBSD encrypted ab00 Apple boot af00 Apple HFS/HFS+ af01 Apple RAID af02 Apple RAID offline af03 Apple label af04 AppleTV recovery be00 Solaris boot bf00 Solaris root bf01 Solaris /usr & Mac bf02 Solaris swap bf03 Solaris backup bf04 Solaris /var bf05 Solaris /home bf05 Solaris EFI_ALTSCTR bf06 Solaris Reserved 1 bf07 Solaris Reserved 2 bf08 Solaris Reserved 3 bf09 Solaris Reserved 4 bf0a Solaris Reserved 5 c001 HP-UX data c002 HP-UX service ef00 EFI System ef01 MBR partition schem ef02 BIOS boot partition fd00 Linux RAID Hex code (L to show codes, 0 to enter raw code): 0700 Changed system type of partition to 'Linux/Windows data' Command (? for help): p Disk /dev/loop0: 2097152 sectors, 1024.0 MiB Disk identifier (GUID): 2E4FA1FF-15A0-0007-54EF-19AE18B8DA12 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 2097118 Total free space is 0 sectors (0 bytes) Number Start (sector) End (sector) Size Code Name 1 34 2097118 1024.0 MiB 0700 Linux/Windows data Command (? for help): w Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING MBR PARTITIONS!! THIS PROGRAM IS BETA QUALITY AT BEST. IF YOU LOSE ALL YOUR DATA, YOU HAVE ONLY YOURSELF TO BLAME IF YOU ANSWER 'Y' BELOW! Do you want to proceed, possibly destroying your data? (Y/N) y OK; writing new GPT partition table. Warning: The kernel is still using the old partition table. The new table will be used at the next reboot. The operation has completed successfully. goletsa-minipc:/mnt/disk3/alex/WD# fdisk -l /dev/loop0 WARNING: GPT (GUID Partition Table) detected on '/dev/loop0'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/loop0: 1073 MB, 1073741824 bytes 256 heads, 63 sectors/track, 130 cylinders Units = cylinders of 16128 * 512 = 8257536 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/loop0p1 1 131 1048575+ ee GPT Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0, 0, 1) logical=(0, 0, 2) Partition 1 has different physical/logical endings: phys=(1023, 255, 63) logical=(130, 8, 8) Форматирование в reiserfs: # mkreiserfs /dev/loop1 mkreiserfs 3.6.21 (2009 www.namesys.com) A pair of credits: Lycos Europe (www.lycos-europe.com) had a support contract with us that consistently came in just when we would otherwise have missed payroll, and that they kept doubling every year. Much thanks to them. Vladimir Saveliev started as the most junior programmer on the team, and became the lead programmer. He is now an experienced highly productive programmer. He wrote the extent handling code for Reiser4, plus parts of the balancing code and file write and file read. Guessing about desired format.. Kernel 2.6.36-minipc-1 is running. Format 3.6 with standard journal Count of blocks on the device: 262144 Number of blocks consumed by mkreiserfs formatting process: 8219 Blocksize: 4096 Hash function used to sort names: "r5" Journal Size 8193 blocks (first block 18) Journal Max transaction length 1024 inode generation number: 0 UUID: 20837a35-8b4b-4af3-95e1-1d376d7682b4 ATTENTION: YOU SHOULD REBOOT AFTER FDISK! ALL DATA WILL BE LOST ON '/dev/loop1'! Continue (y/n):y Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..ok ReiserFS is successfully created on /dev/loop1. |