On Fri, 06 Feb 2004 16:18:53 -0600 Gregory Gulik <[EMAIL PROTECTED]> wrote:
| | 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? After taking the first drive out, use 'eject /dev/sda' (or whatever device it is) so that the kernel will re-determine the drive size. And I'm sure that you meant to tell us what kernel version this is.... -- ~Randy ------------------------------------------------------- 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
