[ 已解决 ]win8.1 + suse 13.1 装好没有 win 的引导啊?

win8.1 + suse 13.1装好没有win的引导啊?怎么搞?没有update-grub之类的命令?
我用控制中心那个引导加载器,重新生成一个,没用啊,到最后一步安装的时候无缘无故就退出了,生成不了。

** 找到问题了,磁盘只读的重启一下就行了,用的grub2-mkconfig重新生成的文件就找到了win8.1,要找到win,前提是需要先挂载win所在分区,否则找不到。
有个疑问,之前用ubuntu,它有个命令,update-grub就能直接更新配置,感觉更方便,还有就是也不需要先挂载win分区也能找到win,还有没有suse的那个sbin目录,suse不仅有bin目录,还有sbin目录,而且sbin没有加到PATH,导致有些命令找不到。
难怪安装好就没有win的启动项,没有挂载suse找不到,这点我觉得要改进啊!
还有一个就是那个引导项管理的东西,没一点用处……添加不了,修改那里也是空白一片……
**

** 分区情况: **

磁盘 /dev/sda:320.1 GB, 320072933376 字节,625142448 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x00052938

   设备 Boot      Start         End      Blocks   Id  System
/dev/sda1              63    83891429    41945683+   7  HPFS/NTFS/exFAT
/dev/sda2   *    83891491   625141759   270625134+   f  W95 Ext'd (LBA)
/dev/sda5        83891493   293620004   104864256    7  HPFS/NTFS/exFAT
/dev/sda6       293620068   503348579   104864256    7  HPFS/NTFS/exFAT
/dev/sda7       503348643   532645517    14648437+  83  Linux
/dev/sda8       532645888   621236223    44295168   83  Linux
/dev/sda9       621238272   625141759     1951744   82  Linux swap / Solaris

下面是日志:

2013-12-04T20:45:01.052152+08:00 linux-xkzx /usr/sbin/cron[6005]: pam_unix(crond:session): session opened for user root by (uid=0)
2013-12-04T20:45:01.060567+08:00 linux-xkzx systemd[1]: Starting Session 4 of user root.
2013-12-04T20:45:01.061273+08:00 linux-xkzx systemd[1]: Started Session 4 of user root.
2013-12-04T20:45:01.090796+08:00 linux-xkzx /USR/SBIN/CRON[6005]: pam_unix(crond:session): session closed for user root
2013-12-04T20:45:23.579420+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda1
2013-12-04T20:45:24.113251+08:00 linux-xkzx 50mounted-tests: debug: mounted using GRUB ntfs filesystem driver
2013-12-04T20:45:24.115611+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/05efi
2013-12-04T20:45:24.123773+08:00 linux-xkzx 05efi: debug: Not on UEFI platform
2013-12-04T20:45:24.125367+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10freedos
2013-12-04T20:45:24.132594+08:00 linux-xkzx 10freedos: debug: /dev/sda1 is not a FAT partition: exiting
2013-12-04T20:45:24.134665+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10qnx
2013-12-04T20:45:24.144844+08:00 linux-xkzx 10qnx: debug: /dev/sda1 is not a QNX4 partition: exiting
2013-12-04T20:45:24.148225+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20macosx
2013-12-04T20:45:24.156260+08:00 linux-xkzx macosx-prober: debug: /dev/sda1 is not an HFS+ partition: exiting
2013-12-04T20:45:24.158292+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
2013-12-04T20:45:24.167149+08:00 linux-xkzx 20microsoft: debug: /dev/sda1 is a NTFS partition
2013-12-04T20:45:24.234547+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/30utility
2013-12-04T20:45:24.243079+08:00 linux-xkzx 30utility: debug: /dev/sda1 is not a FAT partition: exiting
2013-12-04T20:45:24.245147+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/40lsb
2013-12-04T20:45:24.252555+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/70hurd
2013-12-04T20:45:24.259991+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/80minix
2013-12-04T20:45:24.266717+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/83haiku
2013-12-04T20:45:24.275980+08:00 linux-xkzx 83haiku: debug: /dev/sda1 is not a BeFS partition: exiting
2013-12-04T20:45:24.278202+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
2013-12-04T20:45:24.297742+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90solaris
2013-12-04T20:45:24.305840+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/efi
2013-12-04T20:45:24.381305+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda2
2013-12-04T20:45:24.420709+08:00 linux-xkzx kernel:  2539.867117] EXT4-fs (sda2): unable to read superblock
2013-12-04T20:45:24.423698+08:00 linux-xkzx kernel:  2539.869531] EXT4-fs (sda2): unable to read superblock
2013-12-04T20:45:24.425706+08:00 linux-xkzx kernel:  2539.871960] EXT4-fs (sda2): unable to read superblock
2013-12-04T20:45:24.428715+08:00 linux-xkzx kernel:  2539.874365] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
2013-12-04T20:45:24.435712+08:00 linux-xkzx kernel:  2539.881906] REISERFS warning (device sda2): sh-2006 read_super_block: bread failed (dev sda2, block 8, size 1024)
2013-12-04T20:45:24.435760+08:00 linux-xkzx kernel:  2539.881914] REISERFS warning (device sda2): sh-2006 read_super_block: bread failed (dev sda2, block 64, size 1024)
2013-12-04T20:45:24.435763+08:00 linux-xkzx kernel:  2539.881917] REISERFS warning (device sda2): sh-2021 reiserfs_fill_super: can not find reiserfs on sda2
2013-12-04T20:45:24.438733+08:00 linux-xkzx kernel:  2539.884800] XFS (sda2): bad magic number
2013-12-04T20:45:24.438780+08:00 linux-xkzx kernel:  2539.884807] e01ed000: eb 63 90 00 00 00 00 00 00 00 00 00 00 00 00 00  .c..............
2013-12-04T20:45:24.438783+08:00 linux-xkzx kernel:  2539.884810] e01ed010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2013-12-04T20:45:24.438785+08:00 linux-xkzx kernel:  2539.884812] e01ed020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2013-12-04T20:45:24.438787+08:00 linux-xkzx kernel:  2539.884814] e01ed030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2013-12-04T20:45:24.438789+08:00 linux-xkzx kernel:  2539.884817] XFS (sda2): Internal error xfs_sb_read_verify at line 780 of file /home/abuild/rpmbuild/BUILD/kernel-desktop-3.11.6/linux-3.11/fs/xfs/xfs_mount.c.  Caller 0xf93a880c
2013-12-04T20:45:24.438791+08:00 linux-xkzx kernel:  2539.884817] 
2013-12-04T20:45:24.438794+08:00 linux-xkzx kernel:  2539.884822] CPU: 1 PID: 120 Comm: kworker/1:1H Not tainted 3.11.6-4-desktop #1
2013-12-04T20:45:24.438796+08:00 linux-xkzx kernel:  2539.884824] Hardware name: Acer Aspire 5552G/JE51_DN, BIOS V2.13 04/25/2011
2013-12-04T20:45:24.438798+08:00 linux-xkzx kernel:  2539.884854] Workqueue: xfslogd xfs_buf_iodone_work [xfs]
2013-12-04T20:45:24.438800+08:00 linux-xkzx kernel:  2539.884857]  00000001 c071feab ee3bc000 f93ab271 f9429b68 0000030c f93a880c f9421f79
2013-12-04T20:45:24.438802+08:00 linux-xkzx kernel:  2539.884863]  f93a880c e051dec0 00000016 ee3bc000 f71c7880 f93ffe68 e01ed000 f9429b68
2013-12-04T20:45:24.438804+08:00 linux-xkzx kernel:  2539.884868]  0000030c f93a880c f71c7ac0 e051df20 e051dec0 f64a55c0 f71c7880 f93a880c
2013-12-04T20:45:24.438806+08:00 linux-xkzx kernel:  2539.884873] Call Trace:
2013-12-04T20:45:24.438808+08:00 linux-xkzx kernel:  2539.884884]  <c0205139>] try_stack_unwind+0x179/0x190
2013-12-04T20:45:24.438810+08:00 linux-xkzx kernel:  2539.884892]  <c0203f17>] dump_trace+0x47/0xf0
2013-12-04T20:45:24.438812+08:00 linux-xkzx kernel:  2539.884897]  <c020518f>] show_trace_log_lvl+0x3f/0x50
2013-12-04T20:45:24.438815+08:00 linux-xkzx kernel:  2539.884901]  <c0204010>] show_stack_log_lvl+0x50/0xd0
2013-12-04T20:45:24.438817+08:00 linux-xkzx kernel:  2539.884905]  <c02051df>] show_stack+0x1f/0x40
2013-12-04T20:45:24.438819+08:00 linux-xkzx kernel:  2539.884910]  <c071feab>] dump_stack+0x48/0x76
2013-12-04T20:45:24.438821+08:00 linux-xkzx kernel:  2539.884934]  <f93ab271>] xfs_corruption_error+0x51/0x70 [xfs]
2013-12-04T20:45:24.438823+08:00 linux-xkzx kernel:  2539.885000]  <f93ffe68>] xfs_sb_read_verify+0xd8/0xf0 [xfs]
2013-12-04T20:45:24.438825+08:00 linux-xkzx kernel:  2539.885148]  <f93a880c>] xfs_buf_iodone_work+0x5c/0xd0 [xfs]
2013-12-04T20:45:24.438827+08:00 linux-xkzx kernel:  2539.885177]  <c025a39c>] process_one_work+0xfc/0x3b0
2013-12-04T20:45:24.438829+08:00 linux-xkzx kernel:  2539.885182]  <c025aec9>] worker_thread+0xf9/0x330
2013-12-04T20:45:24.438831+08:00 linux-xkzx kernel:  2539.885186]  <c02602a2>] kthread+0x92/0xa0
2013-12-04T20:45:24.438833+08:00 linux-xkzx kernel:  2539.885192]  <c072c167>] ret_from_kernel_thread+0x1b/0x28
2013-12-04T20:45:24.438835+08:00 linux-xkzx kernel:  2539.885196]  <c0260210>] kthread_create_on_node+0xd0/0xd0
2013-12-04T20:45:24.441763+08:00 linux-xkzx kernel:  2539.887976] DWARF2 unwinder stuck at kthread+0x0/0xa0
2013-12-04T20:45:24.441790+08:00 linux-xkzx kernel:  2539.887978] 
2013-12-04T20:45:24.441793+08:00 linux-xkzx kernel:  2539.887980] Leftover inexact backtrace:
2013-12-04T20:45:24.441795+08:00 linux-xkzx kernel:  2539.887980] 
2013-12-04T20:45:24.441798+08:00 linux-xkzx kernel:  2539.888015] XFS (sda2): Corruption detected. Unmount and run xfs_repair
2013-12-04T20:45:24.441800+08:00 linux-xkzx kernel:  2539.888042] XFS (sda2): SB validate failed with error 22.
2013-12-04T20:45:24.447711+08:00 linux-xkzx kernel:  2539.893844] FAT-fs (sda2): bogus number of reserved sectors
2013-12-04T20:45:24.447745+08:00 linux-xkzx kernel:  2539.893850] FAT-fs (sda2): Can't find a valid FAT filesystem
2013-12-04T20:45:24.450719+08:00 linux-xkzx kernel:  2539.896792] FAT-fs (sda2): bogus number of reserved sectors
2013-12-04T20:45:24.450759+08:00 linux-xkzx kernel:  2539.896798] FAT-fs (sda2): Can't find a valid FAT filesystem
2013-12-04T20:45:24.453702+08:00 linux-xkzx kernel:  2539.899433] MINIX-fs: unable to read superblock
2013-12-04T20:45:24.456880+08:00 linux-xkzx kernel:  2539.902428] attempt to access beyond end of device
2013-12-04T20:45:24.456911+08:00 linux-xkzx kernel:  2539.902434] sda2: rw=0, want=3, limit=2
2013-12-04T20:45:24.456915+08:00 linux-xkzx kernel:  2539.902439] hfsplus: unable to find HFS+ superblock
2013-12-04T20:45:24.459727+08:00 linux-xkzx kernel:  2539.905301] qnx4: wrong fsid in superblock.
2013-12-04T20:45:24.462748+08:00 linux-xkzx kernel:  2539.908520] You didn't specify the type of your ufs filesystem
2013-12-04T20:45:24.462779+08:00 linux-xkzx kernel:  2539.908520] 
2013-12-04T20:45:24.462783+08:00 linux-xkzx kernel:  2539.908520] mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
2013-12-04T20:45:24.462786+08:00 linux-xkzx kernel:  2539.908520] 
2013-12-04T20:45:24.462789+08:00 linux-xkzx kernel:  2539.908520] >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
2013-12-04T20:45:24.468744+08:00 linux-xkzx kernel:  2539.914308] hfs: can't find a HFS filesystem on dev sda2
2013-12-04T20:45:24.484195+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda5
2013-12-04T20:45:25.041748+08:00 linux-xkzx 50mounted-tests: debug: mounted using GRUB ntfs filesystem driver
2013-12-04T20:45:25.044025+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/05efi
2013-12-04T20:45:25.054366+08:00 linux-xkzx 05efi: debug: Not on UEFI platform
2013-12-04T20:45:25.056439+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10freedos
2013-12-04T20:45:25.066329+08:00 linux-xkzx 10freedos: debug: /dev/sda5 is not a FAT partition: exiting
2013-12-04T20:45:25.068395+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10qnx
2013-12-04T20:45:25.076720+08:00 linux-xkzx 10qnx: debug: /dev/sda5 is not a QNX4 partition: exiting
2013-12-04T20:45:25.078395+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20macosx
2013-12-04T20:45:25.083861+08:00 linux-xkzx macosx-prober: debug: /dev/sda5 is not an HFS+ partition: exiting
2013-12-04T20:45:25.085792+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
2013-12-04T20:45:25.095012+08:00 linux-xkzx 20microsoft: debug: /dev/sda5 is a NTFS partition
2013-12-04T20:45:25.448942+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/30utility
2013-12-04T20:45:25.456515+08:00 linux-xkzx 30utility: debug: /dev/sda5 is not a FAT partition: exiting
2013-12-04T20:45:25.458086+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/40lsb
2013-12-04T20:45:25.464277+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/70hurd
2013-12-04T20:45:25.472880+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/80minix
2013-12-04T20:45:25.482257+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/83haiku
2013-12-04T20:45:25.489832+08:00 linux-xkzx 83haiku: debug: /dev/sda5 is not a BeFS partition: exiting
2013-12-04T20:45:25.492448+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
2013-12-04T20:45:25.564125+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90solaris
2013-12-04T20:45:25.571143+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/efi
2013-12-04T20:45:25.776727+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda6
2013-12-04T20:45:26.301588+08:00 linux-xkzx 50mounted-tests: debug: mounted using GRUB ntfs filesystem driver
2013-12-04T20:45:26.303111+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/05efi
2013-12-04T20:45:26.311441+08:00 linux-xkzx 05efi: debug: Not on UEFI platform
2013-12-04T20:45:26.313108+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10freedos
2013-12-04T20:45:26.319953+08:00 linux-xkzx 10freedos: debug: /dev/sda6 is not a FAT partition: exiting
2013-12-04T20:45:26.321869+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10qnx
2013-12-04T20:45:26.330001+08:00 linux-xkzx 10qnx: debug: /dev/sda6 is not a QNX4 partition: exiting
2013-12-04T20:45:26.331944+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20macosx
2013-12-04T20:45:26.340030+08:00 linux-xkzx macosx-prober: debug: /dev/sda6 is not an HFS+ partition: exiting
2013-12-04T20:45:26.341298+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
2013-12-04T20:45:26.354826+08:00 linux-xkzx 20microsoft: debug: /dev/sda6 is a NTFS partition
2013-12-04T20:45:26.937462+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/30utility
2013-12-04T20:45:26.945328+08:00 linux-xkzx 30utility: debug: /dev/sda6 is not a FAT partition: exiting
2013-12-04T20:45:26.947370+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/40lsb
2013-12-04T20:45:26.954103+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/70hurd
2013-12-04T20:45:26.961056+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/80minix
2013-12-04T20:45:26.967040+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/83haiku
2013-12-04T20:45:26.976480+08:00 linux-xkzx 83haiku: debug: /dev/sda6 is not a BeFS partition: exiting
2013-12-04T20:45:26.978599+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
2013-12-04T20:45:27.069745+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90solaris
2013-12-04T20:45:27.076170+08:00 linux-xkzx 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/efi
2013-12-04T20:45:27.122071+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/sda8
2013-12-04T20:45:27.129062+08:00 linux-xkzx 05efi: debug: Not on UEFI platform
2013-12-04T20:45:27.131108+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sda8
2013-12-04T20:45:27.138441+08:00 linux-xkzx 10freedos: debug: /dev/sda8 is not a FAT partition: exiting
2013-12-04T20:45:27.140417+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sda8
2013-12-04T20:45:27.148513+08:00 linux-xkzx 10qnx: debug: /dev/sda8 is not a QNX4 partition: exiting
2013-12-04T20:45:27.150626+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sda8
2013-12-04T20:45:27.156031+08:00 linux-xkzx macosx-prober: debug: /dev/sda8 is not an HFS+ partition: exiting
2013-12-04T20:45:27.158021+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sda8
2013-12-04T20:45:27.165490+08:00 linux-xkzx 20microsoft: debug: /dev/sda8 is not a MS partition: exiting
2013-12-04T20:45:27.167634+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sda8
2013-12-04T20:45:27.175516+08:00 linux-xkzx 30utility: debug: /dev/sda8 is not a FAT partition: exiting
2013-12-04T20:45:27.177741+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sda8
2013-12-04T20:45:27.184081+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sda8
2013-12-04T20:45:27.189705+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sda8
2013-12-04T20:45:27.195850+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sda8
2013-12-04T20:45:27.203294+08:00 linux-xkzx 83haiku: debug: /dev/sda8 is not a BeFS partition: exiting
2013-12-04T20:45:27.205256+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sda8
2013-12-04T20:45:27.216274+08:00 linux-xkzx os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sda8
2013-12-04T20:45:27.228635+08:00 linux-xkzx os-prober: debug: /dev/sda9: is active swap

