please take a look at this and this.
--[ preparing ]--
. download OpenSolaris file iso .
.. dlc.sun.com
.. genunix.org
.. ftp.df.lth.fc
. burn OpenSolaris file iso .
burn OpenSolaris file iso to CD/DVD with your favorite burning application (nero, cdrecord, k3b, brasero)
. booting OpenSolaris LiveCD.
set boot priority on BIOS to CD-ROM device and following instruction on the screen.
--[ make OpenSolaris LiveUSB ]--
. plug your FlashDisk in to USB port .
. open Terminal application .

. get device information about your FlashDisk .
[jack: ~ ] $ pfexec su -
[root: ~ ] # df
Filesystem 1K-blocks Used Available Use% Mounted on
/devices/ramdisk:a 201463 176183 5134 98% /
swap 425160 756 424404 1% /etc/svc/volatile
/devices/pci@0,0/pci-ide@1f,1/ide@0/sd@0,0:a 675050 675050 0 100%
/.cdrom /dev/lofi/1 2370064 2370064 0 100% /usr
/.cdrom/solarismisc.zlib 109016 109016 0 100% /mnt/misc
/.cdrom/pkg.zlib 60855 58877 1978 97% /mnt/pkg
/usr/lib/libc/libc_hwcap1.so.1 2370064 2370064 0 100% /lib/libc.so.1
/mnt/misc/opt 109016 109016 0 100% /opt swap 424420 16 424404 1% /tmp
swap 424432 28 424404 1% /var/run
swap 424412 8 424404 1% /root
swap 440820 16416 424404 4% /jack
/dev/dsk/c3t0d0s2 675050 675050 0 100% /media/osol-0811-99b-global
/dev/dsk/c5t0d0s0 3878022 681384 3196638 18% /media/USB Flash Disk
[root: ~ ]# rmformat
Looking for devices...
1. Logical Node: /dev/rdsk/c3t0d0p0
Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
Connected Device: HL-DT-ST DVD-RAM GH22NP20 1.01
Device Type: DVD Reader/Writer
Bus: IDE
Size: 659.2 MB
Label:
Access permissions: Medium is not write protected.
2. Logical Node: /dev/rdsk/c5t0d0p0
Physical Node: /pci@0,0/pci1043,8179@1d,7/storage@8/disk@0,0
Connected Device: UT163 USB Flash Disk 0.00
Device Type: Removable
Bus: USB
Size: 3.9 GB
Label: <None>
----------------------------
address partition : /dev/dsk/c5t0d0s0 (newfs, mount and save opensolaris data)
address logical : /dev/rdsk/c5t0d0p0 (fdisk, formated to ufs)
address MBR : /dev/rdsk/c5t0d0s0 (install GNU/GRUB)
---------------------------------------------
. format your FlashDisk to use UFS .
[root: ~ ] # umount /media/USB\ Flash\ Disk/
-- if your flashdisk mounted on /media/USB\ Flash\ Disk/ --
[root: ~ ] # fdisk -B /dev/rdsk/c5t0d0p0
[root: ~ ] # format -e /dev/rdsk/c5t0d0p0
selecting /dev/rdsk/c5t0d0p0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!
quit
format> quit
[root: ~ ] # newfs -m 0 /dev/dsk/c5t0d0s0
newfs: /dev/rdsk/c5t0d0s0 last mounted as /media/USB Flash Disk
newfs: construct a new file system /dev/rdsk/c5t0d0s0: (y/n)? y
/dev/rdsk/c5t0d0s0: 7876608 sectors in 1282 cylinders of 48 tracks, 128 sectors
3846.0MB in 81 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920, 6980512, 7078944, 7177376, 7275808, 7374240, 7472672, 7571104, 7669536, 7767968, 7866400
. copy all file and directory from opensolaris livecd to usb flashdisk .
[root: ~ ] # mkdir /root/liveusb
[root: ~ ] # mount /dev/dsk/c5t0d0s0 /root/liveusb/
[root: ~ ] # (cd /.cdrom/; find . | cpio -pdum /root/liveusb/)
1349520 blocks
. installing GNU/GRUB to MBR of usb pendrive .
[root: ~ ] # installgrub -mf /root/liveusb/boot/grub/stage1 /root/liveusb/boot/grub/stage2 /dev/rdsk/c5t0d0s0
stage1 written to partition 0 sector 0 (abs 4096)
stage2 written to partition 0, 267 sectors starting at 50 (abs 4146)
stage1 written to master boot sector
[root: ~ ] # umount /root/liveusb/
--[ testing ]--
set boot priority on BIOS to USB/FlashDisk device and following instruction on the screen.


--[ links ]--
+ http://www.google.com
+ http://www.opensolaris.org/os/
++++++++++++++++++++++++++++



0 komentar:
Post a Comment