Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. [asistemas@triton ~]$ dd if=/dev/urandom of=/discoA/prueba/datosBasura bs=200000000 count=1
  2. vda5: write failed, user block limit reached.
  3. dd: error al escribir en «/discoA/prueba/datosBasura»: Se ha excedido la cuota de disco
  4. 1+0 registros leídos
  5. 0+0 registros escritos
  6. 102395904 bytes (102 MB) copiados, 13,5354 s, 7,6 MB/s
  7.  
  8. 16.
  9.  
  10. No tiene las mismas cuotas que asistemas
  11.  
  12. 17.
  13.  
  14. Entramos a edquota -t y modificamos los periodos
  15.  
  16. 18.
  17.  
  18. [root@triton asistemas]# userdel manolo
  19.  
  20. 19.
  21.  
  22. [root@triton asistemas]# nano /etc/fstab
  23.  
  24. 20.
  25.  
  26. [root@triton asistemas]# umount /discoA
  27. [root@triton asistemas]# umount /discoB
  28.  
  29. 21.
  30.  
  31. [root@triton asistemas]# rmdir /discoA
  32. [root@triton asistemas]# rmdir /discoB
  33.  
  34. 22.
  35.  
  36. [root@triton asistemas]# fdisk /dev/vda
  37. Welcome to fdisk (util-linux 2.23.2).
  38.  
  39. Changes will remain in memory only, until you decide to write them.
  40. Be careful before using the write command.
  41.  
  42.  
  43. Orden (m para obtener ayuda): d
  44. Número de partición (1-6, default 6):
  45. Partition 6 is deleted
  46.  
  47. Orden (m para obtener ayuda): d
  48. Número de partición (1-5, default 5):
  49. Partition 5 is deleted
  50.  
  51. 23.
  52.  
  53. Orden (m para obtener ayuda): n
  54. Partition type:
  55. p primary (3 primary, 0 extended, 1 free)
  56. e extended
  57. Select (default e): p
  58. Selected partition 4
  59. Primer sector (19529728-29360127, valor predeterminado 19529728):
  60. Se está utilizando el valor predeterminado 19529728
  61. Last sector, +sectors or +size{K,M,G} (19529728-29360127, valor predeterminado 29360127):
  62. Se está utilizando el valor predeterminado 29360127
  63. Partition 4 of type Linux and of size 4,7 GiB is set
  64.  
  65. Orden (m para obtener ayuda): w
  66. ¡Se ha modificado la tabla de particiones!
  67.  
  68. Llamando a ioctl() para volver a leer la tabla de particiones.
  69.  
  70. WARNING: Re-reading the partition table failed with error 16: Dispositivo o recurso ocupado.
  71. The kernel still uses the old table. The new table will be used at
  72. the next reboot or after you run partprobe(8) or kpartx(8)
  73. Se están sincronizando los discos.
  74.  
  75. 24.
  76.  
  77. Se podría hacer sin rearrancar el sistema, usando partprobe o kpartx
  78.  
  79. 25.
  80.  
  81. [root@triton asistemas]# mkfs.xfs -f /dev/vda4
  82. meta-data=/dev/vda4 isize=512 agcount=4, agsize=307200 blks
  83. = sectsz=512 attr=2, projid32bit=1
  84. = crc=1 finobt=0, sparse=0
  85. data = bsize=4096 blocks=1228800, imaxpct=25
  86. = sunit=0 swidth=0 blks
  87. naming =version 2 bsize=4096 ascii-ci=0 ftype=1
  88. log =internal log bsize=4096 blocks=2560, version=2
  89. = sectsz=512 sunit=0 blks, lazy-count=1
  90. realtime =none extsz=4096 blocks=0, rtextents=0
  91.  
  92. 26.
  93.  
  94. Agregamos el vda4 al /etc/fstab
  95.  
  96. 27.
  97.  
  98. [root@triton asistemas]# mount -av
  99. / : ignored
  100. /home : already mounted
  101. swap : ignored
  102. /home : successfully mounted
  103.  
  104. 28.
  105.  
  106. La diferencia es que la partición vda4 es ahora una partición primaría y no una extendida
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement