标签:data linux lvm proc crash eve sep cst esc label
个人原创博客,转载请注明,否则要负法律责任
2017-09-29-14:46:25
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       45G  3.6G   39G   9% /
tmpfs                 7.8G   72K  7.8G   1% /dev/shm
/dev/sda1             477M   42M  410M  10% /boot
/dev/mapper/VolGroup-lv_home
                      4.3G  8.9M  4.1G   1% /home
[root@localhost ~]# fdisk -l
Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 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: 0x000683b3
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        7298    58101760   8e  Linux LVM
Disk /dev/sdb: 6595.1 GB, 6595056500736 bytes
255 heads, 63 sectors/track, 801803 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: 0x4e004dfa
Device Boot Start End Blocks Id System
Disk /dev/mapper/VolGroup-lv_root: 48.7 GB, 48733618176 bytes
255 heads, 63 sectors/track, 5924 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: 0x00000000
Disk /dev/mapper/VolGroup-lv_swap: 6002 MB, 6002049024 bytes
255 heads, 63 sectors/track, 729 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: 0x00000000
Disk /dev/mapper/VolGroup-lv_home: 4756 MB, 4756340736 bytes
255 heads, 63 sectors/track, 578 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: 0x00000000
[root@localhost ~]# cd /dev/
[root@localhost dev]# ls
autofs           crash  hidraw0    loop1  lp3                 null    ram10  ram6    sda1      systty  tty16  tty25  tty34  tty43  tty52  tty61  uinput   vcs5         VolGroup
block            disk   hidraw1    loop2  MAKEDEV             nvram   ram11  ram7    sda2      tty     tty17  tty26  tty35  tty44  tty53  tty62  urandom  vcs6         watchdog
bsg              dm-0   hidraw2    loop3  mapper              oldmem  ram12  ram8    sdb       tty0    tty18  tty27  tty36  tty45  tty54  tty63  usbmon0  vcsa         zero
btrfs-control    dm-1   hpet       loop4  mcelog              port    ram13  ram9    sg0       tty1    tty19  tty28  tty37  tty46  tty55  tty7   usbmon1  vcsa1
bus              dm-2   hugepages  loop5  md                  ppp     ram14  random  sg1       tty10   tty2   tty29  tty38  tty47  tty56  tty8   usbmon2  vcsa2
char             fb     hvc0       loop6  md127               ptmx    ram15  raw     shm       tty11   tty20  tty3   tty39  tty48  tty57  tty9   vcs      vcsa3
console          fb0    input      loop7  mem                 ptp0    ram2   root    snapshot  tty12   tty21  tty30  tty4   tty49  tty58  ttyS0  vcs1     vcsa4
core             fd     kmsg       lp0    net                 pts     ram3   rtc     stderr    tty13   tty22  tty31  tty40  tty5   tty59  ttyS1  vcs2     vcsa5
cpu              full   log        lp1    network_latency     ram0    ram4   rtc0    stdin     tty14   tty23  tty32  tty41  tty50  tty6   ttyS2  vcs3     vcsa6
cpu_dma_latency  fuse   loop0      lp2    network_throughput  ram1    ram5   sda     stdout    tty15   tty24  tty33  tty42  tty51  tty60  ttyS3  vcs4     vga_arbiter
查看上面的内容无/dev/sdb1
[root@localhost ~]# parted /dev/sdb
GNU Parted 2.1
使用 /dev/sdb
Welcome to GNU Parted! Type ‘help‘ to view a list of commands.
(parted) p                                                                
警告: /dev/sdb contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  Perhaps it was corrupted -- possibly by a
program that doesn‘t understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?
是/Yes/否/No? yes
Model: DELL PERC 6/i Adapter (scsi)
Disk /dev/sdb: 6595GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  标志
 1      1049kB  6400GB  6400GB               gpt1
(parted) p                                                                
警告: /dev/sdb contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  Perhaps it was corrupted -- possibly by a
program that doesn‘t understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?
是/Yes/否/No? yes
Model: DELL PERC 6/i Adapter (scsi)
Disk /dev/sdb: 6595GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  标志
 1      1049kB  6400GB  6400GB               gpt1
