【问题标题】:Raspberry pi boot partition cannot be accessed after change in boot folder更改引导文件夹后无法访问树莓派引导分区
【发布时间】:2015-04-08 14:11:41
【问题描述】:

我正在尝试启动我的树莓派,第一个灯是绿色的,第二个是红色的,其他的都没有亮。 它工作正常,直到我从 pi 上拔下 SD 卡并将其插入 Windows,然后我删除了 config.txt 文件。

我尝试再次将 SD 卡放入 pi 中,但它无法启动,除了我谈到的两个灯之外,其他情况都发生了。 我拿了另一个树莓派和另一个 SD 卡并安装了一个 raspbian 映像(就像第一个一样)。一切都在第二张 SD 卡和树莓派上运行,所以我将启动文件夹从这个复制到另一个的启动文件夹中。

现在他们两个都不工作了!!!!!!我想让第一个 pi 启动而不重新安装所有东西,因为配置了很多东西,你有什么想法吗?

也许在第一个 pi 上重新安装图像,但在此之前保存整个 pi 文件夹,然后在重新安装后将其复制回来就可以了?

感谢您的时间和专业知识。

【问题讨论】:

    标签: raspberry-pi config boot raspbian delete-file


    【解决方案1】:

    为什么要删除 config.txt 文件? 这很重要,把它放回去,然后再试一次。 这是我的 raspian config.txt 的副本

    # For more options and information see 
    # http://www.raspberrypi.org/documentation/configuration/config-txt.md
    # Some settings may impact device functionality. See link above for details
    
    # uncomment if you get no picture on HDMI for a default "safe" mode
    #hdmi_safe=1
    
    # uncomment this if your display has a black border of unused pixels visible
    # and your display can output without overscan
    #disable_overscan=1
    
    # uncomment the following to adjust overscan. Use positive numbers if console
    # goes off screen, and negative if there is too much border
    #overscan_left=16
    #overscan_right=16
    #overscan_top=16
    #overscan_bottom=16
    
    # uncomment to force a console size. By default it will be display's size minus
    # overscan.
    #framebuffer_width=1280
    #framebuffer_height=720
    
    # uncomment if hdmi display is not detected and composite is being output
    #hdmi_force_hotplug=1
    
    # uncomment to force a specific HDMI mode (this will force VGA)
    hdmi_group=2
    hdmi_mode=16
    #hdmi_mode=9
    
    # uncomment to force a HDMI mode rather than DVI. This can make audio work in
    # DMT (computer monitor) modes
    #hdmi_drive=2
    
    # uncomment to increase signal to HDMI, if you have interference, blanking, or
    # no display
    #config_hdmi_boost=4
    
    # uncomment for composite PAL
    #sdtv_mode=2
    
    sdtv_aspect=3
    
    #uncomment to overclock the arm. 700 MHz is the default.
    arm_freq=700
    
    core_freq=250
    sdram_freq=400
    over_voltage=0
    
    gpu_mem=64
    

    【讨论】:

    • 这可能不是很聪明,是的。问题是我不能把它放回去,至少不是完全一样的,在这样做之前我没有保存它。你有解决办法吗?
    • 来吧,我需要你的帮助。哦,不需要告诉我使用恢复来取消删除文件,因为我已经尝试过但它没有用。
    • 最好的办法是再次下载镜像,并将其挂载为回送设备并挂载并查看原始镜像上的config.txt。
    • 非常感谢 stu,正如我的回答,我找到了解决问题的方法,感谢您的宝贵时间。
    【解决方案2】:

    好吧,我找到了解决方案,在我看来,今天的 Windows 少了很多。感谢 chkdsk 我恢复了第一个 config.txt 文件,fsck 没有管理。因此,对于像我这样进行愚蠢删除的每个人,您都可以使用 chkdsk 支持 windows。

    要回到过去:打开命令提示符 (cmd),然后键入:chkdsk /F。

    如果你的文件系统当然是 F。

    【讨论】:

    • 这没有任何意义
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-07-29
    • 2019-03-10
    • 1970-01-01
    • 1970-01-01
    • 2022-01-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多