просмотр linux разделов
[cc lang=”bash”]root@SERVER:/# fdisk -l
Disk /dev/sda: 499.9 GB, 499989348352 bytes
255 heads, 63 sectors/track, 60786 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000849c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 59650 479138593+ 83 Linux
/dev/sda2 59651 60786 9124920 5 Extended
/dev/sda5 59651 60786 9124888+ 82 Linux swap / Solaris
Disk /dev/sdb: 1499.9 GB, 1499989016576 bytes
255 heads, 63 sectors/track, 182363 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00093e0c[/cc]
Создание linux раздела
[cc lang=”bash”]#fdisk /dev/sdb[/cc]
далее жмём n
далее жирным что вводил
[cc lang=”bash”]Command action
e extended
p primary partition (1-4)
[/cc]
p
[cc lang=”bash”]
Partition number (1-4):1
First cylinder (1-182363, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-182363, default 182363):
Using default value 182363[/cc]
Сохраняем и выходим
[cc lang=”bash”]Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.[/cc]
раздел sdb1 создан. далее форматируем его.
[cc lang=”bash”]# mkfs -t ext3 /dev/sdb1
mke2fs 1.40.2 (12-Jul-2007)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
183107584 inodes, 366207691 blocks
18310384 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
11176 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.[/cc]
Монтируем и вперёд 🙂
0 Комментарии。