d hee
2013-Mar-07 14:56 UTC
[libvirt-users] KVM Raw Format Image Causes lseek Error when Copying
When copying a raw KVM image to my usb drive I got a lseek error...why is this? localhost temp # lr /kvm_guests/newInstall.img? -rw-r--r-- 1 root root 10G Oct 22 05:36 /kvm_guests/newInstall.img localhost temp # localhost temp # cp /kvm_guests/newInstall.img . ? ? ? ? ? ? ? ? ? ? ? cp: cannot lseek `./newInstall.img': Invalid argument localhost temp # df -h Filesystem ? ? ?Size ?Used Avail Use% Mounted on /dev/sdc1 ? ? ? ?15G ?7.2G ?7.8G ?48% /mnt/temp After copy error, only 4 Gigs were copied: localhost temp # lr total 7.2G drwxr-xr-x ?2 root root 8.0K Mar ?6 18:10 . drwxr-xr-x 16 root root 4.0K Nov ?6 09:10 .. -rwxr-xr-x ?1 root root 4.0G Mar ?6 18:16 newInstall.img -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130307/0a5f4f1b/attachment.htm>
Felicitus
2013-Mar-07 15:08 UTC
[libvirt-users] KVM Raw Format Image Causes lseek Error when Copying
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> When copying a raw KVM image to my usb drive I got a lseekerror...why is this? Which filesystem are you using? 4G sounds like NTFS or FAT. Regards, Felicitus -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJROK19AAoJEFfhxMvO1P2NiqgH/j2L/5ohIPebICD+Z1rGJazO cXLh8cpuUJpRV337YKV+yWHaEC7Qx2emIFiUjFXXf/Ytb+UCi3LDh93A9dLnC0Cq oAlp1hMmd6vOtiAdRFVUw3w4bUnadK2sR4VXcqroBcPSO8j5QreizRiLNXmSkumg iWKD9TKNNUF8zf5cr/TYsxFfmCHqbcJF4OjirUNEAsi1OJcwI23qWVqYOH7A7wwd gss7gen9wki92dCX7HB0bJIQuQCwL55AAPWQJu/7fAuBHaSL3hFREHT2OUo5SByv +l+VrELWFBSZec2AsWZtgyeAUqPP2KDzLf8KIr3V86AmmgqR3wwNke19ORox6vI=hRr8 -----END PGP SIGNATURE-----
Eric Blake
2013-Mar-07 15:10 UTC
[libvirt-users] KVM Raw Format Image Causes lseek Error when Copying
On 03/07/2013 07:56 AM, d hee wrote:> When copying a raw KVM image to my usb drive I got a lseek error...why is this?Because most USB sticks are default-formated as FAT filesystems, and FAT cannot hold a file larger than 4GB. Reformat your USB stick to use ext4 or other modern filesystem. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 621 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130307/c14afe75/attachment.sig>