Good afternoon,
I'm partitioning a disk of 500GB but not if I'm doing well.
Here are the steps I've done
$this->bbcode_second_pass_code('', '
# /sbin/fdisk /dev/sda1
# Command: p (p = listado de particiones)
# Command: n (n = nueva partición)
# Command: p (p = partición primaria)
# Partition number: 1 (numero de la partición)
# First cylinder: poner el primero que deje
# Last cylinder: +250M (250 Mb)
# Command: n
# Command: p
# Partition number: 2
# First cylinder: default
# Last cylinder: default
# Command: w
# /sbin/mkfs.ext3 /dev/sda1
')
This is the result:
$this->bbcode_second_pass_code('', '
root@alarmpi ~ $ /sbin/fdisk -l
Disk /dev/mmcblk0: 3904 MB, 3904897024 bytes, 7626752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c21e5
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 2048 194559 96256 c W95 FAT32 (LBA)
/dev/mmcblk0p2 194560 3862527 1833984 83 Linux
Disk /dev/sda: 500.1 GB, 500074283008 bytes, 976707584 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004a183
Device Boot Start End Blocks Id System
/dev/sda1 2048 976707583 488352768 7 HPFS/NTFS/exFAT
')
The first partition I want to be the linux swap and the second for storage
but when I do the following tells me that there is no exist
i dont no what I'm doing wrong
$this->bbcode_second_pass_code('', '
# Command: t
# Command 1 (1=first partition)
# Hex code: 82 (82 = Linux Swap)
')