Score:0

Grub การตั้งค่า "บู๊ตจากการบู๊ตก่อนหน้านี้" ไม่ทำงาน

ธง cn

ขณะนี้ฉันใช้ Ubuntu 21.10 และ Windows 10 ฉันมักจะตั้งค่าด้วงในแบบที่ฉันต้องการโดยใช้เครื่องมือปรับแต่งด้วง ท่ามกลางการเปลี่ยนแปลงอื่นๆ (ซึ่งทั้งหมดได้ผล) ฉันตั้งค่าเพื่อให้บูทจากพาร์ติชันที่บูทล่าสุด การตั้งค่านี้ใช้งานได้ใน 20.04 แต่ตอนนี้ไม่เป็นเช่นนั้น แต่จะพยายามบูตเข้าสู่ Windows แทน

แก้ไข: นี่คือเนื้อหาของ /etc/default/grub:

# หากคุณเปลี่ยนไฟล์นี้ ให้เรียกใช้ 'update-grub' หลังจากนั้นเพื่ออัปเดต
# /boot/grub/grub.cfg
# สำหรับเอกสารฉบับเต็มของตัวเลือกในไฟล์นี้ โปรดดูที่:
# info -f grub -n 'การกำหนดค่าอย่างง่าย'

GRUB_DEFAULT=บันทึกแล้ว
GRUB_TIMEOUT_STYLE="ซ่อน"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="กลับมาอย่างเงียบ ๆ =UUID=920a469a-eee8-4841-b43a-e96694ac485b"
GRUB_CMDLINE_LINUX=""

# ยกเลิกการแสดงความคิดเห็นเพื่อเปิดใช้งานการกรอง BadRAM แก้ไขให้เหมาะกับความต้องการของคุณ
# ใช้งานได้กับ Linux (ไม่ต้องใช้โปรแกรมแก้ไข) และกับเคอร์เนลใด ๆ ที่ได้รับ
# ข้อมูลแผนที่หน่วยความจำจาก GRUB (GNU Mach, เคอร์เนลของ FreeBSD ... )
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefe"

# Uncomment เพื่อปิดการใช้งานเทอร์มินัลกราฟิก (grub-pc เท่านั้น)
#GRUB_TERMINAL="คอนโซล"

# ความละเอียดที่ใช้กับเทอร์มินัลกราฟิก
# โปรดทราบว่าคุณสามารถใช้เฉพาะโหมดที่การ์ดกราฟิกของคุณรองรับผ่าน VBE
# คุณสามารถดูได้ใน GRUB จริงด้วยคำสั่ง `vbeinfo'
#GRUB_GFXMODE="640x480"

# ไม่แสดงความคิดเห็นหากคุณไม่ต้องการให้ GRUB ส่งพารามิเตอร์ "root=UUID=xxx" ไปยัง Linux
#GRUB_DISABLE_LINUX_UUID="จริง"

# ไม่แสดงความคิดเห็นเพื่อปิดการสร้างรายการเมนูโหมดการกู้คืน
#GRUB_DISABLE_RECOVERY="จริง"

# ยกเลิกการแสดงความคิดเห็นเพื่อรับเสียงบี๊บเมื่อเริ่มด้วง
#GRUB_INIT_TUNE="480 440 1"

GRUB_SAVEDEFAULT=จริง

แก้ไข 2: นี่คือเนื้อหาของไฟล์ภายใน /etc/default/grub.d: init-select.cfg

# แก้ไขข้อบกพร่องในแพ็คเกจ init-select ที่ล้าสมัยซึ่งใช้งานไม่ได้
# grub-mkconfig เมื่อ init-select ถูกลบออกแต่ไม่ถูกล้าง ไฟล์นี้ไม่
# ไม่มีอะไรและจะถูกลบออกในภายหลัง 
#
# ดู:
# https://bugs.debian.org/858528
# https://bugs.debian.org/863801

แก้ไข 3: นี่คือเนื้อหาของ /etc/grub.d:

