我把深度安装到deepin文件夹里,grub应该怎么修改?
Tofloor
poster avatar
窄口牛
deepin
2017-07-21 05:50
Author

menuentry "启动deepin os" --class deepin{
  insmod ext2
  set root='(hd0,3)'
  linux /deepin/boot/vmlinuz-4.9.0-deepin4-amd64 ro  splash quiet
  initrd /deepin/boot/initrd.img-4.9.0-deepin4-amd64
}
Reply Favorite View the author
All Replies
avatar
窄口牛
deepin
2017-07-21 06:18
#1
提示如下。
Reply View the author
avatar
窄口牛
deepin
2017-07-21 06:28
#2
本帖最后由 jonathan_hzs 于 2017-7-20 22:38 编辑

是不是需要修改init?


  1. for x in $(cat /proc/cmdline); do
  2.         case $x in
  3.         init=*)
  4.                 init=${x#init=}
  5.                 ;;
  6.         root=*)
  7.                 ROOT=${x#root=}
  8.                 if [ -z "${BOOT}" ] && [ "$ROOT" = "/dev/nfs" ]; then
  9.                         BOOT=nfs
  10.                 fi
  11.                 ;;
  12.         rootflags=*)
  13.                 ROOTFLAGS="-o ${x#rootflags=}"
  14.                 ;;
  15.         rootfstype=*)
  16.                 ROOTFSTYPE="${x#rootfstype=}"
  17.                 ;;
  18.         rootdelay=*)
  19.                 ROOTDELAY="${x#rootdelay=}"
  20.                 case ${ROOTDELAY} in
  21.                 *[![:digit:].]*)
  22.                         ROOTDELAY=
  23.                         ;;
  24.                 esac
  25.                 ;;
  26.         nfsroot=*)
  27.                 NFSROOT="${x#nfsroot=}"
  28.                 ;;
  29.         ip=*)
  30.                 IP="${x#ip=}"
  31.                 ;;
  32.         boot=*)
  33.                 BOOT=${x#boot=}
  34.                 ;;
  35.         ubi.mtd=*)
  36.                 UBIMTD=${x#ubi.mtd=}
  37.                 ;;
  38.         resume=*)
  39.                 RESUME="${x#resume=}"
  40.                 case $RESUME in
  41.                 UUID=*)
  42.                         RESUME="/dev/disk/by-uuid/${RESUME#UUID=}"
  43.                 esac
  44.                 ;;
  45.         resume_offset=*)
  46.                 resume_offset="${x#resume_offset=}"
  47.                 ;;
  48.         noresume)
  49.                 noresume=y
  50.                 ;;
  51.         drop_capabilities=*)
  52.                 drop_caps="-d ${x#drop_capabilities=}"
  53.                 ;;
  54.         panic=*)
  55.                 panic="${x#panic=}"
  56.                 case ${panic} in
  57.                 *[![:digit:].]*)
  58.                         panic=
  59.                         ;;
  60.                 esac
  61.                 ;;
  62.         ro)
  63.                 readonly=y
  64.                 ;;
  65.         rw)
  66.                 readonly=n
  67.                 ;;
  68.         debug)
  69.                 debug=y
  70.                 quiet=n
  71.                 if [ -n "${netconsole}" ]; then
  72.                         exec >/dev/kmsg 2>&1
  73.                 else
  74.                         exec >/run/initramfs/initramfs.debug 2>&1
  75.                 fi
  76.                 set -x
  77.                 ;;
  78.         debug=*)
  79.                 debug=y
  80.                 quiet=n
  81.                 set -x
  82.                 ;;
  83.         break=*)
  84.                 break=${x#break=}
  85.                 ;;
  86.         break)
  87.                 break=premount
  88.                 ;;
  89.         blacklist=*)
  90.                 blacklist=${x#blacklist=}
  91.                 ;;
  92.         netconsole=*)
  93.                 netconsole=${x#netconsole=}
  94.                 [ "x$debug" = "xy" ] && exec >/dev/kmsg 2>&1
  95.                 ;;
  96.         BOOTIF=*)
  97.                 BOOTIF=${x#BOOTIF=}
  98.                 ;;
  99.         fastboot|fsck.mode=skip)
  100.                 fastboot=y
  101.                 ;;
  102.         forcefsck|fsck.mode=force)
  103.                 forcefsck=y
  104.                 ;;
  105.         fsckfix|fsck.repair=yes)
  106.                 fsckfix=y
  107.                 ;;
  108.         fsck.repair=no)
  109.                 fsckfix=n
  110.                 ;;
  111.         esac
  112. done
Copy the Code


Reply View the author
avatar
billy123456
deepin
2017-07-21 06:34
#3
少启动参数root=
Reply View the author
avatar
窄口牛
deepin
2017-07-21 06:39
#4
那是定位磁盘位置的
我这里不需要那个了
现在是我把它移动了
导致系统内部的变量不正确
Reply View the author
avatar
窄口牛
deepin
2017-07-21 07:57
#5
加了个boot=deepin
黑屏了,没反应。
Reply View the author
avatar
窄口牛
deepin
2017-07-21 08:00
#6
不想伤害其它系统,和别的系统共处一个分区这么难,看来只能根目录了。
Reply View the author
avatar
窄口牛
deepin
2017-07-21 08:07
#7
根目录也启动不了。奇怪了。
Reply View the author
avatar
窄口牛
deepin
2017-07-21 16:36
#8
不支持复制,移动,会丢失东西而无法启动。
Reply View the author
avatar
窄口牛
deepin
2017-07-21 16:37
#9
深度启动必须uuid,可能init或者kernel里固定了uuid启动参数,无法绕过。
Reply View the author
avatar
窄口牛
deepin
2017-07-21 19:38
#10
希望有人提示怎么修改安装位置为文件夹里。
Reply View the author