Created
April 3, 2016 05:22
-
-
Save marcinantkiewicz/5f28b1a829322c53d8fe2255d3342098 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download page: | |
https://wiki.smartos.org/display/DOC/Download+SmartOS | |
USB image - 2g uncompressed: | |
Model: Lexar USB Flash Drive (scsi) | |
Disk /dev/sdb: 16.0GB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: msdos | |
Disk Flags: | |
Number Start End Size Type File system Flags | |
1 307kB 2000MB 2000MB primary fat32 boot, lba | |
sudo dd if=smartos-latest-USB.img of=/dev/sdb bs=1024 | |
1953125+0 records in | |
1953125+0 records out | |
2000000000 bytes (2.0 GB) copied, 800.017 s, 2.5 MB/s | |
$ find /mnt/ | |
/mnt/ | |
/mnt/platform | |
/mnt/platform/root.password | |
/mnt/platform/i86pc | |
/mnt/platform/i86pc/amd64 | |
/mnt/platform/i86pc/amd64/boot_archive.manifest | |
/mnt/platform/i86pc/amd64/boot_archive | |
/mnt/platform/i86pc/amd64/boot_archive.gitstatus | |
/mnt/platform/i86pc/amd64/boot_archive.hash | |
/mnt/platform/i86pc/kernel | |
/mnt/platform/i86pc/kernel/amd64 | |
/mnt/platform/i86pc/kernel/amd64/unix | |
/mnt/boot | |
/mnt/boot/grub | |
/mnt/boot/grub/stage1 | |
/mnt/boot/grub/stage2 | |
/mnt/boot/grub/stage2_eltorito | |
/mnt/boot/grub/menu.lst | |
$ cat /mnt/platform/root.password | |
aiphaiR4ikah4ex9 | |
# fdisk -l smartos-latest-USB.img | |
Disk smartos-latest-USB.img: 1.9 GiB, 2000000000 bytes, 3906250 sectors | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 512 bytes | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Disklabel type: dos | |
Disk identifier: 0x00000000 | |
Device Boot Start End Sectors Size Id Type | |
smartos-latest-USB.img1 * 600 3905999 3905400 1.9G c W95 FAT32 (LBA) | |
$ echo $((600*512)) | |
307200 | |
$ mount -o loop,offset=307200 smartos-latest-USB.img /mnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment