Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Удаление файлов из корзины рута  (Прочитано 4416 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #45 : 30 Августа 2017, 01:42:18 »
Error: /dev/mapper/sda5_crypt: unrecognised disk label
Model: Linux device-mapper (crypt) (dm)                                   
Disk /dev/mapper/sda5_crypt: GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:

Filesystem                   Size  Used Avail Use% Mounted on
udev                         1,9G     0  1,9G   0% /dev
tmpfs                        378M  6,6M  371M   2% /run
/dev/mapper/ubuntu--vg-root  455G  253G  179G  59% /
tmpfs                        1,9G  7,7M  1,9G   1% /dev/shm
tmpfs                        5,0M  4,0K  5,0M   1% /run/lock
tmpfs                        1,9G     0  1,9G   0% /sys/fs/cgroup
cgmfs                        100K     0  100K   0% /run/cgmanager/fs
tmpfs                        378M  164K  378M   1% /run/user/1000
/home/user/.Private          455G  253G  179G  59% /home/user

Оффлайн ReNzRv

  • Старожил
  • *
  • Сообщений: 2648
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #46 : 30 Августа 2017, 01:45:08 »
sudo grub-install /dev/sda

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #47 : 30 Августа 2017, 01:48:06 »
root@host:/# sudo grub-install /dev/sda
Installing for i386-pc platform.
grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'..

Оффлайн ReNzRv

  • Старожил
  • *
  • Сообщений: 2648
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #48 : 30 Августа 2017, 01:49:54 »
echo 'GRUB_ENABLE_CRYPTODISK=1' >> /etc/default/grub ; grub-install /dev/sda

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #49 : 30 Августа 2017, 01:51:19 »
root@host:/# echo 'GRUB_ENABLE_CRYPTODISK=1' >> /etc/default/grub ; grub-install /dev/sda
Installing for i386-pc platform.
grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'..

Оффлайн ReNzRv

  • Старожил
  • *
  • Сообщений: 2648
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #50 : 30 Августа 2017, 02:04:36 »
cat /etc/default/grub
Пользователь добавил сообщение 30 Августа 2017, 02:07:23:
sudo umount /boot && sudo ls -al /boot /boot2
« Последнее редактирование: 30 Августа 2017, 02:07:23 от renzrv »

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #51 : 30 Августа 2017, 02:08:00 »
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_ENABLE_CRYPTODISK=1

Оффлайн ReNzRv

  • Старожил
  • *
  • Сообщений: 2648
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #52 : 30 Августа 2017, 02:10:02 »
sudo umount /boot && sudo ls -al /boot /boot2

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #53 : 30 Августа 2017, 02:20:27 »
root@host:/# sudo umount /boot && sudo ls -al /boot /boot2
/boot:
total 466595
drwxr-xrwx  5 root user     4096 авг 30 00:17 .
drwxr-xr-x 26 root root     4096 авг 30 00:31 ..
-rw-r--r--  1 root root  1240067 июл 13  2016 abi-4.4.0-31-generic
-rw-r--r--  1 root root  1246246 апр 20 15:02 abi-4.4.0-75-generic
-rw-r--r--  1 root root  1246312 апр 27 21:24 abi-4.4.0-78-generic
-rw-r--r--  1 root root  1246311 май 18 01:09 abi-4.4.0-79-generic
-rw-r--r--  1 root root  1246311 июн 14 15:24 abi-4.4.0-81-generic
-rw-r--r--  1 root root  1246511 июн 26 22:45 abi-4.4.0-83-generic
-rw-r--r--  1 root root  1246670 июл 18 18:00 abi-4.4.0-87-generic
-rw-r--r--  1 root root  1246835 авг  1 01:25 abi-4.4.0-89-generic
-rw-r--r--  1 root root  1246835 авг  8 16:58 abi-4.4.0-91-generic
-rw-r--r--  1 root root   189558 июл 13  2016 config-4.4.0-31-generic
-rw-r--r--  1 root root   190214 апр 20 15:02 config-4.4.0-75-generic
-rw-r--r--  1 root root   190355 апр 27 21:24 config-4.4.0-78-generic
-rw-r--r--  1 root root   190356 май 18 01:09 config-4.4.0-79-generic
-rw-r--r--  1 root root   190356 июн 14 15:24 config-4.4.0-81-generic
-rw-r--r--  1 root root   190356 июн 26 22:45 config-4.4.0-83-generic
-rw-r--r--  1 root root   190356 июл 18 18:00 config-4.4.0-87-generic
-rw-r--r--  1 root root   190356 авг  1 01:25 config-4.4.0-89-generic
-rw-r--r--  1 root root   190356 авг  8 16:58 config-4.4.0-91-generic
drwxr-xr-x  5 root root     1024 авг 11 12:05 grub
-rw-r--r--  1 root root        0 авг 29 21:29 initrd.2.img-4.4.0-75-generic
-rw-r--r--  1 root root        0 авг 29 21:29 initrd.2.img-4.4.0-78-generic
-rw-r--r--  1 root root        0 авг 29 21:29 initrd.2.img-4.4.0-79-generic
-rw-r--r--  1 root root        0 авг 29 21:29 initrd.2.img-4.4.0-81-generic
-rw-r--r--  1 root root 39909694 июл 13 17:47 initrd.img-4.4.0-31-generic
-rw-r--r--  1 root root 40460656 июл 13 17:47 initrd.img-4.4.0-75-generic
-rw-r--r--  1 root root 40459652 июл 13 17:46 initrd.img-4.4.0-78-generic
-rw-r--r--  1 root root 40457886 июл 13 17:46 initrd.img-4.4.0-79-generic
-rw-r--r--  1 root root 40455496 июл 13 17:45 initrd.img-4.4.0-81-generic
-rw-r--r--  1 root root 40462294 июл 13 17:45 initrd.img-4.4.0-83-generic
-rw-r--r--  1 root root 40471232 июл 26 10:44 initrd.img-4.4.0-87-generic
-rw-r--r--  1 root root 40476679 авг  5 10:35 initrd.img-4.4.0-89-generic
-rw-r--r--  1 root root 40476868 авг 11 12:05 initrd.img-4.4.0-91-generic
drwx------  2 root root    12288 май  8 21:42 lost+found
-rw-r--r--  1 root root   182704 янв 28  2016 memtest86+.bin
-rw-r--r--  1 root root   184380 янв 28  2016 memtest86+.elf
-rw-r--r--  1 root root   184840 янв 28  2016 memtest86+_multiboot.bin
-rw-------  1 root root  3866473 июл 13  2016 System.map-4.4.0-31-generic
-rw-------  1 root root  3883390 апр 20 15:02 System.map-4.4.0-75-generic
-rw-------  1 root root  3882872 апр 27 21:24 System.map-4.4.0-78-generic
-rw-------  1 root root  3883279 май 18 01:09 System.map-4.4.0-79-generic
-rw-------  1 root root  3883391 июн 14 15:24 System.map-4.4.0-81-generic
-rw-------  1 root root  3883887 июн 26 22:45 System.map-4.4.0-83-generic
-rw-------  1 root root  3884173 июл 18 18:00 System.map-4.4.0-87-generic
-rw-------  1 root root  3884798 авг  1 01:25 System.map-4.4.0-89-generic
-rw-------  1 root root  3884798 авг  8 16:58 System.map-4.4.0-91-generic
drwx------  4 root root     1024 авг 29 21:03 .Trash-0
-rw-r--r--  1 root root  7047520 май  8 21:47 vmlinuz-4.4.0-31-generic
-rw-------  1 root root  7081872 апр 20 15:02 vmlinuz-4.4.0-75-generic
-rw-------  1 root root  7089552 апр 27 21:24 vmlinuz-4.4.0-78-generic
-rw-------  1 root root  7091696 май 18 01:09 vmlinuz-4.4.0-79-generic
-rw-------  1 root root  7092784 июн 14 15:24 vmlinuz-4.4.0-81-generic
-rw-------  1 root root  7092720 июн 26 22:45 vmlinuz-4.4.0-83-generic
-rw-------  1 root root  7095888 июл 18 18:00 vmlinuz-4.4.0-87-generic
-rw-------  1 root root  7098096 авг  1 01:25 vmlinuz-4.4.0-89-generic
-rw-------  1 root root  7097936 авг  8 16:58 vmlinuz-4.4.0-91-generic

/boot2:
total 131288
drwxr-xr-x  3 root root     4096 авг 30 01:47 .
drwxr-xr-x 26 root root     4096 авг 30 00:31 ..
-rw-r--r--  1 root root  1246835 авг  8 16:58 abi-4.4.0-91-generic
-rw-r--r--  1 root root   190356 авг  8 16:58 config-4.4.0-91-generic
drwxr-xr-x  5 root root     4096 авг 30 01:47 grub
-rw-r--r--  1 root root 40473407 авг 30 01:25 initrd.img-4.4.0-91-generic
-rw-r--r--  1 root root 40477265 авг 30 01:23 initrd.img-4.4.0-92-generic
-rw-r--r--  1 root root 40470256 авг 30 01:22 initrd.img-4.4.0-93-generic
-rw-r--r--  1 root root   182704 янв 28  2016 memtest86+.bin
-rw-r--r--  1 root root   184380 янв 28  2016 memtest86+.elf
-rw-r--r--  1 root root   184840 янв 28  2016 memtest86+_multiboot.bin
-rw-------  1 root root  3884798 авг  8 16:58 System.map-4.4.0-91-generic
-rw-------  1 root root  7097936 авг  8 16:58 vmlinuz-4.4.0-91-generic
root@host:/#



опять места нет

root@host:/# df -h
Filesystem                   Size  Used Avail Use% Mounted on
udev                         1,9G     0  1,9G   0% /dev
tmpfs                        378M  6,6M  371M   2% /run
/dev/mapper/ubuntu--vg-root  455G  253G  179G  59% /
tmpfs                        1,9G  270M  1,6G  15% /dev/shm
tmpfs                        5,0M  4,0K  5,0M   1% /run/lock
tmpfs                        1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda1                    472M  465M     0 100% /boot
cgmfs                        100K     0  100K   0% /run/cgmanager/fs
tmpfs                        378M  172K  378M   1% /run/user/1000
/home/user/.Private          455G  253G  179G  59% /home/user

Оффлайн ReNzRv

  • Старожил
  • *
  • Сообщений: 2648
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #54 : 30 Августа 2017, 02:25:40 »
sed -i '/GRUB_ENABLE_CRYPTODISK/d' /etc/default/grub; update-grub

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #55 : 30 Августа 2017, 02:27:44 »
root@host:/# sed -i '/GRUB_ENABLE_CRYPTODISK/d' /etc/default/grub; update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-91-generic
Found initrd image: /boot/initrd.img-4.4.0-91-generic
Found linux image: /boot/vmlinuz-4.4.0-89-generic
Found initrd image: /boot/initrd.img-4.4.0-89-generic
Found linux image: /boot/vmlinuz-4.4.0-87-generic
Found initrd image: /boot/initrd.img-4.4.0-87-generic
Found linux image: /boot/vmlinuz-4.4.0-83-generic
Found initrd image: /boot/initrd.img-4.4.0-83-generic
Found linux image: /boot/vmlinuz-4.4.0-81-generic
Found initrd image: /boot/initrd.img-4.4.0-81-generic
Found linux image: /boot/vmlinuz-4.4.0-79-generic
Found initrd image: /boot/initrd.img-4.4.0-79-generic
Found linux image: /boot/vmlinuz-4.4.0-78-generic
Found initrd image: /boot/initrd.img-4.4.0-78-generic
Found linux image: /boot/vmlinuz-4.4.0-75-generic
Found initrd image: /boot/initrd.img-4.4.0-75-generic
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done

Оффлайн ReNzRv

  • Старожил
  • *
  • Сообщений: 2648
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #56 : 30 Августа 2017, 02:34:54 »
rm -r -f /boot2 /boot/.Trash-0; echo /boot/*4.4.0-[3-8][0-9]*

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #57 : 30 Августа 2017, 02:37:10 »
root@host:/# rm -r -f /boot2 /boot/.Trash-0; echo /boot/*4.4.0-[3-8][0-9]*
/boot/abi-4.4.0-31-generic /boot/abi-4.4.0-75-generic /boot/abi-4.4.0-78-generic /boot/abi-4.4.0-79-generic /boot/abi-4.4.0-81-generic /boot/abi-4.4.0-83-generic /boot/abi-4.4.0-87-generic /boot/abi-4.4.0-89-generic /boot/config-4.4.0-31-generic /boot/config-4.4.0-75-generic /boot/config-4.4.0-78-generic /boot/config-4.4.0-79-generic /boot/config-4.4.0-81-generic /boot/config-4.4.0-83-generic /boot/config-4.4.0-87-generic /boot/config-4.4.0-89-generic /boot/initrd.2.img-4.4.0-75-generic /boot/initrd.2.img-4.4.0-78-generic /boot/initrd.2.img-4.4.0-79-generic /boot/initrd.2.img-4.4.0-81-generic /boot/initrd.img-4.4.0-31-generic /boot/initrd.img-4.4.0-75-generic /boot/initrd.img-4.4.0-78-generic /boot/initrd.img-4.4.0-79-generic /boot/initrd.img-4.4.0-81-generic /boot/initrd.img-4.4.0-83-generic /boot/initrd.img-4.4.0-87-generic /boot/initrd.img-4.4.0-89-generic /boot/System.map-4.4.0-31-generic /boot/System.map-4.4.0-75-generic /boot/System.map-4.4.0-78-generic /boot/System.map-4.4.0-79-generic /boot/System.map-4.4.0-81-generic /boot/System.map-4.4.0-83-generic /boot/System.map-4.4.0-87-generic /boot/System.map-4.4.0-89-generic /boot/vmlinuz-4.4.0-31-generic /boot/vmlinuz-4.4.0-75-generic /boot/vmlinuz-4.4.0-78-generic /boot/vmlinuz-4.4.0-79-generic /boot/vmlinuz-4.4.0-81-generic /boot/vmlinuz-4.4.0-83-generic /boot/vmlinuz-4.4.0-87-generic /boot/vmlinuz-4.4.0-89-generic

Оффлайн ReNzRv

  • Старожил
  • *
  • Сообщений: 2648
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #58 : 30 Августа 2017, 02:39:57 »
rm /boot/abi-4.4.0-31-generic /boot/abi-4.4.0-75-generic /boot/abi-4.4.0-78-generic /boot/abi-4.4.0-79-generic /boot/abi-4.4.0-81-generic /boot/abi-4.4.0-83-generic /boot/abi-4.4.0-87-generic /boot/abi-4.4.0-89-generic /boot/config-4.4.0-31-generic /boot/config-4.4.0-75-generic /boot/config-4.4.0-78-generic /boot/config-4.4.0-79-generic /boot/config-4.4.0-81-generic /boot/config-4.4.0-83-generic /boot/config-4.4.0-87-generic /boot/config-4.4.0-89-generic /boot/initrd.2.img-4.4.0-75-generic /boot/initrd.2.img-4.4.0-78-generic /boot/initrd.2.img-4.4.0-79-generic /boot/initrd.2.img-4.4.0-81-generic /boot/initrd.img-4.4.0-31-generic /boot/initrd.img-4.4.0-75-generic /boot/initrd.img-4.4.0-78-generic /boot/initrd.img-4.4.0-79-generic /boot/initrd.img-4.4.0-81-generic /boot/initrd.img-4.4.0-83-generic /boot/initrd.img-4.4.0-87-generic /boot/initrd.img-4.4.0-89-generic /boot/System.map-4.4.0-31-generic /boot/System.map-4.4.0-75-generic /boot/System.map-4.4.0-78-generic /boot/System.map-4.4.0-79-generic /boot/System.map-4.4.0-81-generic /boot/System.map-4.4.0-83-generic /boot/System.map-4.4.0-87-generic /boot/System.map-4.4.0-89-generic /boot/vmlinuz-4.4.0-31-generic /boot/vmlinuz-4.4.0-75-generic /boot/vmlinuz-4.4.0-78-generic /boot/vmlinuz-4.4.0-79-generic /boot/vmlinuz-4.4.0-81-generic /boot/vmlinuz-4.4.0-83-generic /boot/vmlinuz-4.4.0-87-generic /boot/vmlinuz-4.4.0-89-generic; update-grub

Оффлайн Slowt

  • Автор темы
  • Новичок
  • *
  • Сообщений: 40
    • Просмотр профиля
Re: Удаление файлов из корзины рута
« Ответ #59 : 30 Августа 2017, 02:41:37 »
root@host:/# rm /boot/abi-4.4.0-31-generic /boot/abi-4.4.0-75-generic /boot/abi-4.4.0-78-generic /boot/abi-4.4.0-79-generic /boot/abi-4.4.0-81-generic /boot/abi-4.4.0-83-generic /boot/abi-4.4.0-87-generic /boot/abi-4.4.0-89-generic /boot/config-4.4.0-31-generic /boot/config-4.4.0-75-generic /boot/config-4.4.0-78-generic /boot/config-4.4.0-79-generic /boot/config-4.4.0-81-generic /boot/config-4.4.0-83-generic /boot/config-4.4.0-87-generic /boot/config-4.4.0-89-generic /boot/initrd.2.img-4.4.0-75-generic /boot/initrd.2.img-4.4.0-78-generic /boot/initrd.2.img-4.4.0-79-generic /boot/initrd.2.img-4.4.0-81-generic /boot/initrd.img-4.4.0-31-generic /boot/initrd.img-4.4.0-75-generic /boot/initrd.img-4.4.0-78-generic /boot/initrd.img-4.4.0-79-generic /boot/initrd.img-4.4.0-81-generic /boot/initrd.img-4.4.0-83-generic /boot/initrd.img-4.4.0-87-generic /boot/initrd.img-4.4.0-89-generic /boot/System.map-4.4.0-31-generic /boot/System.map-4.4.0-75-generic /boot/System.map-4.4.0-78-generic /boot/System.map-4.4.0-79-generic /boot/System.map-4.4.0-81-generic /boot/System.map-4.4.0-83-generic /boot/System.map-4.4.0-87-generic /boot/System.map-4.4.0-89-generic /boot/vmlinuz-4.4.0-31-generic /boot/vmlinuz-4.4.0-75-generic /boot/vmlinuz-4.4.0-78-generic /boot/vmlinuz-4.4.0-79-generic /boot/vmlinuz-4.4.0-81-generic /boot/vmlinuz-4.4.0-83-generic /boot/vmlinuz-4.4.0-87-generic /boot/vmlinuz-4.4.0-89-generic; update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-91-generic
Found initrd image: /boot/initrd.img-4.4.0-91-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done


root@host:/# df -h
Filesystem                   Size  Used Avail Use% Mounted on
udev                         1,9G     0  1,9G   0% /dev
tmpfs                        378M  6,6M  371M   2% /run
/dev/mapper/ubuntu--vg-root  455G  253G  179G  59% /
tmpfs                        1,9G  7,3M  1,9G   1% /dev/shm
tmpfs                        5,0M  4,0K  5,0M   1% /run/lock
tmpfs                        1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda1                    472M   61M  388M  14% /boot
cgmfs                        100K     0  100K   0% /run/cgmanager/fs
tmpfs                        378M  172K  378M   1% /run/user/1000
/home/user/.Private          455G  253G  179G  59% /home/user

 

Страница сгенерирована за 0.044 секунд. Запросов: 24.