(parted) P                                                                
警告: /dev/sdb contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  Perhaps it was corrupted -- possibly by a
program that doesn‘t understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?
是/Yes/否/No? y
Model: DELL PERC 6/i Adapter (scsi)
Disk /dev/sdb: 6595GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  标志
 1      1049kB  6400GB  6400GB               gpt1
(parted) run 1                                                            
  align-check TYPE N                        check partition N for TYPE(min|opt) alignment
  check NUMBER                             do a simple check on the file system
  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkfs NUMBER FS-TYPE                      make a FS-TYPE file system on partition NUMBER
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  mkpartfs PART-TYPE FS-TYPE START END     make a partition with a file system
  move NUMBER START END                    move partition NUMBER
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  resize NUMBER START END                  resize partition NUMBER and its file system
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright information of GNU Parted
  align-check TYPE N                        check partition N for TYPE(min|opt) alignment
  check NUMBER                             do a simple check on the file system
  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkfs NUMBER FS-TYPE                      make a FS-TYPE file system on partition NUMBER
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  mkpartfs PART-TYPE FS-TYPE START END     make a partition with a file system
  move NUMBER START END                    move partition NUMBER
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  resize NUMBER START END                  resize partition NUMBER and its file system
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright information of GNU Parted
(parted) mklabel
新的磁盘标签类型? gpt                                                    
警告: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
是/Yes/否/No? yes                                                         
警告: /dev/sdb contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  Perhaps it was corrupted -- possibly by a
program that doesn‘t understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?
是/Yes/否/No? yse                                                         
parted: invalid token: yse
是/Yes/否/No? y                                                           
(parted) p                                                                
Model: DELL PERC 6/i Adapter (scsi)
Disk /dev/sdb: 6595GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name 标志
(parted) mkpart                                                           
分区名称?  []? gpt1                                                      
文件系统类型?  [ext2]? ext4                                              
起始点? 1                                                                
结束点? 6400GB                                                           
(parted) P
Model: DELL PERC 6/i Adapter (scsi)
Disk /dev/sdb: 6595GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  标志
 1      1049kB  6400GB  6400GB               gpt1
(parted) Q                                                                
信息: You may need to update /etc/fstab.                                  
[root@localhost ~]# fdisk -l
Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 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: 0x000683b3
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        7298    58101760   8e  Linux LVM
WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdb‘! The util fdisk doesn‘t support GPT. Use GNU Parted.
Disk /dev/sdb: 6595.1 GB, 6595056500736 bytes
255 heads, 63 sectors/track, 801803 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: 0x00000000
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  GPT
Disk /dev/mapper/VolGroup-lv_root: 48.7 GB, 48733618176 bytes
255 heads, 63 sectors/track, 5924 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: 0x00000000
Disk /dev/mapper/VolGroup-lv_swap: 6002 MB, 6002049024 bytes
255 heads, 63 sectors/track, 729 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: 0x00000000
Disk /dev/mapper/VolGroup-lv_home: 4756 MB, 4756340736 bytes
255 heads, 63 sectors/track, 578 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: 0x00000000
[root@localhost ~]# ls /dev/
autofs           crash  hidraw0    loop1  lp3                 oldmem  ram12  ram8    sdb       tty    tty17  tty26  tty35  tty44  tty53  tty62   urandom  vcs6         watchdog
block            disk   hidraw1    loop2  MAKEDEV             port    ram13  ram9    sdb1      tty0   tty18  tty27  tty36  tty45  tty54  tty63   usbmon0  vcsa         zero
bsg              dm-0   hidraw2    loop3  mapper              ppp     ram14  random  sg0       tty1   tty19  tty28  tty37  tty46  tty55  tty7    usbmon1  vcsa1
btrfs-control    dm-1   hpet       loop4  mcelog              ptmx    ram15  raw     sg1       tty10  tty2   tty29  tty38  tty47  tty56  tty8    usbmon2  vcsa2
bus              dm-2   hugepages  loop5  mem                 ptp0    ram2   root    shm       tty11  tty20  tty3   tty39  tty48  tty57  tty9    vcs      vcsa3
char             fb     hvc0       loop6  net                 pts     ram3   rtc     snapshot  tty12  tty21  tty30  tty4   tty49  tty58  ttyS0   vcs1     vcsa4
console          fb0    input      loop7  network_latency     ram0    ram4   rtc0    stderr    tty13  tty22  tty31  tty40  tty5   tty59  ttyS1   vcs2     vcsa5
core             fd     kmsg       lp0    network_throughput  ram1    ram5   sda     stdin     tty14  tty23  tty32  tty41  tty50  tty6   ttyS2   vcs3     vcsa6
cpu              full   log        lp1    null                ram10   ram6   sda1    stdout    tty15  tty24  tty33  tty42  tty51  tty60  ttyS3   vcs4     vga_arbiter
cpu_dma_latency  fuse   loop0      lp2    nvram               ram11   ram7   sda2    systty    tty16  tty25  tty34  tty43  tty52  tty61  uinput  vcs5     VolGroup
[root@localhost ~]# parted -l
Model: ATA KINGBANK KP330 (scsi)
Disk /dev/sda: 60.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number  Start   End     Size    Type     File system  标志
 1      1049kB  525MB   524MB   primary  ext4         启动
 2      525MB   60.0GB  59.5GB  primary               lvm
