[Nottingham] Reformatting a second harddrive

Roger Light roger at atchoo.org
Tue Nov 24 01:26:42 UTC 2009


On Mon, Nov 23, 2009 at 11:09 PM, James Gibbon <jg at jamesgibbon.com> wrote:

> How many partitions does the disk have currently? You should
> be able to find out by (eg, if the disk is /dev/sdb)
>
>  $ ls -l /dev/sdd*
>  brw-rw---- 1 root disk 8, 48 2009-11-11 18:52 /dev/sdb
>  brw-rw---- 1 root disk 8, 49 2009-11-11 19:07 /dev/sdb1
>  $

/sbin/fdisk -l

(that's a lower case L) gives more reliable results and lists the
partition type and size as well.

Cheers,

Roger



More information about the Nottingham mailing list