Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.23 KB | None | 0 0
  1. root@kohaDesarrollo:~# lsof /home
  2. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
  3. bash 27551 dtic cwd DIR 8,9 4096 1916929 /home/dtic
  4. root@kohaDesarrollo:~# lsof /home
  5. root@kohaDesarrollo:~# umount /home
  6. root@kohaDesarrollo:~# cat /etc/fstab
  7. # /etc/fstab: static file system information.
  8. #
  9. # Use 'blkid' to print the universally unique identifier for a
  10. # device; this may be used with UUID= as a more robust way to name devices
  11. # that works even if disks are added and removed. See fstab(5).
  12. #
  13. # <file system> <mount point> <type> <options> <dump> <pass>
  14. proc /proc proc defaults 0 0
  15. # / was on /dev/sda1 during installation
  16. UUID=e0de228b-9a96-49d1-8c0c-a6320ca0db1f / ext3 errors=remount-ro 0 1
  17. # /home was on /dev/sda9 during installation
  18. UUID=3b0d1c67-398d-47ff-bf99-587971cbd2b3 /home ext3 defaults 0 2
  19. # /tmp was on /dev/sda8 during installation
  20. UUID=9887ce14-61da-48f6-89be-ed6f58381904 /tmp ext3 defaults 0 2
  21. # /usr was on /dev/sda5 during installation
  22. UUID=26702a2b-9fcd-47d6-b7e2-c1b1e76b0258 /usr ext3 defaults 0 2
  23. # /var was on /dev/sda6 during installation
  24. UUID=206121a6-a921-46f4-a1ef-f294e2215a57 /var ext3 defaults 0 2
  25. # swap was on /dev/sda7 during installation
  26. UUID=cab12266-6c59-485e-80ae-4457f0c78370 none swap sw 0 0
  27. /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
  28. /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
  29. root@kohaDesarrollo:~# e2fsck /dev/sda9
  30. e2fsck 1.41.12 (17-May-2010)
  31. /dev/sda9: limpio, 220416/4194304 ficheros, 4252736/16761856 bloques
  32. root@kohaDesarrollo:~# rs
  33. rsh rsmtp rsync rsyslogd
  34. root@kohaDesarrollo:~# df -h
  35. S.ficheros Size Used Avail Use% Montado en
  36. /dev/sda1 323M 282M 25M 92% /
  37. tmpfs 2,0G 0 2,0G 0% /lib/init/rw
  38. udev 2,0G 116K 2,0G 1% /dev
  39. tmpfs 2,0G 0 2,0G 0% /dev/shm
  40. /dev/sda8 368M 62M 288M 18% /tmp
  41. /dev/sda5 8,3G 1,1G 6,8G 14% /usr
  42. /dev/sda6 2,8G 2,6G 77M 98% /var
  43. root@kohaDesarrollo:~# mount -a
  44. root@kohaDesarrollo:~# mount
  45. /dev/sda1 on / type ext3 (rw,errors=remount-ro)
  46. tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
  47. proc on /proc type proc (rw,noexec,nosuid,nodev)
  48. sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
  49. udev on /dev type tmpfs (rw,mode=0755)
  50. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
  51. devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
  52. /dev/sda8 on /tmp type ext3 (rw)
  53. /dev/sda5 on /usr type ext3 (rw)
  54. /dev/sda6 on /var type ext3 (rw)
  55. /dev/sda9 on /home type ext3 (rw)
  56. root@kohaDesarrollo:~# df -h
  57. S.ficheros Size Used Avail Use% Montado en
  58. /dev/sda1 323M 282M 25M 92% /
  59. tmpfs 2,0G 0 2,0G 0% /lib/init/rw
  60. udev 2,0G 116K 2,0G 1% /dev
  61. tmpfs 2,0G 0 2,0G 0% /dev/shm
  62. /dev/sda8 368M 62M 288M 18% /tmp
  63. /dev/sda5 8,3G 1,1G 6,8G 14% /usr
  64. /dev/sda6 2,8G 2,6G 77M 98% /var
  65. /dev/sda9 63G 16G 45G 26% /home
  66. root@kohaDesarrollo:~# umount /home
  67. root@kohaDesarrollo:~# e2fsck /dev/sda9
  68. e2fsck 1.41.12 (17-May-2010)
  69. /dev/sda9: limpio, 220416/4194304 ficheros, 4252736/16761856 bloques
  70. root@kohaDesarrollo:~# resize2fs /dev/sda9 25000M
  71. resize2fs 1.41.12 (17-May-2010)
  72. Por favor ejecute antes 'e2fsck -f /dev/sda9'.
  73.  
  74. root@kohaDesarrollo:~# e2fsck -f /dev/sda9
  75. e2fsck 1.41.12 (17-May-2010)
  76. Paso 1: Verificando nodos-i, bloques y tamaños
  77. Paso 2: Verificando la estructura de directorios
  78. Paso 3: Revisando la conectividad de directorios
  79. Paso 4: Revisando las cuentas de referencia
  80. Paso 5: Revisando el resumen de información de grupos
  81. /dev/sda9: 220416/4194304 ficheros (0.7% no contiguos), 4252736/16761856 bloques
  82. root@kohaDesarrollo:~# resize2fs /dev/sda9 25000M
  83. resize2fs 1.41.12 (17-May-2010)
  84. Resizing the filesystem on /dev/sda9 to 6400000 (4k) blocks.
  85. El sistema de ficheros en /dev/sda9 tiene ahora 6400000 bloques.
  86.  
  87. root@kohaDesarrollo:~# fdisk /dev/sda
  88.  
  89. WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
  90. switch off the mode (command 'c') and change display units to
  91. sectors (command 'u').
  92.  
  93. Command (m for help): p
  94.  
  95. Disk /dev/sda: 91.3 GB, 91268055040 bytes
  96. 255 heads, 63 sectors/track, 11096 cylinders
  97. Units = cylinders of 16065 * 512 = 8225280 bytes
  98. Sector size (logical/physical): 512 bytes / 512 bytes
  99. I/O size (minimum/optimal): 512 bytes / 512 bytes
  100. Disk identifier: 0x0007407d
  101.  
  102. Device Boot Start End Blocks Id System
  103. /dev/sda1 * 1 43 340992 83 Linux
  104. Partition 1 does not end on cylinder boundary.
  105. /dev/sda2 43 11096 88784897 5 Extended
  106. /dev/sda5 43 1137 8787968 83 Linux
  107. /dev/sda6 1137 1502 2928640 83 Linux
  108. /dev/sda7 1502 2701 9627648 82 Linux swap / Solaris
  109. /dev/sda8 2701 2749 389120 83 Linux
  110. /dev/sda9 2749 11096 67047424 83 Linux
  111.  
  112. Command (m for help): d
  113. Partition number (1-9): 9
  114.  
  115. Command (m for help): n
  116. Command action
  117. l logical (5 or over)
  118. p primary partition (1-4)
  119. l
  120. First cylinder (2749-11096, default 2749):
  121. Using default value 2749
  122. Last cylinder, +cylinders or +size{K,M,G} (2749-11096, default 11096): +26368000K
  123.  
  124. Command (m for help): p
  125.  
  126. Disk /dev/sda: 91.3 GB, 91268055040 bytes
  127. 255 heads, 63 sectors/track, 11096 cylinders
  128. Units = cylinders of 16065 * 512 = 8225280 bytes
  129. Sector size (logical/physical): 512 bytes / 512 bytes
  130. I/O size (minimum/optimal): 512 bytes / 512 bytes
  131. Disk identifier: 0x0007407d
  132.  
  133. Device Boot Start End Blocks Id System
  134. /dev/sda1 * 1 43 340992 83 Linux
  135. Partition 1 does not end on cylinder boundary.
  136. /dev/sda2 43 11096 88784897 5 Extended
  137. /dev/sda5 43 1137 8787968 83 Linux
  138. /dev/sda6 1137 1502 2928640 83 Linux
  139. /dev/sda7 1502 2701 9627648 82 Linux swap / Solaris
  140. /dev/sda8 2701 2749 389120 83 Linux
  141. /dev/sda9 2749 6032 26372520+ 83 Linux
  142.  
  143. Command (m for help): d
  144. Partition number (1-9): 9
  145.  
  146. Command (m for help): n
  147. Command action
  148. l logical (5 or over)
  149. p primary partition (1-4)
  150. l
  151. First cylinder (2749-11096, default 2749):
  152. Using default value 2749
  153. Last cylinder, +cylinders or +size{K,M,G} (2749-11096, default 11096): +25100M
  154.  
  155. Command (m for help): p
  156.  
  157. Disk /dev/sda: 91.3 GB, 91268055040 bytes
  158. 255 heads, 63 sectors/track, 11096 cylinders
  159. Units = cylinders of 16065 * 512 = 8225280 bytes
  160. Sector size (logical/physical): 512 bytes / 512 bytes
  161. I/O size (minimum/optimal): 512 bytes / 512 bytes
  162. Disk identifier: 0x0007407d
  163.  
  164. Device Boot Start End Blocks Id System
  165. /dev/sda1 * 1 43 340992 83 Linux
  166. Partition 1 does not end on cylinder boundary.
  167. /dev/sda2 43 11096 88784897 5 Extended
  168. /dev/sda5 43 1137 8787968 83 Linux
  169. /dev/sda6 1137 1502 2928640 83 Linux
  170. /dev/sda7 1502 2701 9627648 82 Linux swap / Solaris
  171. /dev/sda8 2701 2749 389120 83 Linux
  172. /dev/sda9 2749 5949 25705823 83 Linux
  173.  
  174. Command (m for help): w
  175. The partition table has been altered!
  176.  
  177. Calling ioctl() to re-read partition table.
  178.  
  179. WARNING: Re-reading the partition table failed with error 16: Dispositivo o recurso ocupado.
  180. The kernel still uses the old table. The new table will be used at
  181. the next reboot or after you run partprobe(8) or kpartx(8)
  182. Syncing disks.
  183. root@kohaDesarrollo:~# apt-get install partprobe
  184. Leyendo lista de paquetes... Hecho
  185. Creando árbol de dependencias
  186. Leyendo la información de estado... Hecho
  187. E: No se ha podido localizar el paquete partprobe
  188. root@kohaDesarrollo:~# reboot
  189.  
  190. The system is going down for reboot NOW!lo (pts/1) (Mon Jul 10 23:03:04 2017)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement