Ubuntu hard drive

fightingfi

2[H]4U
Joined
Oct 9, 2008
Messages
3,231
Noob at Ubuntu how do i check the size of my ssd without pulling the laptop apart to see it plz. I forgot what size it is have had it installed for about 2 yrs now think im running low on space. Version 15.10
 
df shows file system usage. Unless you know the disk is partitioned with a single partition using all available disk space, it's safer to use something like parted, fdisk, or smartctl:

Code:
sean-laptop sean # parted /dev/sda print
Model: ATA SAMSUNG MZ7TD256 (scsi)
Disk /dev/sda: 256GB
<output truncated>

sean-laptop sean # fdisk -l /dev/sda
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
<output truncated>

sean-laptop sean # smartctl -i /dev/sda
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.5.0-gentoo] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG MZ7TD256HAFV-000L9
Serial Number:    S17LNSAF256416
LU WWN Device Id: 5 002538 500000000
Firmware Version: DXT02L5Q
User Capacity:    256,060,514,304 bytes [256 GB]
<output truncated>

The kernel messages will generally include the size of the disk during device detection as well:

Code:
sean@sean-laptop ~ $ grep sda /var/log/dmesg 
[    0.000000] Command line: root=/dev/sda1 video=vesafb:mtrr,ywrap vga=0x31A
[    0.000000] Kernel command line: root=/dev/sda1 video=vesafb:mtrr,ywrap vga=0x31A
[    2.202132] sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
<output truncated>
 
Back
Top