I'm using an external USB case to duplicate a hard drive (using dd). I put the source drive in, used dd to create an image, and then swapped the source drive for the target. Used dd to write the image back onto the target drive. All well and good so far. Fdisk shows that the partition table on the destination drive is correct and all that... However, I'd like to check that the data on the partitions is all there, and in the right form. Trying to do a mount fails, though, because the system doesn't know about the new partition table (and thus the partitions). Is there a way to get the system to "reload" the usb device, and pick up the partitions, other than physically disconnecting the case from the machine and then reattaching it? (Incidentally, this is a SuSE 10.0 machine, fully updated/patched, if that matters,) Thanks! - Ian
Ian Marlier wrote:
Is there a way to get the system to "reload" the usb device, and pick up the partitions, other than physically disconnecting the case from the machine and then reattaching it?
unmount + mount should be enough. /Per Jessen, Zürich
On 5/29/06 11:01 AM, "Per Jessen" <per@computer.org> wrote:
Ian Marlier wrote:
Is there a way to get the system to "reload" the usb device, and pick up the partitions, other than physically disconnecting the case from the machine and then reattaching it?
unmount + mount should be enough.
It wasn't mounted to begin with. Attempting to mount the partition (sde2 in this case), gives this: bigmac:~ # mount /dev/sde2 /mnt mount: special device /dev/sde2 does not exist bigmac:~ # Somehow I need to get the usb subsystem to reread the device, so it'll find the new partition table and discover that sde2 does, in fact, exist...
Ian Marlier wrote:
unmount + mount should be enough.
It wasn't mounted to begin with.
Attempting to mount the partition (sde2 in this case), gives this: bigmac:~ # mount /dev/sde2 /mnt mount: special device /dev/sde2 does not exist bigmac:~ #
Somehow I need to get the usb subsystem to reread the device, so it'll find the new partition table and discover that sde2 does, in fact, exist...
Unload then load module usb-storage. /Per Jessen, Zürich
On 5/29/06 11:38 AM, "Per Jessen" <per@computer.org> wrote:
Ian Marlier wrote:
unmount + mount should be enough.
It wasn't mounted to begin with.
Attempting to mount the partition (sde2 in this case), gives this: bigmac:~ # mount /dev/sde2 /mnt mount: special device /dev/sde2 does not exist bigmac:~ #
Somehow I need to get the usb subsystem to reread the device, so it'll find the new partition table and discover that sde2 does, in fact, exist...
Unload then load module usb-storage.
Nice one, Per! Worked like a charm... - Ian
participants (2)
-
Ian Marlier
-
Per Jessen