AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-508718

ahmadreza1383's questions

Martin Hope
ahmadreza1383
Asked: 2022-07-06 04:38:52 +0800 CST

在 mkisofs 中将 iso 设为“可引导(dos/MBR 扇区)”

  • 0

我已经提取了iso文件“archlinux-2022.06.01-x86_64.iso”。我已经在“airootfs.sfs”文件中进行了更改

现在我要再次创建一个“可引导(dos/MBR 扇区)”iso 映像,就像我提取的原始 iso 文件一样

sudo xorriso -as  mkisofs -d -l -r  -no-emul-boot 
-o archlinux.iso .
-append_partition 2 0xef ../compile-linux/efi_part.img -e  "--interval:appended_partition_2:all::" -no-emul-boot ../compile-linux/bios_boot.img
-G ../compile-linux/mbr_code.img 
-b syslinux/isolinux.bin 
-c syslinux/boot.cat

输出file archlinux.iso

archlinux.iso: ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'ISOIMAGE' (bootable)

输出命令xorriso -indev archlinux.iso -report-el-torito plain -report-system-area plain

xorriso 1.5.4 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE :     114 nodes read in 1 seconds
xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded
Drive current: -indev 'archlinux.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : El Torito , MBR cyl-align-off
Media summary: 1 session, 445804 data blocks,  871m data,  178g free
Volume id    : 'ISOIMAGE'
El Torito catalog  : 42  1
El Torito cat path : /syslinux/boot.cat
El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz         LBA
El Torito boot img :   1  BIOS  y   none  0x0000  0x00     76          43
El Torito img path :   1  /syslinux/isolinux.bin
System area options: 0x00000a00
System area summary: MBR cyl-align-off
ISO image size/512 : 1783216
Partition offset   : 0
MBR heads per cyl  : 64
MBR secs per head  : 32
MBR partition table:   N Status  Type        Start       Blocks
MBR partition      :   1   0x00  0x83            0      1783216
MBR partition      :   2   0x00  0xef      1783216         1600

以上输出是我自己制作的iso文件

我尝试在虚拟机“Efi 选项已禁用”中使用我的 iso 文件,但我收到这些错误。

在此处输入图像描述

我是初学者,对此了解不多

这就是为什么我试图找到从原始iso输出制作图像的正确方法,但我没有成功

xorriso 1.5.4 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : ISO image bears MBR with  -boot_image any partition_offset=16
xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE :     113 nodes read in 1 seconds
libisofs: NOTE : Found hidden El-Torito image for EFI.
libisofs: NOTE : EFI image start and size: 396800 * 2048 , 0 * 512
xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded
Drive current: -indev '../archlinux-2022.06.01-x86_64.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : El Torito , MBR isohybrid cyl-align-all GPT
Media summary: 1 session, 440998 data blocks,  861m data,  178g free
Volume id    : 'ARCH_202206'
El Torito catalog  : 118  1
El Torito cat path : /syslinux/boot.cat
El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz         LBA
El Torito boot img :   1  BIOS  y   none  0x0000  0x00      4         119
El Torito boot img :   2  UEFI  y   none  0x0000  0x00      0      396800
El Torito img path :   1  /syslinux/isolinux.bin
El Torito img opts :   1  boot-info-table isohybrid-suitable
El Torito img blks :   2  44032
System area options: 0x00000302
System area summary: MBR isohybrid cyl-align-all GPT
ISO image size/512 : 1763992
Partition offset   : 16
MBR heads per cyl  : 64
MBR secs per head  : 32
MBR partition table:   N Status  Type        Start       Blocks
MBR partition      :   1   0x80  0x00           64      1587136
MBR partition      :   2   0x00  0xef      1587200       176128
GPT                :   N  Info
GPT disk GUID      :      3230323230363041b130303533353232
GPT entry array    :      2  248  separated
GPT lba range      :      64  1763928  1763991
GPT partition name :   1  490053004f00480079006200720069006400
GPT partname local :   1  ISOHybrid
GPT partition GUID :   1  3230323230363041b131303533353232
GPT type GUID      :   1  a2a0d0ebe5b9334487c068b6b72699c7
GPT partition flags:   1  0x1000000000000001
GPT start and size :   1  64  1587136
GPT partition name :   2  490053004f004800790062007200690064003100
GPT partname local :   2  ISOHybrid1
GPT partition GUID :   2  3230323230363041b132303533353232
GPT type GUID      :   2  a2a0d0ebe5b9334487c068b6b72699c7
GPT partition flags:   2  0x1000000000000001
GPT start and size :   2  1587200  176128

