chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-grub

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#31

帖子 helpmejssz » 2017-04-10 16:08

1.网址:https://wiki.debian.org/DebianInstaller/SataRaid
2.chroot操作过程:sudo mount /dev/dm-5 /mnt; sudo mount /dev/dm-6/mnt/boot; sudo mount /dev/dm-2 /mnt/boot/efi;
sudo mount dev/dm-8 /mnt/usr; sudo mount /dev/dm-9 /mnt/var; sudo mount --bind /dev /mnt/dev; sudo mount --bind /proc
/mnt/proc; sudo mount --bind /sys /mnt/sys; sudo mount --bind /run /mnt/run; sudo chroot /mnt
3.update-grub,显示已经修改grub.cfg
4.grub-install:某些信息应该有用,发现一些什么无头无尾,用gpart connect error,但最后显示没有错误,操作完成
5.很大的疑问:gurb能找到分区并启动镜像文件,进入initramfs,能找到磁盘 control isw_bicighheaa_ZYL-001,但所有分区均未出现dm1到dm-14
initramfs可以进行ls /dev ls /dev/disk ls /dev/mapper 操作。
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#32

帖子 helpmejssz » 2017-04-10 16:46

1. 從 Ubuntu 試用桌面 下的指令 ?
1-1. 把下面指令 複製 貼進終端機 執行
1-1-1. df /mnt
1-1-2. df /mnt/boot/efi
1-1-3. sudo ls -al / | grep mnt
1-1-4. sudo ls -al /mnt | grep boot
1-1-5. sudo ls -al /mnt/boot | grep efi
1-1-6. sudo ls -al /mnt/boot/efi | grep EFI
1-1-7. sudo ls -al /mnt/boot/efi/EFI | grep debian
1-1-8. sudo ls -al /mnt/boot/efi/EFI/debian | grep grubx64.efi
把結果全部直接 選取/複製/貼上來

1.进ubuntu试用桌面创建账户:helpmejssz,设置密码,注销输入密码重进系统,打开命令行窗口:sudo passwd root 设置密码(其实是无用的,但这是我的习惯)。所有chroot update-grub grub-install update-initramfs 都是ctrl+alt+F1进入终端进行。
2.昨晚又进行了一次试验,为防分区表问题特意在win10C盘后建一个20mb的分区fat32,不挂载,显示dm-5.重新安装一次,第一个分区为boot 第二个为/ 以下不变:dm-6==boot dm-7==/...安装结果依旧不变。为更好的配合你先说明情况,有什么操作要求请尽管吩咐,我将一一遵照执行,由衷地感谢你的指导。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#33

帖子 poloshiao » 2017-04-10 17:34

1.进ubuntu试用桌面创建账户:helpmejssz,设置密码,注销输入密码重进系统,打开命令行窗口:sudo passwd root 设置密码(其实是无用的,但这是我的习惯)。所有chroot update-grub grub-install update-initramfs 都是ctrl+alt+F1进入终端进行。
0. Ubuntu 試用桌面
預設登入使用者是 ubuntu
預設密碼是 空白 (意思是 不需要輸入任何鍵 直接按下 Enter 即可)
預設 就可以使用 sudo
不需要 使用 root 登入 也不需要 另外建立 其它使用者
因為你要執行的任務是 chroot 使用 sudo 即可通通辦得到
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#34

帖子 poloshiao » 2017-04-10 17:43

1.我的主板有启动设备管理。比如我插入一个ubuntn 安装 U盘,会在启动设备管理器中显示两个设备:1-1:U盘设备名字。1-2:uefi u盘设备名字。我会选择 uefi u盘设备名字 启动。
1. https://wiki.debian.org/UEFI#Dual-booti ... lback_boot
Dual-booting systems currently installed using BIOS fallback boot
1-1. 猜測 這是一種 應急辦法 的向後相容安排

