Stupid Linux HDD question.
Dec. 7th, 2011 06:17 pmIs there an easy way to have the machine tell me which hard disks it can see, and what their device names/numbers are, even though they might be unmounted or unformatted? An equivalent to Windows' Disk Management?
Debian 4 in the specific case, but a general would also be nice.
EDIT: Hmm, /dev/disk/by-id/ is a veeeeeery interesting folder. Will that show disks that aren't partitioned, though?
Debian 4 in the specific case, but a general would also be nice.
EDIT: Hmm, /dev/disk/by-id/ is a veeeeeery interesting folder. Will that show disks that aren't partitioned, though?
(no subject)
Date: 2011-12-08 02:02 am (UTC)(no subject)
Date: 2011-12-08 04:35 am (UTC)(no subject)
Date: 2011-12-08 04:53 am (UTC)And while going through /dev/sda1-X and /dev/hda1-X and /dev/md0-X works, it's less than ideal.
(no subject)
Date: 2011-12-08 05:10 am (UTC)(no subject)
Date: 2011-12-08 07:09 am (UTC)That tells you what's being used in the file system, and should show unformatted stuff.
(no subject)
Date: 2011-12-08 07:57 am (UTC)lists all block devices, including their UUID
(no subject)
Date: 2011-12-08 10:29 am (UTC)Of course, for the sake of consitency, my physical CentOS 5 machine only has by-label and by-uuid.
(no subject)
Date: 2011-12-08 10:33 am (UTC)(no subject)
Date: 2011-12-08 03:02 pm (UTC)"mount" tells you what's currently mounted even if you've manually mounted/unmounted devices after startup, but again, that won't tell me if there's a /dev/sdd that I don't have mounted.
(no subject)
Date: 2011-12-08 03:05 pm (UTC)Then I thought about it for a second.
When I told the machine to SUDO make me a sandwich, it worked.
I facepalmed.
I am clever.
(no subject)
Date: 2011-12-08 05:21 pm (UTC)