Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@kohaDesarrollo:~# lsof /home
- COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
- bash 27551 dtic cwd DIR 8,9 4096 1916929 /home/dtic
- root@kohaDesarrollo:~# lsof /home
- root@kohaDesarrollo:~# umount /home
- root@kohaDesarrollo:~# cat /etc/fstab
- # /etc/fstab: static file system information.
- #
- # Use 'blkid' to print the universally unique identifier for a
- # device; this may be used with UUID= as a more robust way to name devices
- # that works even if disks are added and removed. See fstab(5).
- #
- # <file system> <mount point> <type> <options> <dump> <pass>
- proc /proc proc defaults 0 0
- # / was on /dev/sda1 during installation
- UUID=e0de228b-9a96-49d1-8c0c-a6320ca0db1f / ext3 errors=remount-ro 0 1
- # /home was on /dev/sda9 during installation
- UUID=3b0d1c67-398d-47ff-bf99-587971cbd2b3 /home ext3 defaults 0 2
- # /tmp was on /dev/sda8 during installation
- UUID=9887ce14-61da-48f6-89be-ed6f58381904 /tmp ext3 defaults 0 2
- # /usr was on /dev/sda5 during installation
- UUID=26702a2b-9fcd-47d6-b7e2-c1b1e76b0258 /usr ext3 defaults 0 2
- # /var was on /dev/sda6 during installation
- UUID=206121a6-a921-46f4-a1ef-f294e2215a57 /var ext3 defaults 0 2
- # swap was on /dev/sda7 during installation
- UUID=cab12266-6c59-485e-80ae-4457f0c78370 none swap sw 0 0
- /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
- /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
- root@kohaDesarrollo:~# e2fsck /dev/sda9
- e2fsck 1.41.12 (17-May-2010)
- /dev/sda9: limpio, 220416/4194304 ficheros, 4252736/16761856 bloques
- root@kohaDesarrollo:~# rs
- rsh rsmtp rsync rsyslogd
- root@kohaDesarrollo:~# df -h
- S.ficheros Size Used Avail Use% Montado en
- /dev/sda1 323M 282M 25M 92% /
- tmpfs 2,0G 0 2,0G 0% /lib/init/rw
- udev 2,0G 116K 2,0G 1% /dev
- tmpfs 2,0G 0 2,0G 0% /dev/shm
- /dev/sda8 368M 62M 288M 18% /tmp
- /dev/sda5 8,3G 1,1G 6,8G 14% /usr
- /dev/sda6 2,8G 2,6G 77M 98% /var
- root@kohaDesarrollo:~# mount -a
- root@kohaDesarrollo:~# mount
- /dev/sda1 on / type ext3 (rw,errors=remount-ro)
- tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
- proc on /proc type proc (rw,noexec,nosuid,nodev)
- sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
- udev on /dev type tmpfs (rw,mode=0755)
- tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
- devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
- /dev/sda8 on /tmp type ext3 (rw)
- /dev/sda5 on /usr type ext3 (rw)
- /dev/sda6 on /var type ext3 (rw)
- /dev/sda9 on /home type ext3 (rw)
- root@kohaDesarrollo:~# df -h
- S.ficheros Size Used Avail Use% Montado en
- /dev/sda1 323M 282M 25M 92% /
- tmpfs 2,0G 0 2,0G 0% /lib/init/rw
- udev 2,0G 116K 2,0G 1% /dev
- tmpfs 2,0G 0 2,0G 0% /dev/shm
- /dev/sda8 368M 62M 288M 18% /tmp
- /dev/sda5 8,3G 1,1G 6,8G 14% /usr
- /dev/sda6 2,8G 2,6G 77M 98% /var
- /dev/sda9 63G 16G 45G 26% /home
- root@kohaDesarrollo:~# umount /home
- root@kohaDesarrollo:~# e2fsck /dev/sda9
- e2fsck 1.41.12 (17-May-2010)
- /dev/sda9: limpio, 220416/4194304 ficheros, 4252736/16761856 bloques
- root@kohaDesarrollo:~# resize2fs /dev/sda9 25000M
- resize2fs 1.41.12 (17-May-2010)
- Por favor ejecute antes 'e2fsck -f /dev/sda9'.
- root@kohaDesarrollo:~# e2fsck -f /dev/sda9
- e2fsck 1.41.12 (17-May-2010)
- Paso 1: Verificando nodos-i, bloques y tamaños
- Paso 2: Verificando la estructura de directorios
- Paso 3: Revisando la conectividad de directorios
- Paso 4: Revisando las cuentas de referencia
- Paso 5: Revisando el resumen de información de grupos
- /dev/sda9: 220416/4194304 ficheros (0.7% no contiguos), 4252736/16761856 bloques
- root@kohaDesarrollo:~# resize2fs /dev/sda9 25000M
- resize2fs 1.41.12 (17-May-2010)
- Resizing the filesystem on /dev/sda9 to 6400000 (4k) blocks.
- El sistema de ficheros en /dev/sda9 tiene ahora 6400000 bloques.
- root@kohaDesarrollo:~# fdisk /dev/sda
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): p
- Disk /dev/sda: 91.3 GB, 91268055040 bytes
- 255 heads, 63 sectors/track, 11096 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: 0x0007407d
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 43 340992 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sda2 43 11096 88784897 5 Extended
- /dev/sda5 43 1137 8787968 83 Linux
- /dev/sda6 1137 1502 2928640 83 Linux
- /dev/sda7 1502 2701 9627648 82 Linux swap / Solaris
- /dev/sda8 2701 2749 389120 83 Linux
- /dev/sda9 2749 11096 67047424 83 Linux
- Command (m for help): d
- Partition number (1-9): 9
- Command (m for help): n
- Command action
- l logical (5 or over)
- p primary partition (1-4)
- l
- First cylinder (2749-11096, default 2749):
- Using default value 2749
- Last cylinder, +cylinders or +size{K,M,G} (2749-11096, default 11096): +26368000K
- Command (m for help): p
- Disk /dev/sda: 91.3 GB, 91268055040 bytes
- 255 heads, 63 sectors/track, 11096 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: 0x0007407d
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 43 340992 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sda2 43 11096 88784897 5 Extended
- /dev/sda5 43 1137 8787968 83 Linux
- /dev/sda6 1137 1502 2928640 83 Linux
- /dev/sda7 1502 2701 9627648 82 Linux swap / Solaris
- /dev/sda8 2701 2749 389120 83 Linux
- /dev/sda9 2749 6032 26372520+ 83 Linux
- Command (m for help): d
- Partition number (1-9): 9
- Command (m for help): n
- Command action
- l logical (5 or over)
- p primary partition (1-4)
- l
- First cylinder (2749-11096, default 2749):
- Using default value 2749
- Last cylinder, +cylinders or +size{K,M,G} (2749-11096, default 11096): +25100M
- Command (m for help): p
- Disk /dev/sda: 91.3 GB, 91268055040 bytes
- 255 heads, 63 sectors/track, 11096 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: 0x0007407d
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 43 340992 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sda2 43 11096 88784897 5 Extended
- /dev/sda5 43 1137 8787968 83 Linux
- /dev/sda6 1137 1502 2928640 83 Linux
- /dev/sda7 1502 2701 9627648 82 Linux swap / Solaris
- /dev/sda8 2701 2749 389120 83 Linux
- /dev/sda9 2749 5949 25705823 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- 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)
- Syncing disks.
- root@kohaDesarrollo:~# apt-get install partprobe
- Leyendo lista de paquetes... Hecho
- Creando árbol de dependencias
- Leyendo la información de estado... Hecho
- E: No se ha podido localizar el paquete partprobe
- root@kohaDesarrollo:~# reboot
- 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