2. 以下 全部假設 你是在 UEFI 開機模式
3. 這一篇 是針對 Legacy Bios 而寫 UEFI 只有簡單一句
Note: In UEFI-installer you must press e key instead Tab ... (省略)
sudo chroot /mnt
3.update-grub,显示已经修改grub.cfg
4.grub-install:某些信息应该有用,发现一些什么无头无尾,用gpart connect error,但最后显示没有错误,操作完成
5.很大的疑问:gurb能找到分区并启动镜像文件,进入initramfs,能找到磁盘 control isw_bicighheaa_ZYL-001,但所有分区均未出现dm1到dm-14
initramfs可以进行ls /dev ls /dev/disk ls /dev/mapper 操作。
3-1. 意思是
update-grub
grub-install
適用於 Legacy Bios
但不一定適用於 UEFI

4. Debian UEFI 的 Grub 2
不是安裝 grub-pc 套件
而是 安裝 grub-efi-amd64 套件
4-1. 重新安裝 grub-efi-amd64 參閱
https://wiki.debian.org/UEFI#Force_grub ... media_path
Force grub-efi installation to the removable media path
使用 關鍵字 grub-efi-amd64 搜尋
4-2. 這一篇 適用於 Ubuntu UEFI 參閱一下
(在 Debian 是否適用 還沒親自操作過)
http://apexu.com/apexu/tw/modules/publi ... ?itemid=47
使用 ubuntuliveUSB 重新安裝 grub2 (UEFI enabled)

代码: 全选

9. sudo chroot /mnt
10. apt-get install --reinstall grub-efi-amd64 # 注意 不加 sudo
11. update-initramfs -u -k all # 注意 不加 sudo
12. exit
4-3. 這一篇 在 Debian UEFI chroot 後 重裝 grub-efi-amd64 請詳細參考
http://forums.debian.net/viewtopic.php?f=17&t=110755
Installing GRUB to a GPT boot partition

5. 建議
把 /boot 及 /boot/efi 單獨掛載在一個獨立的分割區 不要掛載在 RAID 上面
4-1. 原因
https://wiki.debian.org/UEFI#RAID_for_t ... _Partition
But for software RAID systems there is currently no support for putting the ESP on two separate disks in RAID. There might be a way to do something useful with fallback options, but this will need some investigation...
4-2. 對於 Software Raid / Fake Raid 來說 把 esp 放在 /dev/dm-2 不是一個好安排 常常是一個麻煩或失敗的製造者
因為 /dev/dm-2 需要載入 dmraid 或 mdadm 模組 才能辨識
開機存取 esp 分割區的 開機檔案時 根本還無法 載入 dmraid 或 mdadm 模組 所以產生了 先有雞 還是先有蛋 的循環問題
4-3. 特別是 RAID 0 把 檔案分散存放 在不同的 組成元素分割區
這個問題 更是無解
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#35

帖子 helpmejssz » 2017-04-10 19:27

1.及其糟糕的debain安装经历(近期装过debain 7.8、 8.2、 8.71、 9)让我很荣幸地遇到了你,poloshiao老师,请让我拜你为师。
2.回想那一次偶然的成功安装经历:那次共安装了两次,现在可以确认应该是7.8和7.9版本,7.9成功了。那时的安装并不像现在的安装那样要设置dmarid=true,很像现在的ubuntu安装。可惜现在找不到7.9版本。
3.为何我会来这里提出这个问题是我无法按照https://wiki.debian.org/DebianInstaller/SataRaid来完成安装,在debain中文论坛找不到回应。按wiki
步骤进行到8(这里wiki有误,在uefi下按tab键无法进入编辑菜单,只能按E键进入,像3.3提示的那样,所以所有的安装均是在uefi下进行)、9,不会出现10的结果,这是一步挂载目标根文件系统的操作,但选项单上并没有出现/dev/dm-5,进入命令行窗口ls /dev像极了现在initramfs ls /dev的结果,所有分区均看不见,但只要进入磁盘分区操作,所有的分区又出现了,选择分区意味着重新覆盖安装,安装完成依然如故,陷入死循环,于是想到用ubuntn试用桌面系统修复,在这里得吐槽一下debain live cd,什么都没有,并没有什么卵用。
4.目前的结果让我对debain安装盘起怀疑,有可能像我这样比较特殊的用户可能遇到如此的问题。从7.9的成功安装到安装方式改变即成功到失败的改变。现在我有充分的自信,进行一次ubuntu的安装将有99%几率成功,今天我就要来马上试验一下,老师可以关注一下结果,我会来汇报情况。
 
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#36

