Prev: WANTED BUSINESS & TECH COMPUTING TELECOM AND NETWORKING EQUIPMENT & SOFTWARE
Next: ftp whole directories..windows solaris file transfer
From: hadi motamedi on 20 Jun 2010 02:17 > I think you just copied the files over. I would try copying the raw disk, /dev/rdsk/c0t0d0s2. This should copy all boot sectors and files. Excuse me, you mean the same procedure but '/dev/dsk/c0t0d0s2' being replaced with '/dev/rdsk/c0t0d0s2' ? Please comment.
From: Andrew Gabriel on 20 Jun 2010 06:19 In article <56787cf5-d296-479a-b813-bc463eb70317(a)d37g2000yqm.googlegroups.com>, hadi motamedi <motamedi24(a)gmail.com> writes: >> Why did you ask for the partition that represents the whole physical >> disk, and then skip parts of it? �Doesn't qemu want the actual image >> of the physical disk, rather than some piece of it? >> >> The parts of the physical disk you skipped are often the most important >> for bootable drives. �The first few sectors contain the disk label or >> boot block with map of which sectors belong to what paritions. > Thank you for your reply. I actually collected whole of the disk > info , as the followings : > #dd if=/dev/dsk/c0t0d0s2 bs=512 count=1966080 |gzip -c>/tmp/ > solaris8.disk-pt1.gz > #dd if=/dev/dsk/c0t0d0s2 bs=512 count=1966080 skip=3932160 |gzip -c>/ > tmp/solaris8.disk-pt2.gz So why are you not copying sectors 1966080-3932160? > #dd if=/dev/dsk/c0t0d0s2 bs=512 count=1966080 skip=5898240 |gzip -c>/ > tmp/solaris8.disk-pt3.gz > #dd if=/dev/dsk/c0t0d0s2 bs=512 count=1966080 skip=7864320 |gzip -c>/ > tmp/solaris8.disk-pt4.gz > And so on. > After about forty steps of iteration , the 'dd' didn't get through > anymore. > So I decompressed all of them and concatenate : > C:\copy /b solaris8.disk-pt1+solaris8.disk-pt2+solaris8.disk-pt3+..... > +solaris8.disk-pt39 solaris8.disk > At the end, the 'solaris8.disk' file size is about 38GB. As you see, I > have collected whole of the disk. But I don't know why this > 'solaris8.disk' image is not bootable on my qemu-system-sparc?Please > comment. -- Andrew Gabriel [email address is not usable -- followup in the newsgroup]
From: hadi motamedi on 20 Jun 2010 06:54 > So why are you not copying sectors 1966080-3932160? Excuse me, what do you mean? As you see, it is being copied on the following line: #dd if=/dev/dsk/c0t0d0s2 bs=512 count=1966080 skip=3932160 |gzip -c>/ tmp/solaris8.disk-pt2.gz Can you please correct me if you find mistake in my procedure?
From: hadi motamedi on 20 Jun 2010 06:59 > So why are you not copying sectors 1966080-3932160? Actually, because of lack of sufficient space on any of the slices, I want to break it into block sizes and then get each segment via ftp. Please correct me if my procedure does not work.
From: Paul Gress on 20 Jun 2010 11:46
On 06/20/10 02:17 AM, hadi motamedi wrote: >> I think you just copied the files over. I would try copying the raw disk, /dev/rdsk/c0t0d0s2. This should copy all boot sectors and files. > Excuse me, you mean the same procedure but '/dev/dsk/c0t0d0s2' being > replaced with '/dev/rdsk/c0t0d0s2' ? Please comment. > Yes, It's my understanding to get a disk image you need the whole disk, so copy the raw disk. It copies all formating information that you use to boot from. Paul |