Editing Solaris Boot CD slices.
Solaris boot iso's can contain several slices. Those slices are usually not acessable unless you burn the iso to a cd. But that is a waste of cd's, and I have to walk round to the server room to constantly insert in new discs.
I need to be able to modify the Solaris boot cd's to do some custom stuff during the boot process, so I need to be able to edit the disc, and then put it all back together into an iso again.
Using the info at Jumpstart server from ISO’s I created a slightly more complicated program to extract all the slices. This should produce an output with the same values that of prtvtoc does.
# ./extractslices.ksh ./sol-8-hw4-sparc-v1.iso ./sol-8-hw4-sparc-v1-s
Examining ./sol-8/sol-8-hw4-sparc-v1.iso
Partition Start Length File
0 0 1006720 ./sol-8-hw4-sparc-v1-s0
1 1006720 184320 ./sol-8-hw4-sparc-v1-s1
2 1191040 5120 ./sol-8-hw4-sparc-v1-s2
3 1196160 5120 ./sol-8-hw4-sparc-v1-s3
4 1201280 5120 ./sol-8-hw4-sparc-v1-s4
5 1206400 5120 ./sol-8-hw4-sparc-v1-s5
6 0 0 Zero Length Partition
7 0 0 Zero Length Partition
Then to do the edits...
# lofiadm -a /sol-8-hw4-sparc-v1-s1 /dev/lofi/1
# mount -F ufs /dev/lofi/1 /mnt
Make edits to /mnt
# umount /mnt
# lofiadm -d /dev/lofi/1
# cat sol-8-hw4-sparc-v1-s* > newcd.iso
Burn and go!
| Attachment | Size |
|---|---|
| extractslices.ksh | 1.33 KB |
Recent comments
19 weeks 1 day ago
28 weeks 1 day ago
1 year 2 weeks ago
1 year 26 weeks ago
1 year 26 weeks ago
2 years 6 weeks ago
2 years 9 weeks ago
2 years 10 weeks ago
2 years 11 weeks ago
2 years 11 weeks ago