./44_memtest86+
./.script_sources.txt
./43_linux_xen
./41_linux_proxy
./45_os-prober
./47_custom_proxy
./00_ส่วนหัว
./46_uefi-เฟิร์มแวร์
./10_linux_proxy
./ถัง
./bin/grubcfg_proxy
./proxifiedScripts
./proxifiedScripts/custom
./proxifiedScripts/linux
./42_linux_zfs
./README
./05_debian_theme
./40_custom_proxy
./48_custom
./สำรองข้อมูล
./backup/default_grub
./backup/boot_grub
./backup/boot_grub/unicode.pf2
./backup/boot_grub/grubenv
./backup/boot_grub/grub.cfg
./backup/boot_grub/gfxblacklist.txt
./backup/boot_grub/x86_64-efi
./backup/boot_grub/x86_64-efi/newc.mod
./backup/boot_grub/x86_64-efi/part_sun.mod
./backup/boot_grub/x86_64-efi/mul_test.mod
./backup/boot_grub/x86_64-efi/boot.mod
./backup/boot_grub/x86_64-efi/linux.mod
./backup/boot_grub/x86_64-efi/usb_keyboard.mod
./backup/boot_grub/x86_64-efi/scsi.mod
./backup/boot_grub/x86_64-efi/search_fs_file.mod
./backup/boot_grub/x86_64-efi/pbkdf2.mod
./backup/boot_grub/x86_64-efi/div.mod
./backup/boot_grub/x86_64-efi/video.lst
./backup/boot_grub/x86_64-efi/part_acorn.mod
./backup/boot_grub/x86_64-efi/nilfs2.mod
./backup/boot_grub/x86_64-efi/usbtest.mod
./backup/boot_grub/x86_64-efi/f2fs.mod
./backup/boot_grub/x86_64-efi/pbkdf2_test.mod
./backup/boot_grub/x86_64-efi/blocklist.mod
./backup/boot_grub/x86_64-efi/datetime.mod
./backup/boot_grub/x86_64-efi/shift_test.mod
./backup/boot_grub/x86_64-efi/mmap.mod
./backup/boot_grub/x86_64-efi/chain.mod
./backup/boot_grub/x86_64-efi/core.efi
./backup/boot_grub/x86_64-efi/macho.mod
./backup/boot_grub/x86_64-efi/cbmemc.mod
./backup/boot_grub/x86_64-efi/ext2.mod
./backup/boot_grub/x86_64-efi/xnu_uuid.mod
./backup/boot_grub/x86_64-efi/part_gpt.mod
./backup/boot_grub/x86_64-efi/morse.mod
./backup/boot_grub/x86_64-efi/fat.mod
./backup/boot_grub/x86_64-efi/dm_nv.mod
./backup/boot_grub/x86_64-efi/minix_be.mod
./backup/boot_grub/x86_64-efi/part_amiga.mod
./backup/boot_grub/x86_64-efi/setpci.mod
./backup/boot_grub/x86_64-efi/datehook.mod
./backup/boot_grub/x86_64-efi/ehci.mod
./backup/boot_grub/x86_64-efi/part_plan.mod
./backup/boot_grub/x86_64-efi/part_apple.mod
./backup/boot_grub/x86_64-efi/ahci.mod
./backup/boot_grub/x86_64-efi/bsd.mod
./backup/boot_grub/x86_64-efi/cmp.mod
./backup/boot_grub/x86_64-efi/cpio.mod
./backup/boot_grub/x86_64-efi/luks.mod
./backup/boot_grub/x86_64-efi/video_cirrus.mod
./backup/boot_grub/x86_64-efi/reboot.mod
./backup/boot_grub/x86_64-efi/smbios.mod
./backup/boot_grub/x86_64-efi/ls.mod
./backup/boot_grub/x86_64-efi/random.mod
./backup/boot_grub/x86_64-efi/hexdump.mod
./backup/boot_grub/x86_64-efi/video_colors.mod
./backup/boot_grub/x86_64-efi/keylayouts.mod
./backup/boot_grub/x86_64-efi/bufio.mod
./backup/boot_grub/x86_64-efi/nativedisk.mod
./backup/boot_grub/x86_64-efi/usbserial_usbdebug.mod
./backup/boot_grub/x86_64-efi/modinfo.sh
./backup/boot_grub/x86_64-efi/affs.mod
./backup/boot_grub/x86_64-efi/reiserfs.mod
./backup/boot_grub/x86_64-efi/lsefimmap.mod
./backup/boot_grub/x86_64-efi/verifiers.mod
./backup/boot_grub/x86_64-efi/video_bochs.mod
./backup/boot_grub/x86_64-efi/videotest_checksum.mod
./backup/boot_grub/x86_64-efi/usbms.mod
./backup/boot_grub/x86_64-efi/date.mod
./backup/boot_grub/x86_64-efi/mdraid09.mod
./backup/boot_grub/x86_64-efi/trig.mod
./backup/boot_grub/x86_64-efi/normal.mod
./backup/boot_grub/x86_64-efi/xnu.mod
./backup/boot_grub/x86_64-efi/pgp.mod
./backup/boot_grub/x86_64-efi/ufs1.mod
./backup/boot_grub/x86_64-efi/xfs.mod
./backup/boot_grub/x86_64-efi/cs5536.mod
./backup/boot_grub/x86_64-efi/gcry_rsa.mod
./backup/boot_grub/x86_64-efi/parttool.mod
./backup/boot_grub/x86_64-efi/gcry_sha512.mod
./backup/boot_grub/x86_64-efi/raid5rec.mod
./backup/boot_grub/x86_64-efi/zfs.mod
./backup/boot_grub/x86_64-efi/gcry_md5.mod
./backup/boot_grub/x86_64-efi/priority_queue.mod
./backup/boot_grub/x86_64-efi/multiboot.mod
./backup/boot_grub/x86_64-efi/font.mod
./backup/boot_grub/x86_64-efi/test.mod
./backup/boot_grub/x86_64-efi/diskfilter.mod
./backup/boot_grub/x86_64-efi/bitmap_scale.mod
./backup/boot_grub/x86_64-efi/backtrace.mod
./backup/boot_grub/x86_64-efi/raid6rec.mod
./backup/boot_grub/x86_64-efi/fshelp.mod
./backup/boot_grub/x86_64-efi/true.mod
./backup/boot_grub/x86_64-efi/test_blockarg.mod
./backup/boot_grub/x86_64-efi/odc.mod
./backup/boot_grub/x86_64-efi/ohci.mod
./backup/boot_grub/x86_64-efi/mpi.mod
./backup/boot_grub/x86_64-efi/hfsplus.mod
./backup/boot_grub/x86_64-efi/efifwsetup.mod
./backup/boot_grub/x86_64-efi/procfs.mod
./backup/boot_grub/x86_64-efi/cbls.mod
./backup/boot_grub/x86_64-efi/testload.mod
./backup/boot_grub/x86_64-efi/ctz_test.mod
./backup/boot_grub/x86_64-efi/wrmsr.mod
./backup/boot_grub/x86_64-efi/fixvideo.mod
./backup/boot_grub/x86_64-efi/iso9660.mod
./backup/boot_grub/x86_64-efi/gcry_des.mod
./backup/boot_grub/x86_64-efi/multiboot2.mod
./backup/boot_grub/x86_64-efi/crc64.mod
./backup/boot_grub/x86_64-efi/exfat.mod
./backup/boot_grub/x86_64-efi/tr.mod
./backup/boot_grub/x86_64-efi/lspci.mod
./backup/boot_grub/x86_64-efi/memrw.mod
./backup/boot_grub/x86_64-efi/part_bsd.mod
./backup/boot_grub/x86_64-efi/signature_test.mod
./backup/boot_grub/x86_64-efi/ufs2.mod
./backup/boot_grub/x86_64-efi/ntfscomp.mod
./backup/boot_grub/x86_64-efi/load.cfg
./backup/boot_grub/x86_64-efi/at_keyboard.mod
./backup/boot_grub/x86_64-efi/msdospart.mod
./backup/boot_grub/x86_64-efi/gcry_rfc2268.mod
./backup/boot_grub/x86_64-efi/hfs.mod
./backup/boot_grub/x86_64-efi/video_fb.mod
./backup/boot_grub/x86_64-efi/bswap_test.mod
./backup/boot_grub/x86_64-efi/zfscrypt.mod
./backup/boot_grub/x86_64-efi/ata.mod
./backup/boot_grub/x86_64-efi/relocator.mod
./backup/boot_grub/x86_64-efi/progress.mod
./backup/boot_grub/x86_64-efi/gettext.mod
./backup/boot_grub/x86_64-efi/cryptodisk.mod
./backup/boot_grub/x86_64-efi/halt.mod
./backup/boot_grub/x86_64-efi/gcry_crc.mod
./backup/boot_grub/x86_64-efi/tpm.mod
./backup/boot_grub/x86_64-efi/linux16.mod
./backup/boot_grub/x86_64-efi/parttool.lst
./backup/boot_grub/x86_64-efi/gcry_md4.mod
./backup/boot_grub/x86_64-efi/search_fs_uuid.mod
./backup/boot_grub/x86_64-efi/cbtable.mod
./backup/boot_grub/x86_64-efi/gcry_twofish.mod
./backup/boot_grub/x86_64-efi/jfs.mod
./backup/boot_grub/x86_64-efi/elf.mod
./backup/boot_grub/x86_64-efi/lzopio.mod
./backup/boot_grub/x86_64-efi/bitmap.mod
./backup/boot_grub/x86_64-efi/png.mod
./backup/boot_grub/x86_64-efi/bfs.mod
./backup/boot_grub/x86_64-efi/geli.mod
./backup/boot_grub/x86_64-efi/usbserial_ftdi.mod
./backup/boot_grub/x86_64-efi/cpuid.mod
./backup/boot_grub/x86_64-efi/div_test.mod
./backup/boot_grub/x86_64-efi/gcry_dsa.mod
./backup/boot_grub/x86_64-efi/efinet.mod
./backup/boot_grub/x86_64-efi/legacycfg.mod
./backup/boot_grub/x86_64-efi/efi_uga.mod
./backup/boot_grub/x86_64-efi/ufs1_be.mod
./backup/boot_grub/x86_64-efi/macbless.mod
./backup/boot_grub/x86_64-efi/aout.mod
./backup/boot_grub/x86_64-efi/cbfs.mod
./backup/boot_grub/x86_64-efi/gcry_rmd160.mod
./backup/boot_grub/x86_64-efi/tar.mod
./backup/boot_grub/x86_64-efi/cbtime.mod
./backup/boot_grub/x86_64-efi/terminal.lst
./backup/boot_grub/x86_64-efi/hfspluscomp.mod
./backup/boot_grub/x86_64-efi/rdmsr.mod
./backup/boot_grub/x86_64-efi/gcry_tiger.mod
./backup/boot_grub/x86_64-efi/offsetio.mod
./backup/boot_grub/x86_64-efi/usbserial_pl2303.mod
./backup/boot_grub/x86_64-efi/syslinuxcfg.mod
./backup/boot_grub/x86_64-efi/crypto.lst
./backup/boot_grub/x86_64-efi/loadenv.mod
./backup/boot_grub/x86_64-efi/mdraid1x.mod
./backup/boot_grub/x86_64-efi/lvm.mod
./backup/boot_grub/x86_64-efi/usb.mod
./backup/boot_grub/x86_64-efi/pata.mod
./backup/boot_grub/x86_64-efi/romfs.mod
./backup/boot_grub/x86_64-efi/minicmd.mod
./backup/boot_grub/x86_64-efi/gfxterm_background.mod
./backup/boot_grub/x86_64-efi/eval.mod
./backup/boot_grub/x86_64-efi/loopback.mod
./backup/boot_grub/x86_64-efi/play.mod
./backup/boot_grub/x86_64-efi/probe.mod
./backup/boot_grub/x86_64-efi/setjmp_test.mod
./backup/boot_grub/x86_64-efi/zfsinfo.mod
./backup/boot_grub/x86_64-efi/lsmmap.mod
./backup/boot_grub/x86_64-efi/partmap.lst
./backup/boot_grub/x86_64-efi/gcry_arcfour.mod
./backup/boot_grub/x86_64-efi/keystatus.mod
./backup/boot_grub/x86_64-efi/minix.mod
./backup/boot_grub/x86_64-efi/cmdline_cat_test.mod
./backup/boot_grub/x86_64-efi/part_dfly.mod
./backup/boot_grub/x86_64-efi/hello.mod
./backup/boot_grub/x86_64-efi/gcry_serpent.mod
./backup/boot_grub/x86_64-efi/lsefi.mod
./backup/boot_grub/x86_64-efi/search_label.mod
./backup/boot_grub/x86_64-efi/btrfs.mod
./backup/boot_grub/x86_64-efi/shim_lock.mod
./backup/boot_grub/x86_64-efi/gcry_rijndael.mod
./backup/boot_grub/x86_64-efi/uhci.mod
./backup/boot_grub/x86_64-efi/hdparm.mod
./backup/boot_grub/x86_64-efi/part_msdos.mod
./backup/boot_grub/x86_64-efi/terminal.mod
./backup/boot_grub/x86_64-efi/ldm.mod
./backup/boot_grub/x86_64-efi/xzio.mod
./backup/boot_grub/x86_64-efi/read.mod
./backup/boot_grub/x86_64-efi/loadbios.mod
./backup/boot_grub/x86_64-efi/iorw.mod
./backup/boot_grub/x86_64-efi/gcry_blowfish.mod
./backup/boot_grub/x86_64-efi/gcry_whirlpool.mod
./backup/boot_grub/x86_64-efi/memdisk.mod
./backup/boot_grub/x86_64-efi/sfs.mod
./backup/boot_grub/x86_64-efi/gzio.mod
./backup/boot_grub/x86_64-efi/udf.mod
./backup/boot_grub/x86_64-efi/gcry_sha256.mod
./backup/boot_grub/x86_64-efi/terminfo.mod
./backup/boot_grub/x86_64-efi/sleep.mod
./backup/boot_grub/x86_64-efi/jpeg.mod
./backup/boot_grub/x86_64-efi/serial.mod
./backup/boot_grub/x86_64-efi/cat.mod
./backup/boot_grub/x86_64-efi/all_video.mod
./backup/boot_grub/x86_64-efi/efi_gop.mod
./backup/boot_grub/x86_64-efi/testspeed.mod
./backup/boot_grub/x86_64-efi/crypto.mod
./backup/boot_grub/x86_64-efi/lsacpi.mod
./backup/boot_grub/x86_64-efi/xnu_uuid_test.mod
./backup/boot_grub/x86_64-efi/videotest.mod
./backup/boot_grub/x86_64-efi/configfile.mod
./backup/boot_grub/x86_64-efi/spkmodem.mod
./backup/boot_grub/x86_64-efi/gcry_camellia.mod
./backup/boot_grub/x86_64-efi/password.mod
./backup/boot_grub/x86_64-efi/disk.mod
./backup/boot_grub/x86_64-efi/minix3.mod
./backup/boot_grub/x86_64-efi/gcry_seed.mod
./backup/boot_grub/x86_64-efi/gcry_sha1.mod
./backup/boot_grub/x86_64-efi/time.mod
./backup/boot_grub/x86_64-efi/gfxterm_menu.mod
./backup/boot_grub/x86_64-efi/file.mod
./backup/boot_grub/x86_64-efi/echo.mod
./backup/boot_grub/x86_64-efi/regexp.mod
./backup/boot_grub/x86_64-efi/search.mod
./backup/boot_grub/x86_64-efi/minix2.mod
./backup/boot_grub/x86_64-efi/net.mod
./backup/boot_grub/x86_64-efi/moddep.lst
./backup/boot_grub/x86_64-efi/tga.mod
./backup/boot_grub/x86_64-efi/tftp.mod
./backup/boot_grub/x86_64-efi/squash4.mod
./backup/boot_grub/x86_64-efi/lsefisystab.mod
./backup/boot_grub/x86_64-efi/mdraid09_be.mod
./backup/boot_grub/x86_64-efi/ntfs.mod
./backup/boot_grub/x86_64-efi/hashsum.mod
./backup/boot_grub/x86_64-efi/lssal.mod
./backup/boot_grub/x86_64-efi/videoinfo.mod
./backup/boot_grub/x86_64-efi/part_dvh.mod
./backup/boot_grub/x86_64-efi/linuxefi.mod
./backup/boot_grub/x86_64-efi/usbserial_common.mod
./backup/boot_grub/x86_64-efi/help.mod
./backup/boot_grub/x86_64-efi/gptsync.mod
./backup/boot_grub/x86_64-efi/zstd.mod
./backup/boot_grub/x86_64-efi/gcry_idea.mod
./backup/boot_grub/x86_64-efi/functional_test.mod
./backup/boot_grub/x86_64-efi/adler32.mod
./backup/boot_grub/x86_64-efi/minix2_be.mod
./backup/boot_grub/x86_64-efi/part_sunpc.mod
./backup/boot_grub/x86_64-efi/cmp_test.mod
./backup/boot_grub/x86_64-efi/gfxmenu.mod
./backup/boot_grub/x86_64-efi/acpi.mod
./backup/boot_grub/x86_64-efi/setjmp.mod
./backup/boot_grub/x86_64-efi/password_pbkdf2.mod
./backup/boot_grub/x86_64-efi/grub.efi
./backup/boot_grub/x86_64-efi/sleep_test.mod
./backup/boot_grub/x86_64-efi/strtoull_test.mod
./backup/boot_grub/x86_64-efi/appleldr.mod
./backup/boot_grub/x86_64-efi/exfctest.mod
./backup/boot_grub/x86_64-efi/fs.lst
./backup/boot_grub/x86_64-efi/http.mod
./backup/boot_grub/x86_64-efi/gcry_cast5.mod
./backup/boot_grub/x86_64-efi/video.mod
./backup/boot_grub/x86_64-efi/gfxterm.mod
./backup/boot_grub/x86_64-efi/legacy_password_test.mod
./backup/boot_grub/x86_64-efi/afs.mod
./backup/boot_grub/x86_64-efi/extcmd.mod
./backup/boot_grub/x86_64-efi/cpio_be.mod
./backup/boot_grub/x86_64-efi/minix3_be.mod
./backup/boot_grub/x86_64-efi/command.lst
./backup/boot_grub/x86_64-efi/archelp.mod
./backup/boot_grub/x86_64-efi/pcidump.mod
./backup/boot_grub/fonts
./backup/boot_grub/fonts/unicode.pf2
./backup/etc_grub_d
./backup/etc_grub_d/20_linux_xen
./backup/etc_grub_d/40_custom
./backup/etc_grub_d/41_custom
./backup/etc_grub_d/30_os-prober
./backup/etc_grub_d/00_header
./backup/etc_grub_d/10_linux_zfs
./backup/etc_grub_d/30_uefi-firmware
./backup/etc_grub_d/README
./backup/etc_grub_d/20_memtest86+
./backup/etc_grub_d/05_debian_theme
./backup/etc_grub_d/10_linux
 ./backup/RESTORE_INSTRUCTIONS
heynnema avatar
ru flag
โปรดดูคำตอบของฉัน ถ้ามันช่วยแก้ปัญหาของคุณได้ โปรดอย่าลืมยอมรับโดยคลิกที่ไอคอนเครื่องหมายถูกที่ปรากฏทางด้านซ้ายของคำตอบของฉัน ขอบคุณ!
Score:1
ธง ru

Grub Customizer... ไม่นะ... ที่มักจะสร้างความวุ่นวาย

อย่างไรก็ตาม แก้ไข /etc/default/grub และตรวจสอบให้แน่ใจว่ามีบรรทัดต่อไปนี้อยู่...

GRUB_DEFAULT=บันทึก # แก้ไขบรรทัดที่มีอยู่
GRUB_SAVEDEFAULT=true # เพิ่มบรรทัดนี้

แล้ว sudo ปรับปรุงด้วง.

อัปเดต #1:

เปลี่ยนชื่อ /etc/grub.dOld กลับไปเป็น /etc/grub.d นั่นเป็นสาเหตุที่คุณได้รับข้อผิดพลาด

นี่คือเนื้อหาไดเร็กทอรีของ /etc/grub.d บนระบบ 21.04 ควรมีมาตรฐานสวย โปรดสังเกตว่าวันที่ของ mod ทั้งหมดจะเหมือนกัน ในระบบของคุณ วันที่ของม็อดที่แตกต่างกันจะบ่งชี้ว่ามีบางสิ่ง/บางคนเปลี่ยนแปลงสิ่งเหล่านั้น GRUB Customizer ดูเหมือนว่าจะมีคุณสมบัติสำรอง/กู้คืนซึ่ง อาจ เป็นประโยชน์ ... อาจจะไม่

