Tak prikladam kod z konzole
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xf04b1af0
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 572149759 285971456 7 HPFS/NTFS/exFAT
/dev/sda3 572149760 616818687 22334464 7 HPFS/NTFS/exFAT
/dev/sda4 616818688 625139711 4160512 c W95 FAT32 (LBA)
Disk /dev/sdb: 4026 MB, 4026531840 bytes
31 heads, 30 sectors/track, 8456 cylinders, total 7864320 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: 0x000be0b0
Device Boot Start End Blocks Id System
/dev/sdb1 * 256 7864319 3932032 b W95 FAT32
ubuntu@ubuntu:~$ sudo parted -l
Model: ATA ST320LT020-9YG14 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs boot
2 106MB 293GB 293GB primary ntfs
3 293GB 316GB 22.9GB primary ntfs
4 316GB 320GB 4260MB primary fat32 lba
Model: JetFlash Transcend 4GB (scsi)
Disk /dev/sdb: 4027MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 131kB 4027MB 4026MB primary fat32 boot
ubuntu@ubuntu:~$