[SATLUG] 'dd' command..and my hosed system..

Daniel J. Givens daniel at rugmonster.org
Tue Jan 16 06:25:00 CST 2007


Geoff wrote:
>> hmm.. setup(hd1) gets me:
>> Error 27: unrecognized command
> 
> I'm sure he meant /dev/hdb1 or whatever your usb drive is called by udev...

No, grub is ide/scsi neutral. You specify the drive as grub maps it. Example,
lowest drive on a scsi chain would be hd0. Primary master on IDE would be hd0 in
an IDE system with no other drives. USB drives would be hd0 if there were no
other drives.

You can look at how grub has mapped your drives hd0 or hd1 to /dev/hda or
/dev/sda by looking at /boot/grub/device.map. If you need to update the
device.map for dynamic drives (such as USB drives), you can either edit the file
yourself or delete device.map and run "grub", so a new device map will be
automatically created.

If you're interested, check out the grub manual sometime.
http://www.gnu.org/software/grub/manual/grub.html


More information about the SATLUG mailing list