Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [asistemas@triton ~]$ dd if=/dev/urandom of=/discoA/prueba/datosBasura bs=200000000 count=1
- vda5: write failed, user block limit reached.
- dd: error al escribir en «/discoA/prueba/datosBasura»: Se ha excedido la cuota de disco
- 1+0 registros leídos
- 0+0 registros escritos
- 102395904 bytes (102 MB) copiados, 13,5354 s, 7,6 MB/s
- 16.
- No tiene las mismas cuotas que asistemas
- 17.
- Entramos a edquota -t y modificamos los periodos
- 18.
- [root@triton asistemas]# userdel manolo
- 19.
- [root@triton asistemas]# nano /etc/fstab
- 20.
- [root@triton asistemas]# umount /discoA
- [root@triton asistemas]# umount /discoB
- 21.
- [root@triton asistemas]# rmdir /discoA
- [root@triton asistemas]# rmdir /discoB
- 22.
- [root@triton asistemas]# fdisk /dev/vda
- Welcome to fdisk (util-linux 2.23.2).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Orden (m para obtener ayuda): d
- Número de partición (1-6, default 6):
- Partition 6 is deleted
- Orden (m para obtener ayuda): d
- Número de partición (1-5, default 5):
- Partition 5 is deleted
- 23.
- Orden (m para obtener ayuda): n
- Partition type:
- p primary (3 primary, 0 extended, 1 free)
- e extended
- Select (default e): p
- Selected partition 4
- Primer sector (19529728-29360127, valor predeterminado 19529728):
- Se está utilizando el valor predeterminado 19529728
- Last sector, +sectors or +size{K,M,G} (19529728-29360127, valor predeterminado 29360127):
- Se está utilizando el valor predeterminado 29360127
- Partition 4 of type Linux and of size 4,7 GiB is set
- Orden (m para obtener ayuda): w
- ¡Se ha modificado la tabla de particiones!
- Llamando a ioctl() para volver a leer la tabla de particiones.
- WARNING: Re-reading the partition table failed with error 16: Dispositivo o recurso ocupado.
- The kernel still uses the old table. The new table will be used at
- the next reboot or after you run partprobe(8) or kpartx(8)
- Se están sincronizando los discos.
- 24.
- Se podría hacer sin rearrancar el sistema, usando partprobe o kpartx
- 25.
- [root@triton asistemas]# mkfs.xfs -f /dev/vda4
- meta-data=/dev/vda4 isize=512 agcount=4, agsize=307200 blks
- = sectsz=512 attr=2, projid32bit=1
- = crc=1 finobt=0, sparse=0
- data = bsize=4096 blocks=1228800, imaxpct=25
- = sunit=0 swidth=0 blks
- naming =version 2 bsize=4096 ascii-ci=0 ftype=1
- log =internal log bsize=4096 blocks=2560, version=2
- = sectsz=512 sunit=0 blks, lazy-count=1
- realtime =none extsz=4096 blocks=0, rtextents=0
- 26.
- Agregamos el vda4 al /etc/fstab
- 27.
- [root@triton asistemas]# mount -av
- / : ignored
- /home : already mounted
- swap : ignored
- /home : successfully mounted
- 28.
- 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