title: how to access new created partition in container
body: <p>I want to access new created partition in container with below actions but fail.</p>
  
  <p>use <code>--device=</code> to mount a disk</p>
  
  <pre><code>docker run --privileged -d --device=/dev/vde:/dev/vde centos
  </code></pre>
  
  <p>use <code>parted</code> to create a new data partition</p>
  
  <pre><code>[root@cdba144bc679 ~]# lsblk                                              
  lsblk: dm-0: failed to get device path
  lsblk: dm-1: failed to get device path
  lsblk: dm-0: failed to get device path
  lsblk: dm-1: failed to get device path
  lsblk: dm-2: failed to get device path
  lsblk: dm-3: failed to get device path
  NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
  vda    253:0    0  116G  0 disk 
  ├─vda1 253:1    0   52G  0 part /etc/hosts
  └─vda2 253:2    0   64G  0 part 
  vdb    253:16   0  400G  0 disk 
  vdc    253:32   0  100G  0 disk 
  vdd    253:48   0   10G  0 disk 
  vde    253:64   0   10G  0 disk 
  vdf    253:80   0   10G  0 disk 
  vdg    253:96   0   10G  0 disk 
  [root@cdba144bc679 ~]# parted -s /dev/vdg  mklabel gpt mkpart 1 ext4 1 2M
  </code></pre>
  
  <p>With <code>lsblk</code> can view:</p>
  
  <pre><code>[root@cdba144bc679 ~]# lsblk 
  lsblk: dm-0: failed to get device path
  lsblk: dm-1: failed to get device path
  lsblk: dm-0: failed to get device path
  lsblk: dm-1: failed to get device path
  lsblk: dm-2: failed to get device path
  lsblk: dm-3: failed to get device path
  NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
  vda    253:0    0  116G  0 disk 
  ├─vda1 253:1    0   52G  0 part /etc/hosts
  └─vda2 253:2    0   64G  0 part 
  vdb    253:16   0  400G  0 disk 
  vdc    253:32   0  100G  0 disk 
  vdd    253:48   0   10G  0 disk 
  vde    253:64   0   10G  0 disk 
  vdf    253:80   0   10G  0 disk 
  vdg    253:96   0   10G  0 disk 
  └─vdg1 253:97   0    1M  0 part  &lt;===
  </code></pre>
  
  <p>With <code>ls</code> can not access which means i can not use it:</p>
  
  <pre><code>[root@cdba144bc679 ~]# ll /dev/vdg*
  brw-rw---- 1 root disk 253, 96 Nov  9 02:31 /dev/vdg
  </code></pre>
  
  <p>How can i access it?</p>