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


 
Thread Tools Search this Thread
Operating Systems Solaris Usbcopy fails with the error message sol-11_1-live-x86.usb is not a multiple of 512
# 1  
Old 01-09-2013
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..
# 2  
Old 01-10-2013
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Solaris Live Media x86 Install

Unix Buddies Burned download to DVD-R. Booted it. It dropped me at a command line. Is it working properly? Thanks! (7 Replies)
Discussion started by: Solaris User
7 Replies

2. Solaris

DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive).

Hello, I have a set-up in which I am executing a build from Jenkins on a Solaris 10 Server connecting via sshexec task in ANT. On triggering the build, it is throwing below error: com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmParameterException: DH key size... (2 Replies)
Discussion started by: nishant.kansal@
2 Replies

3. BSD

Freebsd live usb

Hello. I'm going to make freebsd live usb based on FreeBSD-8.3-RELEASE-i386-livefs.iso. The iso is 257 Megabytes, but after i copy its content to usb drive its volume increases to 971 Megabytes. I tried different methods of copying (tar,cp,cpio) but with the same result. Could anyone help? (0 Replies)
Discussion started by: urello
0 Replies

4. Solaris

Sol 11 express X86:Dual monitor config,max resolution

Hello! I have some X86 desktop computer with G45 embedded dual-head video. Two monitors can be configured, but with "small" problem: the summ of dimensions in any direction (vert or horis) can't exceed 1680 pix- max sizeof virtual screen area. Attempts to edit "videoram" parameter in xorg.conf... (0 Replies)
Discussion started by: urry_buh
0 Replies

5. Linux

Kexec with Live USB/CD

Hello Recently I found this (for me) really usefull tool kexec which can load a new Kernel while running one. I tested it some times with the same kernel I was running, "rebooting" the system without powering it off at any time :D But I need kexec basically just for live usbs. I want to start... (17 Replies)
Discussion started by: al0x
17 Replies

6. Solaris

Can't boot from burned Sol 10 x86 DVD

Hi all- I am trying to boot from a Solaris 10 DVD which I burned from the ISO I d/l from Sun(Oracle). I checked the byte counts of the image on Sun's website and my system and they are the same. I and using cdrecord from Schilly and burning the DVD like so: cdrecord -v dev=0,0,0 -dao... (0 Replies)
Discussion started by: bluescreen
0 Replies

7. Solaris

GCC for X86 on SOL 10

Need help with GCC package. I did downloaded the same from sunfreeware.com for i86, however after doing the unzip I am unable to add the same with pkgadd as I am unable to get the sun standard format as SUNWgcc on my system. Thanks (4 Replies)
Discussion started by: kumarmani
4 Replies

8. Solaris

Sun Live Upgrade - lucreate fails

Hi, I currently have one BE and would like to create an ABE. # lustatus BE_name Complete Active ActiveOnReboot CopyStatus ------------------------------------------------------------------------ coolthreads yes yes yes - But... (3 Replies)
Discussion started by: pgarousi
3 Replies

9. Shell Programming and Scripting

How to capture actual error message when a command fails to execute

I want to capture actual error message in case the commands I use in my shell script fails. For eg: ls -l abc.txt 2>>errorlog.txt In this case I understand the error message is written to the errorlog.txt and I assume its bacause the return code from the command ls -l abc might return 2 if... (3 Replies)
Discussion started by: prathima
3 Replies

10. UNIX for Advanced & Expert Users

Dual boot x86 Sol 10, and Linux

I've loaded sol 10, and I left 20 Gig of 70 free, I can't seem to find a straight forward proc. for loading the Linux RH. Does anyone have one, or can they point me to one ? (0 Replies)
Discussion started by: jdel80
0 Replies
Login or Register to Ask a Question