Is this a bug?
I'm using an external enclosure with large hard drives as a network backup device. It works fine (most of the time) but the biggest problem I have is when I swap drives on a running system "fdisk -l /dev/sda" shows the drive size to be the size of the previous drive, or more accurately, which drive was in the machine at boot time.
For example if I was using a 120G drive:
Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda2 1 30401 244196001 83 Linux
...then removed it and replaced it witha 250G drive, fdisk -l would show the following:
Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda2 1 30401 244196001 83 Linux
Notice the number of blocks is correct but the cylinder count is all wrong. I found that if I went into fdisk manually and re-wrote the partition table the system would then pick up the drive size correctly and will allow me to then mount the partition.
Is this a bug? Is there a better work-around?
-- Greg Gulik http://www.gulik.org/greg/ greg @ gulik.org
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
