You are on page 1of 2

Descubre hace cuánto tienes instalado tu sistema operativo

windows
systeminfo | find /i “original”
Linux
dumpe2fs $(mount | grep 'on / ' | awk '{print $1}') | grep 'Filesystem created:'
tune2fs -l /dev/sda2 | grep 'Filesystem created:'

root@webportal:/# fdisk /dev/sda


Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p


Disk /dev/sda: 150 GiB, 161061273600 bytes, 314572800 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
Disklabel type: gpt
Disk identifier: F5E6C652-AC62-4DF7-A8A9-F27D4BB2B225

Device Start End Sectors Size Type


/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 314570751 314566656 150G Linux filesystem

Command (m for help): n


Partition number (3-128, default 3): 3
First sector (34-314572766, default 314570752):
Last sector, +sectors or +size{K,M,G,T,P} (314570752-314572766, default 314572766):
+20G
Value out of range.
Last sector, +sectors or +size{K,M,G,T,P} (314570752-314572766, default 314572766):
^[[A^[[D^[[D
Last sector, +sectors or +size{K,M,G,T,P} (314570752-314572766, default 314572766):
20G
Value out of range.
Last sector, +sectors or +size{K,M,G,T,P} (314570752-314572766, default 314572766):
1G
Value out of range.
Last sector, +sectors or +size{K,M,G,T,P} (314570752-314572766, default 314572766):
1K
Value out of range.
Last sector, +sectors or +size{K,M,G,T,P} (314570752-314572766, default 314572766):

Created a new partition 3 of type 'Linux filesystem' and of size 1007,5 KiB.

Command (m for help): ^[[A


unknown command

Command (m for help): P


P: unknown command

Command (m for help): p

Disk /dev/sda: 150 GiB, 161061273600 bytes, 314572800 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
Disklabel type: gpt
Disk identifier: F5E6C652-AC62-4DF7-A8A9-F27D4BB2B225

Device Start End Sectors Size Type


/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 314570751 314566656 150G Linux filesystem
/dev/sda3 314570752 314572766 2015 1007,5K Linux filesystem

Command (m for help): d


Partition number (1-3, default 3): 3

Partition 3 has been deleted.

Command (m for help): p


Disk /dev/sda: 150 GiB, 161061273600 bytes, 314572800 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
Disklabel type: gpt
Disk identifier: F5E6C652-AC62-4DF7-A8A9-F27D4BB2B225

Device Start End Sectors Size Type


/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 314570751 314566656 150G Linux filesystem

Command (m for help): w


The partition table has been altered.
Syncing disks.

root@webportal:/#

sudo gparted

You might also like