On Thursday 23 December 2004 10:32, Dan Am wrote:
Here's one from the trenches: How do I identify the device I booted off ? rdev tells me the root-patition, but that's not what I am after ? Maybe the [hs]da device always the boot device ? (which is the assumtion I work on at the moment)
try fdisk -l marvin ~ # fdisk -l Disk /dev/sda: 73.5 GB, 73557090304 bytes 255 heads, 63 sectors/track, 8942 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 20 160618+ 83 Linux /dev/sda2 21 1065 8393962+ 83 Linux /dev/sda3 1066 2110 8393962+ 83 Linux . . There you see that it is /dev/sda1 that is marked as bootable. regards Jonas -- Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. -Andrew S. Tanenbaum. Computer Networks.