Model: DELL PERC 6/i Adapter (scsi)
Disk /dev/sdb: 6595GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  标志
 1      1049kB  6400GB  6400GB               gpt1
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/VolGroup-lv_home: 4756MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number  Start  End     Size    File system  标志
 1      0.00B  4756MB  4756MB  ext4
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/VolGroup-lv_swap: 6002MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number  Start  End     Size    File system     标志
 1      0.00B  6002MB  6002MB  linux-swap(v1)
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/VolGroup-lv_root: 48.7GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number  Start  End     Size    File system  标志
 1      0.00B  48.7GB  48.7GB  ext4
[root@localhost ~]# blkid
/dev/mapper/VolGroup-lv_root: UUID="74bc1249-80f8-4a26-904a-331a9fd98cf9" TYPE="ext4" 
/dev/sda1: UUID="90e21a0d-4085-4775-bcac-1dd5f7150825" TYPE="ext4" 
/dev/sda2: UUID="Yj06lR-gLf3-36ey-nRTL-xsSw-L1mM-gLcmfb" TYPE="LVM2_member" 
/dev/mapper/VolGroup-lv_swap: UUID="e3128532-85bb-4ef7-93a1-184c42852bbc" TYPE="swap" 
/dev/mapper/VolGroup-lv_home: UUID="4d820fd8-acfb-48d8-ad67-96ef5b7f0fe1" TYPE="ext4" 
[root@localhost ~]# ll /dev/
总用量 0
crw-rw----.  1 root root     10,  57 9月  11 20:11 autofs
drwxr-xr-x.  2 root root         680 9月  11 20:17 block
drwxr-xr-x.  2 root root          80 9月  11 20:11 bsg
crw-------.  1 root root     10, 234 9月  11 20:11 btrfs-control
drwxr-xr-x.  3 root root          60 9月  11 20:11 bus
drwxr-xr-x.  2 root root        3080 9月  11 20:11 char
crw-------.  1 root root      5,   1 9月  11 20:11 console
lrwxrwxrwx.  1 root root          11 9月  11 20:11 core -> /proc/kcore
drwxr-xr-x. 10 root root         220 9月  11 20:11 cpu
crw-rw----.  1 root root     10,  61 9月  11 20:11 cpu_dma_latency
crw-rw----.  1 root root     10,  62 9月  11 20:11 crash
drwxr-xr-x.  5 root root         100 9月  11 20:11 disk
brw-rw----.  1 root disk    253,   0 9月  11 20:20 dm-0
brw-rw----.  1 root disk    253,   1 9月  11 20:20 dm-1
brw-rw----.  1 root disk    253,   2 9月  11 20:20 dm-2
lrwxrwxrwx.  1 root root           3 9月  11 20:11 fb -> fb0
crw-rw----.  1 root root     29,   0 9月  11 20:11 fb0
lrwxrwxrwx.  1 root root          13 9月  11 20:11 fd -> /proc/self/fd
crw-rw-rw-.  1 root root      1,   7 9月  11 20:11 full
crw-rw-rw-.  1 root root     10, 229 9月  11 20:11 fuse
crw-rw----.  1 root root    249,   0 9月  11 20:11 hidraw0
crw-rw----.  1 root root    249,   1 9月  11 20:11 hidraw1
crw-rw----.  1 root root    249,   2 9月  11 20:11 hidraw2
crw-rw----.  1 root root     10, 228 9月  11 20:11 hpet
drwxr-xr-x.  2 root root          40 9月  11 20:11 hugepages
crw-------.  1 root root    229,   0 9月  11 20:11 hvc0
drwxr-xr-x.  4 root root         260 9月  11 20:11 input
crw-rw----.  1 root root      1,  11 9月  11 20:11 kmsg
srw-rw-rw-.  1 root root           0 9月  11 20:11 log
brw-rw----.  1 root disk      7,   0 9月  11 20:11 loop0
brw-rw----.  1 root disk      7,   1 9月  11 20:11 loop1
brw-rw----.  1 root disk      7,   2 9月  11 20:11 loop2
brw-rw----.  1 root disk      7,   3 9月  11 20:11 loop3
brw-rw----.  1 root disk      7,   4 9月  11 20:11 loop4
brw-rw----.  1 root disk      7,   5 9月  11 20:11 loop5
brw-rw----.  1 root disk      7,   6 9月  11 20:11 loop6
brw-rw----.  1 root disk      7,   7 9月  11 20:11 loop7
crw-rw----.  1 root lp        6,   0 9月  11 20:11 lp0
crw-rw----.  1 root lp        6,   1 9月  11 20:11 lp1
crw-rw----.  1 root lp        6,   2 9月  11 20:11 lp2
crw-rw----.  1 root lp        6,   3 9月  11 20:11 lp3
lrwxrwxrwx.  1 root root          13 9月  11 20:11 MAKEDEV -> /sbin/MAKEDEV
drwxr-xr-x.  2 root root         120 9月  11 20:11 mapper
crw-rw----.  1 root root     10, 227 9月  11 20:11 mcelog
crw-r-----.  1 root kmem      1,   1 9月  11 20:11 mem
drwxr-xr-x.  2 root root          60 9月  11 20:11 net
crw-rw----.  1 root root     10,  60 9月  11 20:11 network_latency
crw-rw----.  1 root root     10,  59 9月  11 20:11 network_throughput
crw-rw-rw-.  1 root root      1,   3 9月  11 20:11 null
crw-r-----.  1 root kmem     10, 144 9月  11 20:11 nvram
crw-rw----.  1 root root      1,  12 9月  11 20:11 oldmem
crw-r-----.  1 root kmem      1,   4 9月  11 20:11 port
crw-------.  1 root root    108,   0 9月  11 20:11 ppp
crw-rw-rw-.  1 root tty       5,   2 9月  11 20:24 ptmx
crw-rw----.  1 root root    246,   0 9月  11 20:11 ptp0
drwxr-xr-x.  2 root root           0 9月  11 20:11 pts
brw-rw----.  1 root disk      1,   0 9月  11 20:11 ram0
brw-rw----.  1 root disk      1,   1 9月  11 20:11 ram1
brw-rw----.  1 root disk      1,  10 9月  11 20:11 ram10
brw-rw----.  1 root disk      1,  11 9月  11 20:11 ram11
brw-rw----.  1 root disk      1,  12 9月  11 20:11 ram12
brw-rw----.  1 root disk      1,  13 9月  11 20:11 ram13
brw-rw----.  1 root disk      1,  14 9月  11 20:11 ram14
brw-rw----.  1 root disk      1,  15 9月  11 20:11 ram15
brw-rw----.  1 root disk      1,   2 9月  11 20:11 ram2
brw-rw----.  1 root disk      1,   3 9月  11 20:11 ram3
brw-rw----.  1 root disk      1,   4 9月  11 20:11 ram4
brw-rw----.  1 root disk      1,   5 9月  11 20:11 ram5
brw-rw----.  1 root disk      1,   6 9月  11 20:11 ram6
brw-rw----.  1 root disk      1,   7 9月  11 20:11 ram7
brw-rw----.  1 root disk      1,   8 9月  11 20:11 ram8
brw-rw----.  1 root disk      1,   9 9月  11 20:11 ram9
crw-rw-rw-.  1 root root      1,   8 9月  11 20:11 random
drwxr-xr-x.  2 root root          60 9月  11 20:11 raw
lrwxrwxrwx.  1 root root           4 9月  11 20:20 root -> dm-0
lrwxrwxrwx.  1 root root           4 9月  11 20:11 rtc -> rtc0
crw-rw----.  1 root root    254,   0 9月  11 20:11 rtc0
brw-rw----.  1 root disk      8,   0 9月  11 20:20 sda
brw-rw----.  1 root disk      8,   1 9月  11 20:11 sda1
brw-rw----.  1 root disk      8,   2 9月  11 20:11 sda2
brw-rw----.  1 root disk      8,  16 9月  11 20:20 sdb
brw-rw----.  1 root disk      8,  17 9月  11 20:17 sdb1
crw-rw----.  1 root disk     21,   0 9月  11 20:11 sg0
crw-rw----.  1 root disk     21,   1 9月  11 20:11 sg1
drwxrwxrwt.  2 root root          80 9月  11 20:11 shm
crw-rw----.  1 root root     10, 231 9月  11 20:11 snapshot
lrwxrwxrwx.  1 root root          15 9月  11 20:11 stderr -> /proc/self/fd/2
lrwxrwxrwx.  1 root root          15 9月  11 20:11 stdin -> /proc/self/fd/0
lrwxrwxrwx.  1 root root          15 9月  11 20:11 stdout -> /proc/self/fd/1
lrwxrwxrwx.  1 root root           4 9月  11 20:11 systty -> tty0
crw-rw-rw-.  1 root tty       5,   0 9月  11 20:11 tty
crw--w----.  1 root tty       4,   0 9月  11 20:11 tty0
crw--w----.  1 root tty       4,   1 9月  11 20:11 tty1
crw--w----.  1 root tty       4,  10 9月  11 20:11 tty10
crw--w----.  1 root tty       4,  11 9月  11 20:11 tty11
crw--w----.  1 root tty       4,  12 9月  11 20:11 tty12
crw--w----.  1 root tty       4,  13 9月  11 20:11 tty13
crw--w----.  1 root tty       4,  14 9月  11 20:11 tty14
crw--w----.  1 root tty       4,  15 9月  11 20:11 tty15
crw--w----.  1 root tty       4,  16 9月  11 20:11 tty16
crw--w----.  1 root tty       4,  17 9月  11 20:11 tty17
crw--w----.  1 root tty       4,  18 9月  11 20:11 tty18
crw--w----.  1 root tty       4,  19 9月  11 20:11 tty19
crw-------.  1 root root      4,   2 9月  11 20:11 tty2
crw--w----.  1 root tty       4,  20 9月  11 20:11 tty20
crw--w----.  1 root tty       4,  21 9月  11 20:11 tty21
crw--w----.  1 root tty       4,  22 9月  11 20:11 tty22
crw--w----.  1 root tty       4,  23 9月  11 20:11 tty23
crw--w----.  1 root tty       4,  24 9月  11 20:11 tty24
crw--w----.  1 root tty       4,  25 9月  11 20:11 tty25
crw--w----.  1 root tty       4,  26 9月  11 20:11 tty26
crw--w----.  1 root tty       4,  27 9月  11 20:11 tty27
crw--w----.  1 root tty       4,  28 9月  11 20:11 tty28
crw--w----.  1 root tty       4,  29 9月  11 20:11 tty29
crw-------.  1 root root      4,   3 9月  11 20:11 tty3
crw--w----.  1 root tty       4,  30 9月  11 20:11 tty30
crw--w----.  1 root tty       4,  31 9月  11 20:11 tty31
crw--w----.  1 root tty       4,  32 9月  11 20:11 tty32
crw--w----.  1 root tty       4,  33 9月  11 20:11 tty33
crw--w----.  1 root tty       4,  34 9月  11 20:11 tty34
crw--w----.  1 root tty       4,  35 9月  11 20:11 tty35
crw--w----.  1 root tty       4,  36 9月  11 20:11 tty36
crw--w----.  1 root tty       4,  37 9月  11 20:11 tty37
crw--w----.  1 root tty       4,  38 9月  11 20:11 tty38
crw--w----.  1 root tty       4,  39 9月  11 20:11 tty39
crw-------.  1 root root      4,   4 9月  11 20:11 tty4
crw--w----.  1 root tty       4,  40 9月  11 20:11 tty40
crw--w----.  1 root tty       4,  41 9月  11 20:11 tty41
crw--w----.  1 root tty       4,  42 9月  11 20:11 tty42
crw--w----.  1 root tty       4,  43 9月  11 20:11 tty43
crw--w----.  1 root tty       4,  44 9月  11 20:11 tty44
crw--w----.  1 root tty       4,  45 9月  11 20:11 tty45
crw--w----.  1 root tty       4,  46 9月  11 20:11 tty46
crw--w----.  1 root tty       4,  47 9月  11 20:11 tty47
crw--w----.  1 root tty       4,  48 9月  11 20:11 tty48
crw--w----.  1 root tty       4,  49 9月  11 20:11 tty49
crw-------.  1 root root      4,   5 9月  11 20:11 tty5
crw--w----.  1 root tty       4,  50 9月  11 20:11 tty50
crw--w----.  1 root tty       4,  51 9月  11 20:11 tty51
crw--w----.  1 root tty       4,  52 9月  11 20:11 tty52
crw--w----.  1 root tty       4,  53 9月  11 20:11 tty53
crw--w----.  1 root tty       4,  54 9月  11 20:11 tty54
crw--w----.  1 root tty       4,  55 9月  11 20:11 tty55
crw--w----.  1 root tty       4,  56 9月  11 20:11 tty56
crw--w----.  1 root tty       4,  57 9月  11 20:11 tty57
crw--w----.  1 root tty       4,  58 9月  11 20:11 tty58
crw--w----.  1 root tty       4,  59 9月  11 20:11 tty59
crw-------.  1 root root      4,   6 9月  11 20:11 tty6
crw--w----.  1 root tty       4,  60 9月  11 20:11 tty60
crw--w----.  1 root tty       4,  61 9月  11 20:11 tty61
crw--w----.  1 root tty       4,  62 9月  11 20:11 tty62
crw--w----.  1 root tty       4,  63 9月  11 20:11 tty63
crw--w----.  1 root tty       4,   7 9月  11 20:11 tty7
crw--w----.  1 root tty       4,   8 9月  11 20:11 tty8
crw--w----.  1 root tty       4,   9 9月  11 20:11 tty9
crw-rw----.  1 root dialout   4,  64 9月  11 20:11 ttyS0
crw-rw----.  1 root dialout   4,  65 9月  11 20:11 ttyS1
crw-rw----.  1 root dialout   4,  66 9月  11 20:11 ttyS2
crw-rw----.  1 root dialout   4,  67 9月  11 20:11 ttyS3
crw-r-----.  1 root root     10, 223 9月  11 20:11 uinput
crw-rw-rw-.  1 root root      1,   9 9月  11 20:11 urandom
crw-rw----.  1 root root    250,   0 9月  11 20:11 usbmon0
crw-rw----.  1 root root    250,   1 9月  11 20:11 usbmon1
crw-rw----.  1 root root    250,   2 9月  11 20:11 usbmon2
crw-rw----.  1 vcsa tty       7,   0 9月  11 20:11 vcs
crw-rw----.  1 vcsa tty       7,   1 9月  11 20:11 vcs1
crw-rw----.  1 vcsa tty       7,   2 9月  11 20:11 vcs2
crw-rw----.  1 vcsa tty       7,   3 9月  11 20:11 vcs3
crw-rw----.  1 vcsa tty       7,   4 9月  11 20:11 vcs4
crw-rw----.  1 vcsa tty       7,   5 9月  11 20:11 vcs5
crw-rw----.  1 vcsa tty       7,   6 9月  11 20:11 vcs6
crw-rw----.  1 vcsa tty       7, 128 9月  11 20:11 vcsa
crw-rw----.  1 vcsa tty       7, 129 9月  11 20:11 vcsa1
crw-rw----.  1 vcsa tty       7, 130 9月  11 20:11 vcsa2
crw-rw----.  1 vcsa tty       7, 131 9月  11 20:11 vcsa3
crw-rw----.  1 vcsa tty       7, 132 9月  11 20:11 vcsa4
crw-rw----.  1 vcsa tty       7, 133 9月  11 20:11 vcsa5
crw-rw----.  1 vcsa tty       7, 134 9月  11 20:11 vcsa6
crw-rw----.  1 root root     10,  63 9月  11 20:11 vga_arbiter
drwxr-xr-x.  2 root root         100 9月  11 20:11 VolGroup
crw-rw----.  1 root root     10, 130 9月  11 20:11 watchdog
crw-rw-rw-.  1 root root      1,   5 9月  11 20:11 zero
[root@localhost ~]# date
2017年 09月 11日 星期一 20:25:19 CST
[root@localhost ~]# mkfs -t ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
文件系统标签=
操作系统:Linux
块大小=4096 (log=2)
分块大小=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
390627328 inodes, 1562499840 blocks
78124992 blocks (5.00%) reserved for the super user
第一个数据块=0
Maximum filesystem blocks=4294967296
47684 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, 71663616, 78675968, 
	102400000, 214990848, 512000000, 550731776, 644972544
