Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
我把深度安装到deepin文件夹里,grub应该怎么修改?
Experiences and Insight
2819
views ·
10
replies ·
To
floor
Go
窄口牛
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
Like 0
Favorite
View the author
All Replies
窄口牛
deepin
2017-07-21 06:18
#1
提示如下。
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 06:28
#2
本帖最后由 jonathan_hzs 于 2017-7-20 22:38 编辑
是不是需要修改init?
for x in $(cat /proc/cmdline); do
case $x in
init=*)
init=${x#init=}
;;
root=*)
ROOT=${x#root=}
if [ -z "${BOOT}" ] && [ "$ROOT" = "/dev/nfs" ]; then
BOOT=nfs
fi
;;
rootflags=*)
ROOTFLAGS="-o ${x#rootflags=}"
;;
rootfstype=*)
ROOTFSTYPE="${x#rootfstype=}"
;;
rootdelay=*)
ROOTDELAY="${x#rootdelay=}"
case ${ROOTDELAY} in
*[![:digit:].]*)
ROOTDELAY=
;;
esac
;;
nfsroot=*)
NFSROOT="${x#nfsroot=}"
;;
ip=*)
IP="${x#ip=}"
;;
boot=*)
BOOT=${x#boot=}
;;
ubi.mtd=*)
UBIMTD=${x#ubi.mtd=}
;;
resume=*)
RESUME="${x#resume=}"
case $RESUME in
UUID=*)
RESUME="/dev/disk/by-uuid/${RESUME#UUID=}"
esac
;;
resume_offset=*)
resume_offset="${x#resume_offset=}"
;;
noresume)
noresume=y
;;
drop_capabilities=*)
drop_caps="-d ${x#drop_capabilities=}"
;;
panic=*)
panic="${x#panic=}"
case ${panic} in
*[![:digit:].]*)
panic=
;;
esac
;;
ro)
readonly=y
;;
rw)
readonly=n
;;
debug)
debug=y
quiet=n
if [ -n "${netconsole}" ]; then
exec >/dev/kmsg 2>&1
else
exec >/run/initramfs/initramfs.debug 2>&1
fi
set -x
;;
debug=*)
debug=y
quiet=n
set -x
;;
break=*)
break=${x#break=}
;;
break)
break=premount
;;
blacklist=*)
blacklist=${x#blacklist=}
;;
netconsole=*)
netconsole=${x#netconsole=}
[ "x$debug" = "xy" ] && exec >/dev/kmsg 2>&1
;;
BOOTIF=*)
BOOTIF=${x#BOOTIF=}
;;
fastboot|fsck.mode=skip)
fastboot=y
;;
forcefsck|fsck.mode=force)
forcefsck=y
;;
fsckfix|fsck.repair=yes)
fsckfix=y
;;
fsck.repair=no)
fsckfix=n
;;
esac
done
Copy the Code
Reply
Like 0
View the author
billy123456
deepin
2017-07-21 06:34
#3
少启动参数root=
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 06:39
#4
那是定位磁盘位置的
我这里不需要那个了
现在是我把它移动了
导致系统内部的变量不正确
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 07:57
#5
加了个boot=deepin
黑屏了,没反应。
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 08:00
#6
不想伤害其它系统,和别的系统共处一个分区这么难,看来只能根目录了。
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 08:07
#7
根目录也启动不了。奇怪了。
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 16:36
#8
不支持复制,移动,会丢失东西而无法启动。
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 16:37
#9
深度启动必须uuid,可能init或者kernel里固定了uuid启动参数,无法绕过。
Reply
Like 0
View the author
窄口牛
deepin
2017-07-21 19:38
#10
希望有人提示怎么修改安装位置为文件夹里。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
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
}