LoginSignup
1
1

More than 5 years have passed since last update.

Macを使ってWIndows PCにLinuxを入れたときの備忘録

Last updated at Posted at 2017-08-04

Windows 7 Professionalでシステム言語の変更が面倒くさかったので、Ubuntu Mateをインスコした時の備忘録。

準備

  • USBメモリー(8.0 GB)
  • Mac
  • Windows PC

USBメモリーのフォーマット

USBをシリアルポートに挿して、Disk Utility Appを使用してフォーマットする

  • Disk Utility App
    • Format: MS-DOS(FAT)
    • Schema: Master Boot Recode

ISOファイルをDL

  • 次のURLから、CPUのアーキテクチャに合わせたISOファイルをDLする
  • 今回はubuntu-mate-16.04.3-desktop-i386.isoをDLした

ISOファイルをIMGファイルへ変換

  • ターミナルから次のコマンドでファイルの変換を行なう
$ hdiutil convert -format UDRW -o ./mate.img ./ubuntu-mate-16.04.3-desktop-i386.iso
Reading Master Boot Record (MBR : 0)…
Reading Ubuntu-MATE 16.04.3 LTS i386     (Apple_ISO : 1)…
Reading  (Windows_NTFS_Hidden : 2)…
.............................................................................................
Elapsed Time:  6.058s
Speed: 273.6Mbytes/sec
Savings: 0.0%
created: /Users/os10/Desktop/mate.img.dmg
$ # 処理が終わるとmate.img.dmgというファイルが作成される

ファイルの拡張子の変更

余計なdmg拡張子が付いているため

$ mv ./mate.img.dmg ./mate.img

USBメモリーにUbuntu Mateをインストール

1. デフォルトのデバイスの確認

$ # USBメモリを抜いて、次のコマンドを打つ
$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            499.4 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
...

2. USBメモリのデバイスノードを確認

$ # USBメモリを挿して、次のコマンドを打つ
$ # 増分のdev/Diskが対象のデバイスのノード
$ diskutil list
...
/dev/disk6 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *16.1 GB    disk6
   1:                 DOS_FAT_32 U                       16.1 GB    disk6s1

3. USBメモリのデバイスをアンマウント

$ # 次のコマンドを打つ
$ diskutil unmountDisk /dev/disk6
Unmount of all volumes on disk6 was successful

5. USBメモリにインスコ

$ # 次のコマンドは多少時間がかかる
$ sudo dd if=./mate.img of=/dev/disk6 bs=1m
1587+0 records in
1587+0 records out
1664090112 bytes transferred in 460.070103 secs (3617036 bytes/sec)
sudo dd if=./mate.img of=/dev/disk6 bs=1m  0.01s user 9.01s system 1% cpu 7:40.24 total

6. USBメモリの取り出し

$ diskutil eject /dev/disk6
Disk /dev/disk6 ejected

WindowsにLinuxのインスコ

  • BIOSでUSBから起動の優先度をあげる
  • Ubuntu Mateをインストールする

参考文献

http://tacatakatca.hatenablog.com/entry/20140202/1391322723
http://qiita.com/kpkpkp/items/6664a1dba97198b984ec

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1