我哪里做错了?我正在尝试创建我的 ISO 映像文件并实时使用它

谢谢您的帮助

arch-linux virtualbox
  • 2 个回答
  • 310 Views
Martin Hope
ahmadreza1383
Asked: 2022-05-04 03:52:25 +0800 CST

shell 脚本中的“*”和“[[]]”符号是什么意思?

  • -4

‍‍这是我的代码:

Number=12
ListOperation=('+'  '/'  '*'  '-')
if [[ " ${ListOperation[*]} " == *"/"* ]]; then
    let Result="$Number $operation $Number"
    echo $Result
fi

为什么在“if”中使用了两次“[]”?为什么在“/”字符串旁边使用“*”?

shell-script
  • 1 个回答
  • 107 Views
Martin Hope
ahmadreza1383
Asked: 2022-02-16 06:48:05 +0800 CST

opt/lampp/bin/httpd:加载共享库时出错:libcrypt.so.1:无法打开共享对象文件:没有这样的文件或目录

  • 6

我使用 Arch Linux (x86_64)

我今天使用以下命令更新了我的存储库

Sudo Packman -Syu

但是 xampp 程序不再运行

Stopping all servers...
Restarting all servers...
Starting MySQL Database...

Starting Apache Web Server...
Exit code: 8
Stdout:
apache config test fails, aborting
Stderr:

/opt/lampp/bin/httpd: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

Starting ProFTPD...
Exit code: 8
Stdout:
proftpd config test fails, aborting
Stderr:

/opt/lampp/sbin/proftpd: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

经过一番检查,我发现 libcrypt.so.1 文件存在

输出命令locate libcrypt.so.1

[ahmadreza@ahmadreza-sys ~]$ locate libcrypt.so.1
/usr/lib/libcrypt.so.1

文件的版本如下:

[root@ahmadreza-sys lib]# file libcrypto.so.1*
libcrypto.so.1.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=4c926b672d97886b123e03a008387aecf0786de4, stripped
[root@ahmadreza-sys lib]# 

输出命令sudo ldconfig -v | grep libcrypt

[ahmadreza@ahmadreza-sys ~]$ sudo ldconfig -v | grep libcrypt
ldconfig: Path `/usr/lib64' given more than once
(from <builtin>:0 and <builtin>:0)
ldconfig: Can't stat /usr/libx32: No such file or directory
    libcrypt.so.2 -> libcrypt.so.2.0.0
    libcrypto.so.1.1 -> libcrypto.so.1.1
    libcryptsetup.so.12 -> libcryptsetup.so.12.7.0
[ahmadreza@ahmadreza-sys ~]$ 

出局file /opt/lampp/bin/httpd

[ahmadreza@ahmadreza-sys ~]$ file /opt/lampp/bin/httpd 
/opt/lampp/bin/httpd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=00effd3a02918135bf3106612c2b59866e4f92fe, stripped
[ahmadreza@ahmadreza-sys ~]$ 

我该如何解决?

arch-linux libraries
  • 3 个回答
  • 10811 Views
Martin Hope
ahmadreza1383
Asked: 2022-01-31 01:41:16 +0800 CST

从公共 IP 连接到 ssh 的问题

  • 1

我有两个 Linux 系统

一个是客户端,另一个是服务器

我将两个系统放在一个网络中,并且能够通过本地 ip 连接到服务器

它的含义如下:

‍

ssh [email protected]

但是现在我正在尝试通过我请求的公共 ip 连接到服务器......我从以下站点获得了我的公共地址

https://api.ipify.org

我从上面的站点获得了我的公共地址并尝试通过 ssh 连接到它

‍‍

ssh ahmadreza@public_ip

但是连接没有建立,我犯了以下错误

ssh : connat to host <public_ip> port 22 : connection  timed out

我检查了我的端口转发

我还确保我的端口在 22

但问题依旧,无法通过公众号进入

networking ssh
  • 2 个回答
  • 446 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve