重启后这个错误的命令会损害我的 Ubuntu 操作系统吗?

重启后这个错误的命令会损害我的 Ubuntu 操作系统吗?

我正在尝试在 Pogoplug 上安装 archlinux....但是我收到一条错误消息,说由于我不是 root,因此权限被拒绝...所以我知道将“sudo”与 root 关联起来,但是直到后来我才想到 sudo 可能仅用作 ubuntu 操作系统的 root 命令...我检查了 Ubuntu 驱动器上的目录文件夹,果然我已经将脚本写入其中...

这是我输入的命令

/tmp$ sudo ./install_uboot_mtd0.sh

这是它吐出来的......

    !!!!!!  DANGER DANGER DANGER DANGER DANGER DANGER  !!!!!!

If you lose power to your device while running this script,
it could be left in an unusable state.

This script will replace the bootloader on /dev/mtd0.

This installer will only work on the following devices:
 Seagate Dockstar
 Seagate GoFlex Net
 Seagate GoFlex Home
 Pogoplug v1
 Pogoplug Pink (v2)
Do not run this installer on any other device.

By typing ok, you agree to assume all liabilities and risks 
associated with running this installer.

If you agree, type 'ok' and press ENTER to continue: ok
# checking for /usr/sbin/nandwrite...

# Installing /usr/sbin/nandwrite...
--2013-12-30 09:12:24--  http:/download.doozan.com/uboot/nandwrite.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/usr/sbin/nandwrite.md5'

    [ <=>                                   ] 32          --.-K/s   in 0s      

2013-12-30 09:12:24 (3.18 MB/s) - `/usr/sbin/nandwrite.md5' saved [32]

--2013-12-30 09:12:24--  http:/download.doozan.com/uboot/nandwrite
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11500 (11K) []
Saving to: `/usr/sbin/nandwrite'

100%[======================================>] 11,500      --.-K/s   in 0.03s   

2013-12-30 09:12:25 (359 KB/s) - `/usr/sbin/nandwrite' saved [11500/11500]

# Successfully installed /usr/sbin/nandwrite.
# checking for /usr/sbin/nanddump...

# Installing /usr/sbin/nanddump...
--2013-12-30 09:12:25--  http:/download.doozan.com/uboot/nanddump.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/usr/sbin/nanddump.md5'

    [ <=>                                   ] 32          --.-K/s   in 0s      

2013-12-30 09:12:26 (2.60 MB/s) - `/usr/sbin/nanddump.md5' saved [32]

--2013-12-30 09:12:26--  http:/download.doozan.com/uboot/nanddump
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21286 (21K) []
Saving to: `/usr/sbin/nanddump'

100%[======================================>] 21,286      --.-K/s   in 0.07s   

2013-12-30 09:12:26 (303 KB/s) - `/usr/sbin/nanddump' saved [21286/21286]

# Successfully installed /usr/sbin/nanddump.
# checking for /usr/sbin/flash_erase...

# Installing /usr/sbin/flash_erase...
--2013-12-30 09:12:26--  http:/download.doozan.com/uboot/flash_erase.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/usr/sbin/flash_erase.md5'

    [ <=>                                   ] 32          --.-K/s   in 0s      

2013-12-30 09:12:27 (3.33 MB/s) - `/usr/sbin/flash_erase.md5' saved [32]

--2013-12-30 09:12:27--  http:/download.doozan.com/uboot/flash_erase
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12819 (13K) []
Saving to: `/usr/sbin/flash_erase'

100%[======================================>] 12,819      --.-K/s   in 0.06s   

2013-12-30 09:12:27 (210 KB/s) - `/usr/sbin/flash_erase' saved [12819/12819]

# Successfully installed /usr/sbin/flash_erase.
# checking for /usr/sbin/fw_printenv...

# Installing /usr/sbin/fw_printenv...
--2013-12-30 09:12:27--  http://download.doozan.com/uboot/fw_printenv.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/usr/sbin/fw_printenv.md5'

    [ <=>                                   ] 32          --.-K/s   in 0s      

2013-12-30 09:12:28 (3.33 MB/s) - `/usr/sbin/fw_printenv.md5' saved [32]

--2013-12-30 09:12:28--  http:/download.doozan.com/uboot/fw_printenv
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 668497 (653K) []
Saving to: `/usr/sbin/fw_printenv'

100%[======================================>] 668,497     1.46M/s   in 0.4s    

2013-12-30 09:12:28 (1.46 MB/s) - `/usr/sbin/fw_printenv' saved [668497/668497]

# Successfully installed /usr/sbin/fw_printenv.
# checking for /etc/fw_env.config...

# Installing /etc/fw_env.config...
--2013-12-30 09:12:28--  http:/download.doozan.com/uboot/fw_env.config.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32 [text/html]
Saving to: `/etc/fw_env.config.md5'

100%[======================================>] 32          --.-K/s   in 0s      

2013-12-30 09:12:29 (5.19 MB/s) - `/etc/fw_env.config.md5' saved [32/32]

--2013-12-30 09:12:29--  http:/download.doozan.com/uboot/fw_env.config
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 329 []
Saving to: `/etc/fw_env.config'

100%[======================================>] 329         --.-K/s   in 0s      

2013-12-30 09:12:30 (45.2 MB/s) - `/etc/fw_env.config' saved [329/329]

# Successfully installed /etc/fw_env.config.

# Validating existing uBoot...
/usr/sbin/nanddump: 1: /usr/sbin/nanddump: Syntax error: word unexpected (expecting ")")
--2013-12-30 09:12:30--  http:/jeff.doozan.com/uboot/valid-uboot.md5
Resolving jeff.doozan.com (jeff.doozan.com)... 50.116.34.13
Connecting to jeff.doozan.com (jeff.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://projects.doozan.com/uboot/valid-uboot.md5 [following]
--2013-12-30 09:12:30--  http:/projects.doozan.com/uboot/valid-uboot.md5
Resolving projects.doozan.com (projects.doozan.com)... 50.116.34.13
Connecting to projects.doozan.com (projects.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1133 (1.1K) [text/plain]
Saving to: `/tmp/valid-uboot.md5'

100%[======================================>] 1,133       --.-K/s   in 0s      

2013-12-30 09:12:31 (143 MB/s) - `/tmp/valid-uboot.md5' saved [1133/1133]

md5sum: /tmp/uboot-mtd0-dump: No such file or directory

我是否对我的操作系统造成了不可修复的损坏?目前看来它还不错,但我应该担心重启吗?

答案1

我不明白你的担忧。你在一台 Ubuntu 机器上运行了这个脚本,它会下载一些文件并将它们安装到/dev/mtd0。如果你不是从闪存卡运行 Ubuntu,那么这/dev/mtd0是一个外部设备,为什么这个脚本会损害你的 Ubuntu 系统?你的 pogoplug 设备可能会损坏,但你的 Ubuntu 系统不太可能。

另外,从您提供的输出来看,该脚本甚至没有触及 pogoplug 设备,只是下载了一堆文件。

相关内容