MathLibre/Debian/2013

USB bootable MathLibre

OSの書き込み

  1. 4GB以上のUSBメモリーディスクを用意します.(8GB以上推奨)
  2. MathLibre/Debian/2013 DVDを起動します.
  3. USBメモリーディスクを接続します.
  4. どのデバイスに接続しているかを調べます.
    ls -l /dev/disk/by-id | grep usb
  5. /dev/sdb がUSBメモリーディスクとします.以下の命令を実行してDVD(/dev/sr0)を書き込みます.
    sudo dd if=/dev/sr0 of=/dev/sdb

注意

継続的保存領域の作成

gparted もしくは fdisk を用いて継続的な保存領域を作成します.すでに /dev/sdb1 は先ほどの作業で作成されているので,その後ろに新たな領域 /dev/sdb2 を作成します.

  1. fdisk を用いて /dev/sdb のパーティションテーブルを作成します.
    sudo fdisk /dev/sdb
    
    GNU Fdisk 1.2.4
    Copyright (C) 1998 - 2006 Free Software Foundation, Inc.
    This program is free software, covered by the GNU General Public License.
     
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    Using /dev/sdb
  2. パーティションテーブルを表示(print)します
    Command (m for help): p
    
    Disk /dev/sdb: 7 GB, 7819837440 bytes
    235 heads, 32 sectors/track, 2031 cylinders
    Units = cylinders of 7520 * 512 = 3850240 bytes
    
       Device Boot      Start         End      Blocks   Id  System 
    /dev/sdb1   *           1        1021     3838944   17  Hidd HPFS/NTFS
  3. 新しい(new)パーティションを追加します
    Command (m for help):  n    
                                                   
    Partition type                                                            
       e   extended
       p   primary partition (1-4)
  4. プライマリパーティションを選択します
    p
  5. /dev/sdb1 の後ろからパーティションを作成します(/dev/sdb1 の End が 1021 であることに注意)
    First cylinder  (default 0cyl): 1021                                      
  6. Enter で最後まで作成します
    Last cylinder or +size or +sizeMB or +sizeKB  (default 2030cyl):          
  7. パーティションテーブルを表示して確認します
    Command (m for help): p
    
    Disk /dev/sdb: 7 GB, 7819837440 bytes
    235 heads, 32 sectors/track, 2031 cylinders
    Units = cylinders of 7520 * 512 = 3850240 bytes
    
       Device Boot      Start         End      Blocks   Id  System 
    /dev/sdb1   *           1        1021     3838944   17  Hidd HPFS/NTFS
    /dev/sdb2            1021        2031     3793840   83  Linux
  8. パーティションテーブルをディスクに書き込みます(write)
    Command (m for help): w
                                                 
    Information: Don't forget to update /etc/fstab, if necessary.             
    
    
    Writing all changes to /dev/sdb.
  9. 作成した領域に persistence という名前をつけてフォーマットします.
    sudo mkfs.ext4 /dev/sdb2 -L persistence
  10. persistence.conf というファイルを /dev/sdb2 に作成します.
    sudo -s
    mount -t ext4 /dev/sdb2 /media
    echo "/ union" > /media/persistence.conf
    umount /media
    exit

A4 pdf

参考


添付ファイル: fileusbstick.pdf 3824件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2019-01-24 (木) 12:57:48