Skip to content
Advertisement

Tag: partition

Immutable names in /dev/disk

There are four entries in /dev/disk which I am interested in. by-id by-label by-path by-uuid Which of the entries contain immutable names for physical drives? By immutable, I mean that the name shouldn’t change if I change the usb/pci port used to connect to the drive. destroy and create partitions (GPT). move from one computer to another (external hard-drive). For

Get filesystem creation date in C

I need to know the creation datetime of the filesystem on a disk (in a Linux machine) with C. I would like to avoid using shell commands, such as and make a parser. Thanks Answer From a program coded in C (or in any language capable of calling C routines) you would use the stat(2) system call (or, with recent

Advertisement