帖子 poloshiao » 2017-04-10 20:15

在这里得吐槽一下debain live cd,什么都没有
雖然
Ubuntu 基於 Debian 但是
Ubuntu 的 Live USB/DVD 跟 Debian 的 Live USB/DVD 大大不同
加進了許多 Ubuntu 自己研發的東西
进行一次ubuntu的安装将有99%几率成功
請下載 Server 版的 ISO 燒錄成 Ubuntu Live USB
參考下述網頁安裝
https://help.ubuntu.com/16.04/servergui ... n.html#lvm
比較輕鬆
安裝完成後 重開機 就可以成功開機的機會 比較大

如果你是下載 Desktop 版 來燒錄 Live USB/DVD
要成功啟動 LVM 遇到問題的機率 比較大
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#37

帖子 helpmejssz » 2017-04-12 23:52

1. poloshiao老师好。前天晚上信心满满安装ubuntu,结果就是那1%的几率失败啦。在安装界面“我是谁”卡住啦,“继续”按钮灰色,我以为是要下载安装什么东东才能继续,结果整个一夜都没用,百度一下我没有错误,设置的用户名和密码都填啦。
2.今天找到一个debain 7.8版本,那是第一次安装失败的那个版本,失败的原因是grub安装不上。但我现在有ubuntu live,可以chroot update-grub grub-install.开始安装到安装grub预计到失败果然出现。实行 chroot update-grub grub-install三招,grub成功安装,reboot终于进入久盼的系统,安装成功. 现在我就在新系统发帖。
3.这里是国内最好的linux社区,这里气氛很好,有像老师一样的人在哪能不好,debain ubuntu是同一个体系,我是一个菜鸟今后遇到的问题会很多,我会经常来这里问老师好,向老师请教。
4.我有强迫症,系统最好是最新的。现在用的版本很老,怎么升级更新目前一头雾水。7可以更新到8吗?
5.总结:debain 7 虽然安装中会遇到一些问题,但最后还是能成功的。目前8和9遇到的问题原因不明,无解。从mdadm 到dmraid的改变或许对我这种不大路的机器配置是有问题的。这可以向gun反映吗?我安装ubuntu遇到的问题有解决办法吗?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#38

帖子 poloshiao » 2017-04-13 0:16

实行 chroot update-grub grub-install三招,grub成功安装,reboot终于进入久盼的系统,安装成功
debain 7 虽然安装中会遇到一些问题,但最后还是能成功的。
1. 對於你求知的精神 敬佩

2. https://www.debian.org/releases/oldstab ... installer/
Potential issues with UEFI booting on amd64
As a workaround for now, try switching off UEFI and installing using "Legacy BIOS" or "Fallback mode" instead.
2-1. 猜測 你是在 Legacy Bios 或 Fallback 開機模式 安裝
2-2. 相同 Debian 8, Debian 9 你也可以試試 在 Legacy Bios 或 Fallback 開機模式 安裝 也許也會成功
2-3. 登入已成功安裝 Debian 桌面
把下面指令 複製 貼進終端機 執行
sudo ls -al /sys/firmware/efi
把結果全部直接 選取/複製/貼上來
2-3-1. 如果有 表示開機模式是 UEFI
2-3-2. 否則 應該是 Legacy Bios 或 Fallback

3. UEFI 還是 Legacy Bios (包含 Fallback) ?
如果是雙系統開機
3-1. 而 Windows 10 是 UEFI 開機模式
建議 Debian 也在 UEFI 開機模式
相容性較好
3-2. 如果 Windows 10 是在 Legacy Bios 或 Fallback 開機模式 安裝
建議 Debian 也在 Legacy Bios 或 Fallback 開機模式 安裝
麻煩事 比較少
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#39

帖子 helpmejssz » 2017-04-13 14:49