尝试命令行下重新生成一下配置文件

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

看看输出里面有没有 win 项,有一般就可以了。没有再看看有什么输出。

ps:日志太长了,我把你括起来了。建议长的日志用代码块括起来。

提示没有这个命令啊!?

用 grub 不要用 grub2 :ghost:

哦,那就

sudo /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg

你可以 whereis 一下 grub2-mkconfig 嘛~

没有 grub-mkconfig,arch gentoo 里面是 grub-mkconfig 因为貌似他们有了 grub2 以后就淘汰 grub 了(我猜的没有深入研究),但是在 openSUSE 里你即可以用 grub2 引导也可以用 grub 引导,以示区别吧,你会发现有 grub-install 和 grub2-install 这两个不同的命令(貌似 fedora 也是这样的)。楼主找不到是估计因为他的 /sbin 和 /usr/sbin 不再 PATH 里。

我删除 grub.cfg 怎么提示只读文件系统?

dyllen@linux-xkzx:~> sudo /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root's password:
sudo:unable to open /var/lib/sudo/dyllen/4:root:只读文件系统
sudo:/usr/sbin/grub-mkconfig:找不到命令
dyllen@linux-xkzx:~> sudo grub-mkconfig -o /boot/grub/grub.cfg
root's password:
sudo:unable to open /var/lib/sudo/dyllen/4:root:只读文件系统
sudo:grub-mkconfig:找不到命令
dyllen@linux-xkzx:~> sudo /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
root's password:
sudo:unable to open /var/lib/sudo/dyllen/4:root:只读文件系统
/usr/sbin/grub2-mkconfig: line 252: /boot/grub2/grub.cfg.new: Read-only file system
dyllen@linux-xkzx:~>

