Usbcopy fails with the error message sol-11_1-live-x86.usb is not a multiple of 512 | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Usbcopy fails with the error message sol-11_1-live-x86.usb is not a multiple of 512

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-09-2013
taltamir taltamir is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 4 April 2013, 1:45 PM EDT
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Usbcopy fails with the error message sol-11_1-live-x86.usb is not a multiple of 512

I am trying to create a live image of solaris 11.1.
I have used
Code:
#pkg image-update

to upgrade from 11 to 11.1 already. (since only 11.1 can make images of 11.1 due to using new grub)

then from within 11.1 I used
Code:
pkg install install distribution-constructor

to get latest usbcopy that should be compatible with the new GRUB

then I tried:

Code:
taltamir@new-host:/tank/share/My Downloads (Software)/Operating Systems/Solaris# usbcopy sol-11_1-live-x86.usb
Found the following USB devices:
0:    /dev/rdsk/c9t0d0p0    1.9 GB    CBM      USB 2.0          8.07
Enter the number of your choice: 0

WARNING: All data on your USB storage will be lost.
Are you sure you want to install to
CBM USB 2.0 8.07, 1900 MB at /dev/rdsk/c9t0d0p0 ?  (y/n) y
lofiadm: size of /tank/share/My Downloads (Software)/Operating Systems/Solaris/sol-11_1-live-x86.usb is not a multiple of 512

Error:

: Failed to lofiadm sol-11_1-live-x86.usb

What is the problem?

Last edited by taltamir; 01-09-2013 at 01:22 PM..
Sponsored Links
    #2  
Old 01-10-2013
hicksd8 hicksd8 is online now Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 21 November 2014, 3:02 PM EST
Location: Cornwall, UK
Posts: 852
Thanks: 46
Thanked 159 Times in 144 Posts
The problem is that the image you are writing out (to USB) has to be a multiple of 512 for lofiadm to be happy.

(If it's not a multiple of 512 then it's not a valid image.)

So you either need to find out why the created image isn't a multiple of 512 or pad it out using a fudge and see if it works.

Typical fudge would be


Code:
 
dd if=old.iso of=new.iso obs=512 conv=sync

to fix the size issue.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sol 11 express X86:Dual monitor config,max resolution urry_buh Solaris 0 05-20-2011 03:41 AM
Can't boot from burned Sol 10 x86 DVD bluescreen Solaris 0 10-04-2010 06:18 PM
GCC for X86 on SOL 10 kumarmani Solaris 4 06-08-2010 11:15 AM
How to capture actual error message when a command fails to execute prathima Shell Programming and Scripting 3 04-26-2009 10:21 PM
Dual boot x86 Sol 10, and Linux jdel80 UNIX for Advanced & Expert Users 0 10-05-2005 01:57 PM



All times are GMT -4. The time now is 04:20 PM.