1.向老师问好!
2.附上sudo ls -al /sys/firmware/efi结果:
helpmejssz@debian-zyl:~$ sudo ls -al /sys/firmware/efi
[sudo] password for helpmejssz:
总用量 0
drwxr-xr-x 3 root root 0 4月 13 21:37 .
drwxr-xr-x 5 root root 0 4月 13 21:37 ..
-r-------- 1 root root 4096 4月 13 21:43 systab
drwxr-xr-x 105 root root 0 4月 13 21:37 vars
helpmejssz@debian-zyl:~$
3.老师是否了解debain 中国软件源哪个比较好?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#40

帖子 poloshiao » 2017-04-13 15:49

sudo ls -al /sys/firmware/efi
-r-------- 1 root root 4096 4月 13 21:43 systab
drwxr-xr-x 105 root root 0 4月 13 21:37 vars
1. 表示 你是在 UEFI enabled 開機模式 開機 ?
1-1. 使用
debian boot "Fallback mode" /sys/firmware/efi/vars
關鍵字 搜尋 還沒找到 合適文章
等找到 再確認這個問題
debain 中国软件源哪个比较好?
2. https://www.debian.org/mirror/list.zh-cn.html
Debian 全球镜像站
中国大陆 搜尋
2-1. https://www.debian.org/mirror/list.en.html
Debian worldwide mirror sites
使用 China 搜尋
2-2. 上述镜像站 並沒有好壞的數據可以評比

3. 這是 Ubuntu 的 Mirrors
https://launchpad.net/ubuntu/+archivemirrors
請用 China 搜尋
最右欄位 表示 該 Mirror 更新狀態
最右二欄位 表示 該 Mirror 網站頻寬
2-1. 你可以看看 有沒有 debian
2-2. 例如 Tsinghua University
https://launchpad.net/ubuntu/+mirror/mi ... cn-archive
1 Gbps Six hours behind
2-2-1. Ubuntu
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
2-2-2. Debian
https://mirrors.tuna.tsinghua.edu.cn/debian/
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#41

帖子 helpmejssz » 2017-04-13 16:56

1.非常感谢提供软件源的详细信息
2.一直未注意到时间不对,马上百度一下时间和时区的问题,修改/etc/adjtime,从UTC改为LOCAL。
3.验证 uefi 开机,附上过程结果:
helpmejssz@debian-zyl:~$ sudo ls -al /sys/efi
[sudo] password for helpmejssz:
ls: 无法访问/sys/efi: 没有那个文件或目录
helpmejssz@debian-zyl:~$ sudo ls -al /sys/fireware/efi
ls: 无法访问/sys/fireware/efi: 没有那个文件或目录
helpmejssz@debian-zyl:~$ ls
公共 模板 视频 图片 文档 下载 音乐 桌面
helpmejssz@debian-zyl:~$ cd /
helpmejssz@debian-zyl:/$ sudo ls -al /sys/fireware/efi
ls: 无法访问/sys/fireware/efi: 没有那个文件或目录
helpmejssz@debian-zyl:/$ sudo ls -l /sys
总用量 0
drwxr-xr-x 2 root root 0 4月 13 16:36 block
drwxr-xr-x 18 root root 0 4月 13 16:36 bus
drwxr-xr-x 41 root root 0 4月 13 16:36 class
drwxr-xr-x 4 root root 0 4月 13 16:36 dev
drwxr-xr-x 13 root root 0 4月 13 16:36 devices
drwxr-xr-x 5 root root 0 4月 13 16:36 firmware
drwxr-xr-x 4 root root 0 4月 13 16:36 fs
drwxr-xr-x 2 root root 0 4月 13 16:42 hypervisor
drwxr-xr-x 6 root root 0 4月 13 16:42 kernel
drwxr-xr-x 112 root root 0 4月 13 16:36 module
drwxr-xr-x 2 root root 0 4月 13 16:36 power
helpmejssz@debian-zyl:/$ sudo ls -al /sys/firmware/efi
总用量 0
drwxr-xr-x 3 root root 0 4月 13 16:36 .
drwxr-xr-x 5 root root 0 4月 13 16:36 ..
-r-------- 1 root root 4096 4月 13 16:43 systab
drwxr-xr-x 105 root root 0 4月 13 16:36 vars
helpmejssz@debian-zyl:/$
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#42

帖子 helpmejssz » 2017-04-13 17:25