用 mount 看了下,我的 sda7 是 /,sda8 是 /home,都是 ro 只读的,这怎么回事?就这两个分区还有一个 swap,其他都是 win 的了。

还是找不到 win,只能找到自己!难道要先挂载?

  1. 先恭喜一下解决了问题。

1.update-grub 这个东西以前是有的,但是后来我不知道什么原因就没有了。我觉得 opensSUSE 的开发者是有操守的,这样做一定有道理。如果你想用可以通过 OBS 安装它(我见过一个老外的帖子就是讲如何安装它的,人家安装是用来解决一个问题的,我觉得 grub2-mkconfig 也可以达到目的)

  1. 当然是 /bin 和 /sbin 分开的啦~/bin 是普通用户用的命令,/sbin 是给 root 用的,所以 /sbin 不会出现在普通用户的 PATH 里也是理所当然的。最早是 Fedora 把 /bin 和 /sbin 合并,我知道的 Arch 紧接着这样干了。我不知道这样干到底好不好,openSUSE 会不会跟进,但是现在绝大多数发行版还是 /bin 和 /sbin 分开的,这也是标准的目录树。(一些觉得把 /sbin 加进普通用户的 PATH 里怪怪的老鸟喜欢在输入完命令后按 Tab 来补全绝对路径)

  2. 其它 win8 or win8.1 && openSUSE 双系统用户无此挂载的问题。您是怎么安装的?有没有遗漏什么操作?

  3. 我不知道你说的是不是 YaST 里的「引导项管理」,那个东西很好用,不仅可以管理 grub2 grub 还可以管理 LILO。我这里没有你说的不能修改的问题。其实,你只要打开它再点击一下确定。他就相当于执行了 grub2-mkconfig 了(其实干的事情更多,当然前提是你用 grub2 。。。。)

我是通过网络安装的,没有遗漏什么啊!都是一步一步下来的,确是需要先挂载 win 所在分区才能找到它,之前找不到就是因为那样。
还有,安装系统时安装的那个 grub2 被我卸载了,重新在包管理器里面又安装了一个,没有了之前的主题,怎么搞回来?之前的好看点。

哦,网络安装我没有试过,用网络安装的人很少。推荐 DVD 安装。

你看看有没有 /boot/grub2/themes/openSUSE 这个文件。有的话:
方法一:YaST -> 引导加载器 -> 加载器选项 -> 控制台主题
浏览选中 /boot/grub2/themes/openSUSE/theme.txt 就好了。

方法二:编辑 /etc/default/grub 文件将 GRUB_THEME 这一行改成
GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt