LinuxForum.Fans
Тема

Отключенный swap монтируется

Автор: kirillov3798 32 сообщений 5120 просмотров
#368180

verg,

text
[root@SemenPC ~]# cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="${saved_entry}" fi

if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi

function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi }

function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi }

terminal_output console set timeout=5 ### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora, with Linux 3.12.10-300.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12.10-300.fc20.x86_64-advanced-91756a1b-b272-4c0e-8a48-95a1b539f29a' { set gfxpayload=text insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7624bf34-3e21-4efc-8c2b-04b84f9bd8de else search --no-floppy --fs-uuid --set=root 7624bf34-3e21-4efc-8c2b-04b84f9bd8de fi linuxefi /vmlinuz-3.12.10-300.fc20.x86_64 root=UUID=91756a1b-b272-4c0e-8a48-95a1b539f29a ro vconsole.font=latarcyrheb-sun16 rhgb quiet initrdefi /initramfs-3.12.10-300.fc20.x86_64.img } menuentry 'Fedora, with Linux 3.11.10-301.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.10-301.fc20.x86_64-advanced-91756a1b-b272-4c0e-8a48-95a1b539f29a' { set gfxpayload=text insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7624bf34-3e21-4efc-8c2b-04b84f9bd8de else search --no-floppy --fs-uuid --set=root 7624bf34-3e21-4efc-8c2b-04b84f9bd8de fi linuxefi /vmlinuz-3.11.10-301.fc20.x86_64 root=UUID=91756a1b-b272-4c0e-8a48-95a1b539f29a ro vconsole.font=latarcyrheb-sun16 rhgb quiet initrdefi /initramfs-3.11.10-301.fc20.x86_64.img } menuentry 'Fedora, with Linux 0-rescue-a0f7cfe99f944e3cb3151796e69ce849' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-0-rescue-a0f7cfe99f944e3cb3151796e69ce849-advanced-91756a1b-b272-4c0e-8a48-95a1b539f29a' { set gfxpayload=text insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7624bf34-3e21-4efc-8c2b-04b84f9bd8de else search --no-floppy --fs-uuid --set=root 7624bf34-3e21-4efc-8c2b-04b84f9bd8de fi linuxefi /vmlinuz-0-rescue-a0f7cfe99f944e3cb3151796e69ce849 root=UUID=91756a1b-b272-4c0e-8a48-95a1b539f29a ro vconsole.font=latarcyrheb-sun16 rhgb quiet initrdefi /initramfs-0-rescue-a0f7cfe99f944e3cb3151796e69ce849.img }

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ### ### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### [root@SemenPC ~]#

#368183

kirillov3798,
Третий раз пишу.
з.ы. так что там со swap после перезагрузки и команд?
Команды должны отработать (даже на gpt).
Во fstab, конечно, нужно закомментировать строчку.

#368184
"verg" написал:
так что там со swap после перезагрузки и команд?
text
[root@SemenPC ~]# systemctl status swap.target
swap.target
   Loaded: masked (/dev/null)
   Active: inactive (dead) since Сб 2014-02-22 20:18:49 KRAT; 2h 21min ago

фев 22 20:18:48 SemenPC systemd[1]: Starting Swap. фев 22 20:18:48 SemenPC systemd[1]: Reached target Swap. фев 22 20:18:49 SemenPC systemd[1]: Stopping Swap. фев 22 20:18:49 SemenPC systemd[1]: Stopped target Swap. Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended. [root@SemenPC ~]#

#368185
"verg" написал:
Во fstab, конечно, нужно закомментировать строчку.

Закомментирована давно.

#368186

kirillov3798,
Перезагружались?

#368191

kirillov3798,
И как, всё ещё монтируется?
Покажите:
[console]free
cat /proc/swaps[/console]

#368192

verg, нет, не монтируется.

#368193
"kirillov3798" написал:
verg, нет, не монтируется.

Решено?

#368194
"verg" написал:
Решено?

Да.

#368195

kirillov3798,
Вернуть swap назад:
[console=root]systemctl unmask swap.target dev-sda4.swap[/console]

Войдите или зарегистрируйтесь, чтобы ответить.