-rwxr-xr-x 1 รูทรูท 10627 30 มี.ค. 2564 00_header*
-rwxr-xr-x 1 รูทรูท 6258 30 มี.ค. 2564 05_debian_theme*
-rwxr-xr-x 1 รูทรูท 18151 30 มี.ค. 2564 10_linux*
-rwxr-xr-x 1 รูทรูท 43031 30 มี.ค. 2564 10_linux_zfs*
-rwxr-xr-x 1 รูทรูท 12894 30 มี.ค. 2564 20_linux_xen*
-rwxr-xr-x 1 รูทรูท 12059 30 มี.ค. 2564 30_os-prober*
-rwxr-xr-x 1 รูทรูท 1424 30 มี.ค. 2564 30_uefi-firmware*
-rwxr-xr-x 1 รูทรูท 214 30 มี.ค. 2564 40_custom*
-rwxr-xr-x 1 รูทรูท 216 30 มี.ค. 2564 41_custom*
-rw-r--r-- 1 รูท 483 30 มี.ค. 2564 README

อัปเดต #2:

ฉันมีสิทธิ์ที่จะกังวลเกี่ยวกับ Grub Customizer มันทำให้สิ่งต่าง ๆ ยุ่งเหยิง

มีไฟล์ใน /etc/grub.d/backup/RESTORE_INSTRUCTIONS ซึ่งมีรายละเอียดวิธีถอนการติดตั้งการเปลี่ยนแปลงที่ทำโดย GC

