Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Разбиваем диск
- /sbin/fdisk /dev/sda
- WARNING: DOS-compatible mode is deprecated. It’s strongly recommended to
- switch off the mode (command ‘c’) and change display units to
- sectors (command ‘u’).
- Смотрим, какие разделы есть на диске
- Command (m for help): p
- Disk /dev/sda: 32.2 GB, 32212254720 bytes
- 255 heads, 63 sectors/track, 3916 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x0003e6f5
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 64 512000 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sda2 64 2089 16264192 8e Linux LVM
- Нам нужна вторая партиция, ее надо расширить. Сначало удаляем ее:
- Command (m for help): d
- Partition number (1-4): 2
- Потом создадим новую:
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 2
- First cylinder (64-3916, default 64): Оставляем по умолчанию, жмем клавишу Enter
- Using default value 64
- Last cylinder, +cylinders or +size{K,M,G} (64-3916, default 3916): Оставляем по умолчанию, жмем клавишу Enter
- Using default value 3916
- Меняем тип файловой системы на LVM:
- Command (m for help): t
- Partition number (1-4): 2
- Hex code (type L to list codes): 8e
- Changed system type of partition 2 to 8e (Linux LVM)
- Записываем таблицу разделов на диск:
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
- The kernel still uses the old table. The new table will be used at
- the next reboot or after you run partprobe(8) or kpartx(8)
- Syncing disks.
- Для применения настроек перезагружаемся:
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement