Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Tip of the Day: "ghosting" a machine with nc and dd



On Tuesday 17 July 2007 15:34:20 Josh Glover wrote:
> 4. Determine the device name of the hard drive on each machine. If you
> have an IDE (Wikipedia) drive, your device will almost certainly be
> /dev/hda, and if you have a SCSI (Wikipedia) (or SATA (Wikipedia)? can
> someone confirm this) drive, it will be /dev/sda.

Yes, SATA drives are (usually) mapped to /dev/sd* devices.  Note that IDE 
drives can also be mapped to /dev/sd* devices as well, which is the default 
for systems like Ubuntu, I believe.

> To verify this, run: 
>
> sudo fdisk /dev/hda
>
> or
>
> sudo fdisk /dev/sda
>
> If you have the right drive, the output should look something like this:
>
> Disk /dev/hda: 60.0 GB, 60011642880 bytes
> 255 heads, 63 sectors/track, 7296 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1        13    104391   83  Linux
> /dev/hda2            14      7042  56460442+  83  Linux
> /dev/hda3          7043      7296   2040255   82  Linux swap

Note that the command above runs the fdisk program, which lets you type in 
fdisk commands, so it does not give the partition information immediately.  
You will get a prompt such as "Command (m for help):" where you can type "p" 
to print the partition table (like above) and then "q" to exit fdisk.

Cheers,

Travis


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links