Use 'eject /dev/sda' after you remove the device to purge the old data from the kernel.
This works better in 2.6 Matt On Fri, Feb 06, 2004 at 04:18:53PM -0600, Gregory Gulik 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? > > > > > -- > 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 -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver A: The most ironic oxymoron wins ... DP: "Microsoft Works" A: Uh, okay, you win. -- A.J. & Dust Puppy User Friendly, 1/18/1998
pgp00000.pgp
Description: PGP signature