目前桌面系统似乎不太正常,详细信息里显示图形是“备用”,可能显卡驱动未正确安装。鼠标指针会闪烁,鼠标右键失效。怎样检查设备情况(类似于win设备管理器),安装硬件驱动又要学习啦。
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#43

帖子 helpmejssz » 2017-04-13 17:52

把下面指令 複製 貼進終端機 執行
1-1. uname -r
1-2. sudo lspci -knn
1-3. sudo lshw -numeric -class video


elpmejssz@debian-zyl:~$ uname -r
3.2.0-4-amd64
helpmejssz@debian-zyl:~$ sudo lspci -knn
[sudo] password for helpmejssz:
00:00.0 Host bridge [0600]: Intel Corporation Xeon E5/Core i7 DMI2 [8086:3c00] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 1a [8086:3c02] (rev 07)
Kernel driver in use: pcieport
00:02.0 PCI bridge [0604]: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 2a [8086:3c04] (rev 07)
Kernel driver in use: pcieport
00:03.0 PCI bridge [0604]: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 3a in PCI Express Mode [8086:3c08] (rev 07)
Kernel driver in use: pcieport
00:05.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Address Map, VTd_Misc, System Management [8086:3c28] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
00:05.2 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Control Status and Global Errors [8086:3c2a] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
00:05.4 PIC [0800]: Intel Corporation Xeon E5/Core i7 I/O APIC [8086:3c2c] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
00:11.0 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Virtual Root Port [8086:1d3e] (rev 05)
Kernel driver in use: pcieport
00:16.0 Communication controller [0780]: Intel Corporation C600/X79 series chipset MEI Controller #1 [8086:1d3a] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
00:19.0 Ethernet controller [0200]: Intel Corporation 82579V Gigabit Network Connection [8086:1503] (rev 05)
Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard [1043:849c]
Kernel driver in use: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 [8086:1d2d] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation C600/X79 series chipset High Definition Audio Controller [8086:1d20] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:84f8]
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Root Port 1 [8086:1d10] (rev b5)
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Root Port 2 [8086:1d12] (rev b5)
Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Root Port 3 [8086:1d14] (rev b5)
Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Root Port 4 [8086:1d16] (rev b5)
Kernel driver in use: pcieport
00:1c.4 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Root Port 5 [8086:1d18] (rev b5)
Kernel driver in use: pcieport
00:1c.5 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Root Port 6 [8086:1d1a] (rev b5)
Kernel driver in use: pcieport
00:1c.7 PCI bridge [0604]: Intel Corporation C600/X79 series chipset PCI Express Root Port 8 [8086:1d1e] (rev b5)
Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 [8086:1d26] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a5)
00:1f.0 ISA bridge [0601]: Intel Corporation C600/X79 series chipset LPC Controller [8086:1d41] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
00:1f.2 RAID bus controller [0104]: Intel Corporation 82801 SATA Controller [RAID mode] [8086:2822] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation C600/X79 series chipset SMBus Host Controller [8086:1d22] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
Kernel driver in use: i801_smbus
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Tahiti XT [Radeon HD 7970] [1002:6798]
Subsystem: ASUSTeK Computer Inc. Device [1043:041c]
01:00.1 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI Tahiti XT HDMI Audio [Radeon HD 7970 Series] [1002:aaa0]
Subsystem: ASUSTeK Computer Inc. Device [1043:aaa0]
06:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller [1b21:1042]
Subsystem: ASUSTeK Computer Inc. Device [1043:8488]
Kernel driver in use: xhci_hcd
07:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller [1b21:1042]
Subsystem: ASUSTeK Computer Inc. Device [1043:8488]
Kernel driver in use: xhci_hcd
08:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller [1b21:1042]
Subsystem: ASUSTeK Computer Inc. Device [1043:8488]
Kernel driver in use: xhci_hcd
09:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller [1b21:1042]
Subsystem: ASUSTeK Computer Inc. Device [1043:8488]
Kernel driver in use: xhci_hcd
0a:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:84b7]
Kernel driver in use: ahci
0b:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:84b7]
Kernel driver in use: ahci
ff:08.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 QPI Link 0 [8086:3c80] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:08.3 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 [8086:3c83] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:08.4 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 [8086:3c84] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:09.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 QPI Link 1 [8086:3c90] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:09.3 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 [8086:3c93] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:09.4 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 [8086:3c94] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0a.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Power Control Unit 0 [8086:3cc0] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0a.1 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Power Control Unit 1 [8086:3cc1] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0a.2 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Power Control Unit 2 [8086:3cc2] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0a.3 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Power Control Unit 3 [8086:3cd0] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0b.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Interrupt Control Registers [8086:3ce0] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0b.3 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Semaphore and Scratchpad Configuration Registers [8086:3ce3] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0c.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Unicast Register 0 [8086:3ce8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0c.1 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Unicast Register 0 [8086:3ce8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0c.2 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Unicast Register 0 [8086:3ce8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0c.6 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 0 [8086:3cf4] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0c.7 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 System Address Decoder [8086:3cf6] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0d.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Unicast Register 0 [8086:3ce8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0d.1 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Unicast Register 0 [8086:3ce8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0d.2 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Unicast Register 0 [8086:3ce8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0d.6 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 1 [8086:3cf5] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0e.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Processor Home Agent [8086:3ca0] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0e.1 Performance counters [1101]: Intel Corporation Xeon E5/Core i7 Processor Home Agent Performance Monitoring [8086:3c46] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0f.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Registers [8086:3ca8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0f.1 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller RAS Registers [8086:3c71] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0f.2 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 0 [8086:3caa] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0f.3 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 1 [8086:3cab] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0f.4 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 2 [8086:3cac] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0f.5 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 3 [8086:3cad] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:0f.6 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 4 [8086:3cae] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 0 [8086:3cb0] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.1 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 1 [8086:3cb1] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.2 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 0 [8086:3cb2] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.3 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 1 [8086:3cb3] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.4 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 2 [8086:3cb4] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.5 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 3 [8086:3cb5] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.6 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 2 [8086:3cb6] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:10.7 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 3 [8086:3cb7] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:11.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 DDRIO [8086:3cb8] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:13.0 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 R2PCIe [8086:3ce4] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:13.1 Performance counters [1101]: Intel Corporation Xeon E5/Core i7 Ring to PCI Express Performance Monitor [8086:3c43] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:13.4 Performance counters [1101]: Intel Corporation Xeon E5/Core i7 QuickPath Interconnect Agent Ring Registers [8086:3ce6] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:13.5 Performance counters [1101]: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 0 Performance Monitor [8086:3c44] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
ff:13.6 System peripheral [0880]: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 1 Performance Monitor [8086:3c45] (rev 07)
Subsystem: ASUSTeK Computer Inc. Device [1043:84ef]
helpmejssz@debian-zyl:~$ sudo lshw -numeric -class video
sudo:lshw:找不到命令
helpmejssz@debian-zyl:~$ sudo lshw -numeric -class video
sudo:lshw:找不到命令
helpmejssz@debian-zyl:~$
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#44

帖子 poloshiao » 2017-04-13 18:24

sudo lshw -numeric -class video
sudo:lshw:找不到命令
https://www.howtoinstall.co/en/debian/wheezy/lshw
How to install lshw on Debian 7 (Wheezy)

https://www.howtoinstall.co/en/debian/jessie/lshw
How to install lshw on Debian 8 (Jessie)
helpmejssz
帖子: 67
注册时间: 2017-04-07 2:45
系统: win10

Re: chroot 到其他盘上的linux 系统(debain)能否update-grub 和 install-gru

#45

帖子 helpmejssz » 2017-04-14 12:09

1.问老师好!
2.昨晚经百度修改debain 软件源为163.执行sudo apt-get update sudo apt-get upgrade.有大量更新(有大量的debain 8.71的软件)
3.在更新中注意到有mdadm转换到dmraid(debain 8 是用dmraid管理raid),reboot fail,在grub菜单执行recover后重启成功.
4.看来dmraid管理我的fake raid有一定问题
5.最后手贱执行gnome更新失败重启黑屏,能进终端,无法进桌面,不会修复看来要重装系统了。
回复