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

帖子

helpmejssz@ubuntu:~$ sudo apt-get install fsarchiver

[sudo] password for helpmejssz:

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package fsarchiver

helpmejssz@ubuntu:~$ sudo fsarchiver probe simple

sudo: fsarchiver: command not found

helpmejssz@ubuntu:~$ sudo ls -al /dev/disk/by-uuid/*

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/047a1b99-f153-4846-9547-7c7889b0116a -> ../../dm-8

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/2420D13720D110A2 -> ../../dm-4

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/4282fd98-2bf4-4f18-b8da-3f3ca2834c6b -> ../../dm-5

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/5864c400-6344-4614-82e4-527afebb1315 -> ../../dm-9

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/92508187508172B1 -> ../../dm-1

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/9c1959cb-3b48-4ce3-b032-f872b456b5e1 -> ../../dm-7

lrwxrwxrwx 1 root root 11 Apr 8 2017 /dev/disk/by-uuid/a334756d-f18e-484c-97fb-c9910bb177ba -> ../../dm-12

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/a9c856d8-ddad-405b-98e2-4758eb8f685d -> ../../dm-6

lrwxrwxrwx 1 root root 11 Apr 8 2017 /dev/disk/by-uuid/ae390b87-63a6-4f77-a6dd-004116b458d4 -> ../../dm-14

lrwxrwxrwx 1 root root 11 Apr 8 2017 /dev/disk/by-uuid/b376329c-ffc1-4972-b3b4-026548623850 -> ../../dm-11

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/B4FE-5315 -> ../../sde4

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-uuid/C29E-0CF4 -> ../../dm-2

lrwxrwxrwx 1 root root 11 Apr 8 2017 /dev/disk/by-uuid/fb4123c0-530d-4ea0-b097-709855316121 -> ../../dm-13

lrwxrwxrwx 1 root root 11 Apr 8 2017 /dev/disk/by-uuid/fd3f0bca-d0dd-4522-ba82-6b305846ffff -> ../../dm-10

helpmejssz@ubuntu:~$ sudo ls -al /dev/disk/by-partuuid/*

ls: cannot access '/dev/disk/by-partuuid/*': No such file or directory

helpmejssz@ubuntu:~$ ls /dev/disk

by-id by-label by-path by-uuid

helpmejssz@ubuntu:~$ sudo ls -al /dev/disk/by-label/*

lrwxrwxrwx 1 root root 10 Apr 8 2017 /dev/disk/by-label/Ubuntu\x2016.0 -> ../../sde4

helpmejssz@ubuntu:~$ sudo efibootmgr -v

BootCurrent: 0005

Timeout: 1 seconds

BootOrder: 0001,0004,0000,0005,0003

Boot0000* Windows Boot ManagerHD(2,GPT,f12c040c-85de-4034-8acb-db2c57fe661a,0xe1800,0x31800)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...6................

Boot0001* debianHD(2,GPT,f12c040c-85de-4034-8acb-db2c57fe661a,0xe1800,0x31800)/File(\EFI\debian\grubx64.efi)

Boot0003 硬盘 BBS(HD,,0x0)AMGOAMNO..........G.e.n.e.r.i.c. .U.l.t.r.a. .H.S.-.S.D./.M.M.C....................A.........................................D..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .U.l.t.r.a. .H.S.-.S.D./.M.M.C......AMBOAMNO........w.K.i.n.g.s.t.o.n.D.a.t.a.T.r.a.v.e.l.e.r. .G.2....................A.............................D..Gd-.;.A..MQ..L.K.i.n.g.s.t.o.n.D.a.t.a.T.r.a.v.e.l.e.r. .G.2......AMBOAMNO........{.I.n.t.e.l. .Z.Y.L.-.0.0.1....................A..................1.N........>.;.....................0..Gd-.;.A..MQ..L.I.n.t.e.l. .Z.Y.L.-.0.0.1......AMBO

Boot0004* Windows Boot ManagerVenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)

Boot0005* UEFI: KingstonDataTraveler G2PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,MBR,0x4294967274,0x100,0xee9650)AMBO

helpmejssz@ubuntu:~$ sudo parted -l print

Error: Invalid argument during seek for read on /dev/sda

Retry/Ignore/Cancel? Ignore

Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.

OK/Cancel? ok

Model: ATA ST2000DM001-9YN1 (scsi)

Disk /dev/sda: 2000GB

Sector size (logical/physical): 512B/4096B

Partition Table: unknown

Disk Flags:

Error: /dev/sdb: unrecognised disk label

Model: ATA ST2000DM001-1ER1 (scsi)

Disk /dev/sdb: 2000GB

Sector size (logical/physical): 512B/4096B

Partition Table: unknown

Disk Flags:

Error: /dev/sdc: unrecognised disk label

Model: ATA ST2000DM001-9YN1 (scsi)

Disk /dev/sdc: 2000GB

Sector size (logical/physical): 512B/4096B

Partition Table: unknown

Disk Flags:

Error: /dev/sdd: unrecognised disk label

Model: ATA ST2000DM001-9YN1 (scsi)

Disk /dev/sdd: 2000GB

Sector size (logical/physical): 512B/4096B

Partition Table: unknown

Disk Flags:

Model: Kingston DataTraveler G2 (scsi)

Disk /dev/sde: 8006MB

Sector size (logical/physical): 512B/512B

Partition Table: msdos

Disk Flags:

Number Start End Size Type File system Flags

4 131kB 8006MB 8006MB primary fat32 boot

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p1: 472MB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 472MB 472MB ntfs

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p2: 104MB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 104MB 104MB fat32

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p4: 7464GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 7464GB 7464GB ntfs

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p13: 12.9GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 12.9GB 12.9GB ext3

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p6: 2000MB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 2000MB 2000MB ext3

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p12: 25.0GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 25.0GB 25.0GB ext3

Error: /dev/mapper/isw_bicighheaa_ZYL-001p3: unrecognised disk label

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p3: 16.8MB

Sector size (logical/physical): 512B/4096B

Partition Table: unknown

Disk Flags:

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p5: 30.0GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 30.0GB 30.0GB ext3

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p9: 20.0GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 20.0GB 20.0GB ext3

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p7: 350GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 350GB 350GB ext3

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p11: 35.0GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 35.0GB 35.0GB ext4

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p10: 10.0GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 10.0GB 10.0GB ext3

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p8: 32.0GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 32.0GB 32.0GB ext3

Model: Linux device-mapper (linear) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001p14: 20.0GB

Sector size (logical/physical): 512B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 20.0GB 20.0GB linux-swap(v1)

Warning: Not all of the space available to /dev/mapper/isw_bicighheaa_ZYL-001 appears to be used, you can fix the GPT to use all of the space (an extra 1024 blocks) or continue with the current setting?

Fix/Ignore? Ignore

Model: Linux device-mapper (striped) (dm)

Disk /dev/mapper/isw_bicighheaa_ZYL-001: 8002GB

Sector size (logical/physical): 512B/4096B

Partition Table: gpt

Disk Flags:

Number Start End Size File system Name Flags

1 1049kB 473MB 472MB ntfs Basic data partition hidden, diag

2 473MB 577MB 104MB fat32 EFI system partition boot, esp

3 577MB 593MB 16.8MB Microsoft reserved partition msftres

4 593MB 7465GB 7464GB ntfs Basic data partition msftdata

5 7465GB 7495GB 30.0GB ext3

6 7495GB 7497GB 2000MB ext3

7 7497GB 7847GB 350GB ext3

8 7847GB 7879GB 32.0GB ext3

9 7879GB 7899GB 20.0GB ext3

10 7899GB 7909GB 10.0GB ext3

11 7909GB 7944GB 35.0GB ext4

12 7944GB 7969GB 25.0GB ext3

13 7969GB 7982GB 12.9GB ext3

14 7982GB 8002GB 20.0GB linux-swap(v1)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值