Linuxシステムディスク操作記録

2995 ワード

文書ディレクトリ

  • 1 ddで作成するシステム起動盤
  • パーティション
  • 3マウントパーティション
  • 3.1命令行下操作
  • 3.2グラフィックインタフェース操作
  • 4 swapパーティション
  • を設定する.
  • Reference

  • 1 ddでシステム起動盤を作成する

    $ sudo fdisk -l #        
    #          u  /dev/sdb
    $ sudo umount /dev/sdb* #  U 
    #      'target is busy',      
    $ umount -l /dev/sdb*
    $ sudo mkfs.vfat /dev/sdb*  #      FAT  ,linux     mkfs.ext4
    # iso     status=progress       
    $ sudo dd bs=4M if=/home/rivalak/Downloads/ubuntu-18.04.1-desktop-amd64.iso of=/dev/sdb status=progress
    #           
    sync
    

    2パーティション

  • コンピュータを起動し、装着したばかりの起動ディスク
  • をロードします.
  • クリックubuntuシステム
  • 試用
  • GPartedパーティションツールを開く操作を開始するには、fdiskコマンドパーティション
  • を使用します.

    3マウント・パーティション


    3.1コマンドラインでの操作

    $ mkdir ~/Workspace/adhoc
    $ sudo mount /dev/sda ~/Workspace/adhoc
    #         
    $ df -h
    #         
    $ blkid #    UUID
    $ vim /etc/fstab #         
    

    3.2グラフィックインタフェースの操作


    これにより、グラフィックインタフェースの下でディスクをフォーマットし、希望する名前を変更してマウントできます.
    You could edit the/etc/fstab file in a text editor like such as gedit or subl, or you could just do this:
  • Make sure the Hard Drive is connected.
  • Open Disks
  • Click on the Hard Drive you want to modify.
  • Click on the Partition you want to modify.
  • Click on the gear icon
  • Click on Edit Mount Options
  • Move the Automatic Mount Options slider to Off
  • Type in the path you want the Partition mounted too in the Mount Point text box. Click the OK button. ここでは、このディスクのlabelと名前を変更しないでください.そうしないと、
  • はマウントされません.
  • Type in the super-user password. This will make the necessary changes to the/etc/fstab file for you.

  • 4 swapパーティションの設定


    swapパーティションの作成

    Reference

  • syncコマンド解析
  • Linuxの下でハードディスクのマウント、パーティションの削除、パーティションのフォーマット、アンインストール方法
  • を行います.
  • How to set default mount point? [duplicate]