正在写入inode表: 完成                            
Creating journal (32768 blocks): 完成
Writing superblocks and filesystem accounting information: 完成
This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@localhost ~]# mount /dev/sdb1 /smb
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       45G  3.6G   39G   9% /
tmpfs                 7.8G   72K  7.8G   1% /dev/shm
/dev/sda1             477M   42M  410M  10% /boot
/dev/mapper/VolGroup-lv_home
                      4.3G  8.9M  4.1G   1% /home
/dev/sdb1             5.8T   56M  5.5T   1% /smb
[root@localhost ~]# vim /etc/fstab 
[root@localhost ~]# df -Th
Filesystem           Type   Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                     ext4    45G  3.6G   39G   9% /
tmpfs                tmpfs  7.8G   72K  7.8G   1% /dev/shm
/dev/sda1            ext4   477M   42M  410M  10% /boot
/dev/mapper/VolGroup-lv_home
                     ext4   4.3G  8.9M  4.1G   1% /home
/dev/sdb1            ext4   5.8T   56M  5.5T   1% /smb
[root@localhost ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri Sep  8 19:01:47 2017
#
# 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
#
/dev/mapper/VolGroup-lv_root /                       ext4    defaults        1 1
UUID=90e21a0d-4085-4775-bcac-1dd5f7150825 /boot                   ext4    defaults        1 2
/dev/mapper/VolGroup-lv_home /home                   ext4    defaults        1 2
/dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0
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
/dev/sdb1               /smb                    ext4    defaults        0 0
[root@localhost ~]# 
标签:data linux lvm proc crash eve sep cst esc label
原文地址:http://www.cnblogs.com/kaishirenshi/p/7610999.html