External cases for internal IDE drives; LiveCDs

Jason Spiro jasonspiro-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Jun 9 09:51:59 UTC 2006


On 6/8/06, moliver-fC0AHe2n+mcIvw5+aKnW+Pd9D2ou9A/h at public.gmane.org <moliver-fC0AHe2n+mcIvw5+aKnW+Pd9D2ou9A/h at public.gmane.org> wrote:
> How do you figure out which block device it is, when you want to mount
> it?

One way is to run cfdisk, which comes with all Linux distributions. It
gives you a listing of the partitions on your main hard drive like so:

                                        Disk Drive: /dev/hda
                                  Size: 20490559488 bytes, 20.4 GB

     Name           Flags         Part Type    FS Type
[Label]           Size (MB)
 ---------------------------------------------------------------------------------------------------
     hda1           Boot           Primary     W95 FAT32 (LBA)
                 16779.58
     hda5                          Logical     Linux ext3
[/]                 3174.96
     hda2                          Primary     Linux
                   534.65


Or try the command file -s /dev/hd*

$ file -s /dev/hd*
/dev/hda:  x86 boot sector; partition 1: ID=0xc, active, starthead 1,
startsector 63, 32772537 sectors; partition 2: ID=0x83, starthead 254,
startsector 38973690, 1044225 sectors; partition 4: ID=0xf, starthead
0, startsector 32772600, 6201090 sectors, code offset 0x48
/dev/hda1: x86 boot sector, code offset 0x58, OEM-ID "MSWIN4.1",
sectors/cluster 16, Media descriptor 0xf8, heads 255, hidden sectors
63, sectors 32772537 (volumes > 32 MB) , FAT (32 bit), sectors/FAT
15992, rootdir cluster 1338964, reserved3 0x800000, serial number
0xe5b1309, unlabeled
/dev/hda2: Linux/i386 swap file (new style) 1 (4K pages) size 130527 pages
/dev/hda4: x86 boot sector; partition 1: ID=0x83, starthead 1,
startsector 63, 6201027 sectors, extended partition table (last)\011
/dev/hda5: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
/dev/hdc:  writable, no read permission
/dev/hdd:  writable, no read permission

Please CC me if you reply to this message.
Cheers,
Jason

-- 
Firefox: the browser you can trust. http://www.getfirefox.com
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list