Giter Club home page Giter Club logo

gpart-note's Introduction

gpart-note

Add a new 8T disk to ubuntu with gpart.

1, find the disk name:

sudo fdisk -l

... Disk /dev/sdb: 7.3 TiB, 8001563222016 bytes, 15628053168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 4096 bytes / 33553920 bytes ...

So the /dev/sdb is the disk I need.

2, use parted to make th patition:

sudo parted /dev/sdb

Make label:

mklabel gpt

Format all the disk

mkpart primary 0 -1

print

quit

3, Check and format

lsblk

Then format it:

sudo mkfs.ext4 -F /dev/sdb1

Now the disk is ready. The user of this disk is root, so I

4, change the owner:

cd /media/cheng/

ls -al

drwxr-xr-x 8 cheng root 4096 8ๆœˆ 10 09:37 2c11f2a4-d08c-44eb-93b8-70a1658ced81

drwxr-xr-x 3 root root 4096 9ๆœˆ 1 13:45 fb49ce8d-832a-49d7-a402-aacef6dd4560

sudo chown cheng fb49ce8d-832a-49d7-a402-aacef6dd4560

Now the disk is installed in /media/cheng/fb49ce8d-832a-49d7-a402-aacef6dd4560

Ref:

https://www.cnblogs.com/yongpan/p/10919511.html

gpart-note's People

Contributors

chengchengcode avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.