OP ยกเลิกการสพูลการเปลี่ยนแปลงบางอย่างด้วยตนเองเพื่อให้เครื่องบูตได้ตามต้องการ

Zarquan avatar
cn flag
บรรทัดเหล่านี้มีอยู่ในไฟล์ที่คุณบอกให้ฉันไป เว้นแต่ว่าพวกเขาจะมีเครื่องหมายคำพูดอยู่รอบตัวพวกเขา (ถ้านั่นสำคัญ) ฉันพยายามลบเครื่องหมายคำพูดออกและยังคงพยายามบูตฉันเข้าสู่ Windows ฉันไม่เคยมีปัญหากับ grub-customizer มาก่อนและฉันไม่คิดว่านี่เป็นตัวอย่างที่มันล้มเหลว (เพราะมันเพิ่มบรรทัด)
heynnema avatar
ru flag
@Zarquan คุณลบเครื่องหมายคำพูดและทำ `sudo update-grub` แล้วรีบูตหรือไม่ ที่เมนู GRUB คุณเลือก OS อื่นเพื่อบู๊ตหรือไม่ แล้วระบบจำตัวเลือกนั้นให้รีบูตครั้งถัดไปหรือไม่
Zarquan avatar
cn flag
ฉันทำ sudo update-grub หลังจากเปลี่ยนไฟล์ แต่นั่นเป็นจุดดีที่ฉันไม่ได้รีสตาร์ทเครื่องสองครั้ง ฉันเพิ่งลองและยังคงพยายามบู๊ตเป็น Windows
Zarquan avatar
cn flag
ฉันเพิ่มเนื้อหาของ /etc/default/grub ของฉันในกรณีที่คุณเห็นสิ่งผิดปกติ
heynnema avatar
ru flag
โดยปกติแล้วทั้งสองบรรทัดจะอยู่ใกล้ด้านบนของไฟล์ แต่จริงๆแล้วมันไม่สำคัญ คุณลองรีบูตเครื่องเพื่อดูว่าจำตัวเลือกระบบปฏิบัติการล่าสุดของคุณได้หรือไม่
Zarquan avatar
cn flag
ใช่. มันยังคงพยายามบูตฉันเข้าสู่ Windows
heynnema avatar
ru flag
ฉันว่ามันน่าจะเป็นปัญหากับ GRUB Customizer คุณต้องถอนการติดตั้งและลบความยุ่งเหยิงทั้งหมดที่เพิ่มลงใน /etc/grub.d และทำซ้ำ `sudo update-grub` เพื่อดูว่าใช้งานได้หรือไม่ ดังที่ได้กล่าวไว้ก่อนหน้านี้ GC อาจทำให้เกิดปัญหาได้
Zarquan avatar
cn flag
ไม่มีอะไรใน /etc/default/grub.d ยกเว้นไฟล์ที่มีทุกอย่างแสดงความคิดเห็น ฉันเพิ่มลงในคำถามของฉัน แก้ไข: โอ้ /etc/grub.d. ฉันจะดูที่
Zarquan avatar
cn flag
ฉันถอนการติดตั้ง grub-customizer และเปลี่ยนชื่อ /etc/grub.d เป็น /etc/grub.dOld ฉันรัน sudo upgate-grub ตอนนี้กำลังบอกฉันว่ามีข้อผิดพลาดทางไวยากรณ์ในไฟล์กำหนดค่า grub ที่สร้างขึ้น ฉันลองย้ายคำสั่งไปด้านบนสุด (ในกรณีที่เกิดความวิกลจริต) และลองใส่เครื่องหมายคำพูดและไม่มีเครื่องหมายอัญประกาศ ฉันแทนที่ grub.d เพื่อความปลอดภัยและเรียกใช้ grub-update
Zarquan avatar
cn flag
ตัวปรับแต่งด้วงจะสร้างความยุ่งเหยิงอะไร ฉันไม่รู้ว่าควรจะมีอะไรอยู่ที่นั่น
Zarquan avatar
cn flag
มันเพิ่งเกิดขึ้นกับฉันเมื่อถึงจุดหนึ่ง ฉันอาจเพิ่ม UUID สำหรับพื้นที่สว็อป เพื่อที่ฉันจะได้ไฮเบอร์เนตคอมพิวเตอร์ของฉัน ไฮเบอร์เนตทำงานได้อย่างถูกต้อง แต่บางทีฉันอาจทำอย่างอื่นผิดพลาดด้วยการทำเช่นนั้น ฉันไม่แน่ใจว่าจะต้องดูที่ใดเพื่อดูว่าอาจทำให้เกิดปัญหาได้หรือไม่
Zarquan avatar
cn flag
ฉันได้เพิ่มเนื้อหาของ /etc/grub.d ลงในคำถามของฉัน เผื่อว่าคุณสามารถชี้ให้เห็นถึงปัญหาที่อาจเกิดขึ้นได้
heynnema avatar
ru flag
@Zarquan ใช่อย่างที่คุณเห็น GC ทำสิ่งต่าง ๆ ยุ่งเหยิงจริง ๆ อย่างที่ฉันอ้างถึงก่อนหน้านี้ ดูอัปเดต #1 ในคำตอบของฉันสำหรับความช่วยเหลือที่เป็นไปได้
heynnema avatar
ru flag
@Zarquan การเพิ่ม UUID ไม่ควรทำให้เกิดปัญหา ตราบใดที่คุณเพิ่ม UUID ที่ถูกต้อง
heynnema avatar
ru flag
@Zarquan สถานะโปรด ...
Zarquan avatar
cn flag
ขอโทษ ฉันลืมเกี่ยวกับหัวข้อนี้ ฉันไม่เห็นการรีเซ็ตทั้งหมดจาก grub-customizer และฉันไม่ต้องการทำให้ bootloader ของฉันยุ่งกับการพยายามรีเซ็ตด้วยตนเอง ฉันแก้ปัญหาได้ด้วยการไปยุ่งกับ grub-customizer มันเป็นอย่างใดอย่างหนึ่ง (1) การเพิ่มคำสั่งบูต Ubuntu ใหม่ที่เหมือนกับคำสั่งแรกใน boot loader หรือ (2) อย่างอื่นที่ฉันลองซึ่งฉันจำไม่ได้ จากนั้นปิดการตั้งค่าแล้วเปิดใหม่ ฉันรู้ว่าฉันเคยลองปิดและเปิดการตั้งค่านี้มาก่อน ฉันจึงยังสับสนอยู่ แต่ตอนนี้ใช้งานได้แล้ว ขอขอบคุณสำหรับความช่วยเหลือของคุณ!
heynnema avatar
ru flag
@Zarquan ตรวจสอบไฟล์ ./backup/RESTORE_INSTRUCTIONS
Zarquan avatar
cn flag
ฉันเห็นคำแนะนำบางอย่างที่ฉันสามารถใช้ได้ แต่ฉันไม่เห็นเหตุผลที่ต้องทำตอนนี้เพราะดูเหมือนว่าทุกอย่างจะทำงานได้ ทฤษฎีของฉันคือการตั้งค่าบางอย่างติดอยู่ใน grub-customizer และบางสิ่งที่ฉันได้รับเพื่อตรวจสอบค่าที่สันนิษฐานว่าถูกตั้งค่าด้วยวิธีใดวิธีหนึ่ง
Zarquan avatar
cn flag
หากคุณเปลี่ยนคำตอบเพื่อพูดคุยเกี่ยวกับการรีเซ็ตด้วงโดยใช้ไฟล์ RESTORE_INSTRUCTIONS ฉันจะทำเครื่องหมายว่าเป็นคำตอบ เนื่องจากการรีเซ็ตด้วงของฉันอย่างง่ายดายจะช่วยแก้ปัญหาของฉันได้อย่างแน่นอน
heynnema avatar
ru flag
@Zarquan แก้ไขแล้ว ขอบคุณ!

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา