Ubuntu

怎样修复grub开机引导(grub rescue)

时光总嘲笑我的痴心妄想 提交于 2021-02-08 05:45:43
很多时候,特别是在linux调整分区后,开机重启时会出现 error : unknow filesystem grub rescue> 的字样,系统就是进不去。这表示你的grub2的配置文件坏了…… 由于分区调整或分区UUID改变造成grub2不能正常启动,从而进入修复模式了(grub rescue),也称救援模式。 在救援模式下只有很少的命令可以用:set , ls , insmod , root , prefix (1)set 查看环境变量,这里可以查看启动路径和分区。 (2)ls 查看设备 (3)insmod 加载模块 (4)root 指定用于启动系统的分区,在救援模式下设置grub启动分区 (5)prefix 设定grub启动路径 具体修复步骤如下: 1、查看分区: grub rescue> ls 回车 会出现如下字样: (hd0) (hd0,msdos9) (hd0,msdos8) (hd0,msdos7) (hd0,msdos6) (hd0,msdos5) (hd0,msdos2) (hd0,msdos1) 注:上面是我的分区设备,每个人可能不一样,但原理都是一样的。 2、寻找ubuntu所在分区: (就是寻找你的Linux系统是装在以上哪个分区里) grub rescue> ls (hd0,msdos1)/ 若出现 unknown filesystem字样

Ubuntu 开机出现 grub rescue 的模式下修复

我们两清 提交于 2021-02-08 05:25:11
由于在Windows下面对分区修改,导致grub所在分区由sda3变成了sda2了,这样一来找不到grub了,Ubuntu开机就出现了 grub rescue > 在此情况下,可以如下解决,并不用重新安装系统 第一步,找出你的Linux盘在那个分区以及grub目录在什么位置。 如果你还记得最好,忘了也无所谓,使用下面命令逐个试探即可: grub rescue>ls 回车后,ls命令会列出所有磁盘分区信息,如: (hd0,4),(hd0,7),(hd0,8),(hd0,9) 循环使用如下命令,直至显示该分区所包含文件内容而不是unknown filesystem以及其他一些不正常信息 grub rescue>ls (hd0,0)/boot/grub (网上有写ls (hd0,0)/grub的,可能根据不同linux发行版本不同吧,Ubuntu 10.04是grub是放在/boot下面的。或者可以ls其他文件也一样) 假设我们试到(hd0,8)时,成功显示了文件内容,则表示。 第二步: grub rescue>set root=(hd0,8) //括号里分区为上一步尝试成功的分区,即linux grub 所在分区 grub rescue>set prefix=(hd0,8)/boot/grub 第三步: grub rescue>insmod normal.mod 网上有些insmod

Curl error “no alternative certificate..”

守給你的承諾、 提交于 2021-02-08 04:43:42
问题 We have a problem in only one of our servers hosted at Amazon (the development server). The problem happens when doing a curl request to a specific domain, by running this: > curl https://api.plivo.com Results in: curl: (51) SSL: no alternative certificate subject name matches target host name 'api.plivo.com' I did some research and found out that it might be a problem with the server's certificate, however if I try this from any other server it works fine, same on my local machine. So I'm

Ubuntu Apache2 local virtual hosts url not found

别来无恙 提交于 2021-02-08 04:01:51
问题 I am setting up my laptop for single-user development of multiple sites using the LAMP stack on Ubuntu 16.10 with virtual hosts for the different sites, and name-based virtual hosts. I have tried various combinations of config settings, but I cannot load a site from the Browser, I get "the requested URL was not found on this server." Here are relevant code snippets from relevant config files: Ports.conf: Listen 8000 apache2.conf: NameVirtualHost *:8000 ServerName localhost ... .../sites

Ubuntu Apache2 local virtual hosts url not found

给你一囗甜甜゛ 提交于 2021-02-08 04:01:16
问题 I am setting up my laptop for single-user development of multiple sites using the LAMP stack on Ubuntu 16.10 with virtual hosts for the different sites, and name-based virtual hosts. I have tried various combinations of config settings, but I cannot load a site from the Browser, I get "the requested URL was not found on this server." Here are relevant code snippets from relevant config files: Ports.conf: Listen 8000 apache2.conf: NameVirtualHost *:8000 ServerName localhost ... .../sites

Ubuntu Apache2 local virtual hosts url not found

隐身守侯 提交于 2021-02-08 04:01:09
问题 I am setting up my laptop for single-user development of multiple sites using the LAMP stack on Ubuntu 16.10 with virtual hosts for the different sites, and name-based virtual hosts. I have tried various combinations of config settings, but I cannot load a site from the Browser, I get "the requested URL was not found on this server." Here are relevant code snippets from relevant config files: Ports.conf: Listen 8000 apache2.conf: NameVirtualHost *:8000 ServerName localhost ... .../sites

.NET Core 跨平台发布(dotnet publish)

淺唱寂寞╮ 提交于 2021-02-07 21:39:23
.NET Core 跨平台发布(dotnet publish) ,无需安装.NET Core SDK,就可以运行。 前面讲解了.NET Core 的VSCode 开发。现在来讲讲发布(dotnet publish)。 .NET Core and ASP.NET Core 1.0 RC2 runtime and libraries 在五月中旬发布。 .NET Core and ASP.NET Core 1.0 RTM ( release ) runtime and libraries 六月底发布。 https://blogs.msdn.microsoft.com/dotnet/2016/05/06/net-core-rc2-improvements-schedule-and-roadmap/ 跨平台发布 简单新建一个项目。 mkdir dotnethello cd dotnethello dotnet new dotnet new 之后 修改project.json 如下: { " version " : " 1.0.0-* " , " buildOptions " : { " emitEntryPoint " : true }, " dependencies " : { " Microsoft.NETCore.App " : { " type " : " platform " ,

How to get FFProbe to run using dotnet core as an Azure Function in Docker?

送分小仙女□ 提交于 2021-02-07 21:14:05
问题 I am trying to get video details (length, height, width, and content type) from a video based on a URL. By using the nuget package https://www.nuget.org/packages/NReco.VideoInfo.LT I was able to create an Azure Function running locally pointing to my local install of FFProbe rather easily. However, the trick is now making it compatible with an Azure Function and, to the best of my knowledge, the easiest way to do that is by providing a Docker image that contains everything needed (this would

How to get FFProbe to run using dotnet core as an Azure Function in Docker?

萝らか妹 提交于 2021-02-07 21:02:12
问题 I am trying to get video details (length, height, width, and content type) from a video based on a URL. By using the nuget package https://www.nuget.org/packages/NReco.VideoInfo.LT I was able to create an Azure Function running locally pointing to my local install of FFProbe rather easily. However, the trick is now making it compatible with an Azure Function and, to the best of my knowledge, the easiest way to do that is by providing a Docker image that contains everything needed (this would

Shell Script File(.sh) does not run from c# core on linux

给你一囗甜甜゛ 提交于 2021-02-07 19:58:29
问题 I am trying to run ".sh" file from c# core application.But it doesn't seem to be running properly.Here is my scenario. I am working on .Net core project which is hosted on Linux environment.We are trying to create "PDF" in our project for which we have used "Apache FOP". Here i have created one "shell script" file "transform.sh" which internally calls "fop" with required parameters.Since developement is being done on windows machine we tested the same usinf "batch" file i.e. "transform.bat"