Thứ Năm, 21 tháng 1, 2021

Thủ tục Format và mount file system Linux


Fdisk -l

Disk /dev/vda: 107.4 GB, 107374182400 bytes

255 heads, 63 sectors/track, 13054 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00037055

 

   Device Boot  Start     End  Blocks   Id  System

/dev/vda1   *           1   13054   104855231   83  Linux

 

Disk /dev/vdb: 442.4 GB, 442381631488 bytes

5 heads, 20 sectors/track, 8640266 cylinders

Units = cylinders of 100 * 512 = 51200 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x13000add

 

   Device Boot  Start     End  Blocks   Id  System

/dev/vdb1          21 8640267   432012288   83  Linux

 

Disk /dev/vdc: 107.4 GB, 107374182400 bytes

13 heads, 44 sectors/track, 366634 cylinders

Units = cylinders of 572 * 512 = 292864 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xc7487260

 

   Device Boot  Start     End  Blocks   Id  System

/dev/vdc1           366635   104856576   83  Linux

 

Disk /dev/vdd: 107.4 GB, 107374182400 bytes

13 heads, 44 sectors/track, 366634 cylinders

Units = cylinders of 572 * 512 = 292864 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xf3e5e362

 

   Device Boot  Start     End  Blocks   Id  System

/dev/vdd1           366635   104856576   83  Linux

 

Disk /dev/vde: 322.1 GB, 322122547200 bytes

7 heads, 6 sectors/track, 14979657 cylinders

Units = cylinders of 42 * 512 = 21504 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xcb0ddcfc

 

   Device Boot  Start     End  Blocks   Id  System

/dev/vde1          49 14979658   314571776   83  Linux

 

Disk /dev/vdf: 107.4 GB, 107374182400 bytes

16 heads, 63 sectors/track, 208050 cylinders

Units = cylinders of 1008 * 512 = 516096 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x62411265

 

   Device Boot  Start     End  Blocks   Id  System

/dev/vdf1           208050   104857168+  83  Linux

 

Disk /dev/vdg: 214.7 GB, 214748364800 bytes --> Vùng mới cấp

16 heads, 63 sectors/track, 416101 cylinders

Units = cylinders of 1008 * 512 = 516096 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

fdisk /dev/vdg

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0x6105d121.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

 

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

 

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

      switch off the mode (command 'c') and change display units to

      sectors (command 'u').

 

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4):

Value out of range.

Partition number (1-4):

Value out of range.

Partition number (1-4):

Value out of range.

Partition number (1-4):

Value out of range.

Partition number (1-4): 1

First cylinder (1-416101, default 1):

Using default value 1

Last cylinder, +cylinders or +size{K,M,G} (1-416101, default 416101):

Using default value 416101

 

Command (m for help):

Command (m for help):

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

Umount -v

/dev/vda1 on / type ext4 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")

/dev/vdb1 on /u02 type ext4 (rw)

/dev/vdc1 on /u03 type ext4 (rw)

/dev/vdd1 on /u04 type ext4 (rw)

/dev/vdf1 on /u05 type ext4 (rw)

/dev/vde1 on /backup type ext4 (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

mkfs.ext4 /dev/vdg1

mke2fs 1.41.12 (17-May-2010)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

13107200 inodes, 52428718 blocks

2621435 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=4294967296

1600 block groups

32768 blocks per group, 32768 fragments per group

8192 inodes per group

Superblock backups stored on blocks:

     32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

     4096000, 7962624, 11239424, 20480000, 23887872

 

Writing inode tables: done                           

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 22 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

Mke2fs (không dùng)

 

mkdir /u06

 

Vi /etc/fstab

 

#

# /etc/fstab

# Created by anaconda on Mon Dec 22 09:39:45 2014

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

#

UUID=a0e79d80-740e-4ed0-9408-d762af1dfb72 /                   ext4 defaults    1 1

tmpfs               /dev/shm            tmpfs   defaults    0 0

devpts              /dev/pts            devpts  gid=5,mode=620  0 0

sysfs               /sys                sysfs   defaults    0 0

proc                /proc               proc defaults    0 0

/swapfile           swap                swap defaults    0 0

LABEL=/u02          /u02                ext4 defaults    1 2

LABEL=/u03          /u03                ext4 defaults    1 2

LABEL=/u04          /u04                ext4 defaults    1 2

LABEL=/u05          /u05                ext4 defaults    1 2

LABEL=/backup       /backup  ext4    defaults    1 2

/dev/vdg1   /u06    ext4 defaults 1 2

mount -a

 

df -h

Filesystem  Size  Used Avail Use% Mounted on

/dev/vda1    99G   50G   44G  54% /

tmpfs       7.8G 0  7.8G   0% /dev/shm

/dev/vdb1   406G  374G   12G  98% /u02

/dev/vdc1    99G   93G  321M 100% /u03

/dev/vdd1    99G   91G  3.0G  97% /u04

/dev/vdf1    99G   74G   20G  80% /u05

/dev/vde1   296G  129G  152G  46% /backup

/dev/vdg1   197G   60M  187G   1% /u06


==================================
KẾT NỐI VỚI CHUYÊN GIA TRẦN VĂN BÌNH:
📧 Mail: binhoracle@gmail.com
☎️ Mobile: 0902912888
⚡️ Skype: tranbinh48ca
👨 Facebook: https://www.facebook.com/BinhOracleMaster
👨 Inbox Messenger: https://m.me/101036604657441 (profile)
👨 Fanpage: https://www.facebook.com/tranvanbinh.vn
👨 Inbox Fanpage: https://m.me/tranvanbinh.vn
👨👩 Group FB: https://www.facebook.com/groups/DBAVietNam
👨 Website: https://www.tranvanbinh.vn
👨 Blogger: https://tranvanbinhmaster.blogspot.com
🎬 Youtube: http://bit.ly/ytb_binhoraclemaster
👨 Tiktok: https://www.tiktok.com/@binhoraclemaster?lang=vi
👨 Linkin: https://www.linkedin.com/in/binhoracle
👨 Twitter: https://twitter.com/binhoracle
👨 Địa chỉ: Tòa nhà Sun Square - 21 Lê Đức Thọ - Phường Mỹ Đình 1 - Quận Nam Từ Liêm - TP.Hà Nội

#Thủ tục Format và mount file system Linux
#học oracle database
#Oracle Database Administration
#Oracle Tutorial
#Oracle DBA
#tự học oracle
#oca
#ocp

ĐỌC NHIỀU

Trần Văn Bình - Oracle Database Master