logo NodeSeekbeta

史上最强,支持 Debian 12 raid 0 Ubuntu 24.04(测试中);512MB 内存安装 AlmaLinux/RockyLinux;CentOS 9 Fedora 39 AlpineLinux Kali Linux Windows 重装程序功能更新、bug反馈贴(长期更新)

  • @zhoushao #280 Linode需要重置grub,具体看这个指南:https://hostloc.com/forum.php?mod=viewthread&tid=1166099

  • 想问一下,VPS磁盘有
    root@node:~# lsblk -f
    NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
    sda iso9660 Joliet Extension cidata 2023-07-13-09-35-07-00
    sr0
    vda
    ├─vda1
    ├─vda2 vfat FAT32 0BBB-E1CA 119.9M 0% /boot/efi
    └─vda3 xfs 0c93f6bc-ef9c-468d-be02-84b4a70d3678 44.4G 11% /
    如何能指定DDwindows到VDA上?或者DD debain12 也需要DD到VDA上,要不然,都是失败

  • MARK

  • @lastfree #282 可以考虑增加一个指定安装到某个硬盘的功能

  • Alma also seems working! 🤩 Starting from the previous install of CentOS 9 Stream, and using bash InstallNET.sh -alma 9 -raid "0":

    [root@uranium ~]# date -u
    Sat Jul 15 04:45:23 PM UTC 2023
    [root@uranium ~]# cat /etc/al
    aliases            almalinux-release  alternatives/      
    [root@uranium ~]# cat /etc/almalinux-release 
    AlmaLinux release 9.2 (Turquoise Kodkod)
    [root@uranium ~]# uname -r
    5.14.0-284.18.1.el9_2.x86_64
    [root@uranium ~]# date -u
    Sat Jul 15 04:45:58 PM UTC 2023
    [root@uranium ~]# cat /proc/mdstat
    Personalities : [raid1] [raid0] 
    md126 : active raid0 sdb3[1] sda3[0]
          935335936 blocks super 1.2 512k chunks
          
    md127 : active raid1 sda2[0] sdb2[1]
          1046528 blocks super 1.2 [2/2] [UU]
          bitmap: 0/1 pages [0KB], 65536KB chunk
    
    unused devices: <none>
    [root@uranium ~]# cat /etc/fstab
    
    #
    # /etc/fstab
    # Created by anaconda on Sat Jul 15 16:36:15 2023
    #
    # [ . . . ]
    #
    UUID=0fb9c088-321d-4983-b1ef-abc82454771b /                       xfs     defaults        0 0
    UUID=1164ef4c-ea6e-4ada-a0b3-36555fd3e3a3 /boot                   xfs     defaults        0 0
    [root@uranium ~]# 
    
  • Okay, Rocky is here! 🤩 Starting from Alma. Running bash InstallNET.sh -rocky 9 -raid "0":

    [root@uranium ~]# date -u
    Sat Jul 15 05:26:26 PM UTC 2023
    [root@uranium ~]# cat /etc/rocky-release
    Rocky Linux release 9.2 (Blue Onyx)
    [root@uranium ~]# uname -r
    5.14.0-284.18.1.el9_2.x86_64
    [root@uranium ~]# cat /proc/mdstat
    Personalities : [raid0] [raid1] 
    md126 : active raid1 sda2[1] sdb2[0]
          1046528 blocks super 1.2 [2/2] [UU]
          bitmap: 0/1 pages [0KB], 65536KB chunk
    
    md127 : active raid0 sda3[1] sdb3[0]
          935335936 blocks super 1.2 512k chunks
          
    unused devices: <none>
    [root@uranium ~]# 
    
  • Starting from above Rocky, https://www.nodeseek.com/post-9383-29#286

    [root@uranium ~]# # Can we move to Fedora?
    [root@uranium ~]# date -u
    Sat Jul 15 05:56:21 PM UTC 2023
    [root@uranium ~]# which wget
    /usr/bin/wget
    [root@uranium ~]# wget -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
    [root@uranium ~]# ls -l InstallNET.sh 
    -rwxr-xr-x 1 root root 201556 Jul 15 11:59 InstallNET.sh
    [root@uranium ~]# bash InstallNET.sh -fedora 38 -raid "0"
    
      [ . . . ]
    
    
    # Check Dependence
    
    [ok]            awk
    [ok]            basename
    [ok]            cat
    [ok]            cpio
    [ok]            curl
    [ok]            cut
    [ok]            dig
    [ok]            dirname
    [ok]            file
    [ok]            find
    [ok]            grep
    [ok]            gzip
    [ok]            iconv
    [ok]            ip
    [ok]            lsblk
    [ok]            openssl
    [ok]            sed
    [ok]            wget
    [ok]            xz
    
    # Network Details
    
    [Adapter Name]  enp0s31f6
    [Network File]  /etc/NetworkManager/system-connections/enp0s31f6.nmconnection
    [Server Stack]  IPv4Stack
    
    [IPv4  Method]  isDHCP
    [IPv4 Address]  [redacted]
    [IPv4  Subnet]  255.255.255.192
    [IPv4 Gateway]  [redacted]
    [IPv4     DNS]  1.0.0.1,8.8.4.4
    
    [IPv6  Method]  N/A
    [IPv6 Address]  N/A
    [IPv6  Subnet]  N/A
    [IPv6 Gateway]  N/A
    [IPv6     DNS]  N/A
    
    # User Timezone
    
    America/Mexico_City
    
    # SSH or RDP Port, Username and Password
    
    22
    root
    LeitboGi0ro
    
    # Installing Disks
    
    /dev/sda /dev/sdb
    
    # Motherboard Firmware
    
    BIOS
    
    # Installation Starting
    
    [Fedora] [38] [x86_64] Downloading...
    [Mirror] http://mirrors.rit.edu/fedora/fedora/linux/releases/38/Server/x86_64/os/images/pxeboot/initrd.img
             http://mirrors.rit.edu/fedora/fedora/linux/releases/38/Server/x86_64/os/images/pxeboot/vmlinuz
    368172 blocks
    
    [Finish] Input 'reboot' to continue the subsequential installation.
    [root@uranium ~]# date -u; reboot
    Sat Jul 15 06:04:09 PM UTC 2023
    [root@uranium ~]# Connection to [redacted] closed by remote host.
    Connection to [redacted] closed.
    

    Wait 10 minutes. . . . Fedora is here! 🤩

    chronos@penguin:~/new/hetzner/e3/installnet-20230715$ ssh root@redacted | tee -a installnet-20230715-alma # Alma, Rocky, Fedora, Rawhide all in same transcript file.
    The authenticity of host 'redacted (redacted)' can't be established.
    ECDSA key fingerprint is SHA256:OP+Ni7Qw+KbUjJ1Z2Lsu5eiqA1xvdkf6MU9INoem0QI.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    Warning: Permanently added 'redacted' (ECDSA) to the list of known hosts.
    root@redacted's password: 
    [root@uranium ~]# date -u
    Sat Jul 15 06:15:14 PM UTC 2023
    [root@uranium ~]# cat /etc/fedora-release 
    Fedora release 38 (Thirty Eight)
    [root@uranium ~]# uname -r
    6.3.12-200.fc38.x86_64
    [root@uranium ~]# cat /proc/mdstat
    Personalities : [raid0] [raid1] 
    md126 : active raid1 sdb2[1] sda2[0]
          1046528 blocks super 1.2 [2/2] [UU]
          bitmap: 0/1 pages [0KB], 65536KB chunk
    
    md127 : active raid0 sdb3[1] sda3[0]
          935335936 blocks super 1.2 512k chunks
          
    unused devices: <none>
    [root@uranium ~]# cat /etc/fstab
    
    #
    # /etc/fstab
    # Created by anaconda on Sat Jul 15 18:06:46 2023
    #
      [ . . . ]
    #
    UUID=6a3f7fbf-71d9-4291-83a8-2b29bb1d749e /                       xfs     defaults        0 0
    UUID=457228ec-e16e-4fbe-a9ce-6260c68e0966 /boot                   xfs     defaults        0 0
    [root@uranium ~]# 
    

    Let's try upgrading to Rawhide. If the Rawhide upgrade works, that shows the script's install of dnf is good.

    [root@uranium ~]# dnf remove fail2ban # At this time, fail2ban breaks the upgrade. Not the fault of the script.
      [ . . . ]
    [root@uranium ~]# dnf upgrade --refresh
      [ . . . ]
    [root@uranium ~]# dnf system-upgrade download --releasever=rawhide
      [ . . . ]
    [root@uranium ~]# date -u; dnf system-upgrade reboot
    Sat Jul 15 06:27:34 PM UTC 2023
    Connection to [redacted] closed by remote host.
    Connection to [redacted] closed.
    chronos@penguin:~/new/hetzner/e3/installnet-20230715$ 
      [ . . .  Wait 10 minutes . . . ]
    
    chronos@penguin:~/new/hetzner/e3/installnet-20230715$ ssh root@redacted | tee -a installnet-20230715-alma # Alma, Rocky, Fedora, Rawhide all in same transcript file.
    root@redacted's password: 
    Last login: Sat Jul 15 12:15:05 2023 from 187.189.238.1
    [root@uranium ~]# date -u
    Sat Jul 15 06:37:51 PM UTC 2023
    [root@uranium ~]# cat /etc/fedora-release 
    Fedora release 39 (Rawhide)
    [root@uranium ~]# uname -r
    6.5.0-0.rc1.20230711git3f01e9fed845.12.fc39.x86_64 🤩
    [root@uranium ~]# cat /proc/mdstat
    Personalities : [raid0] [raid1] 
    md126 : active raid1 sdb2[1] sda2[0]
          1046528 blocks super 1.2 [2/2] [UU]
          bitmap: 0/1 pages [0KB], 65536KB chunk
    
    md127 : active raid0 sdb3[1] sda3[0]
          935335936 blocks super 1.2 512k chunks
          
    unused devices: <none>
    [root@uranium ~]# cat /etc/fstab
    
    #
    # /etc/fstab
    # Created by anaconda on Sat Jul 15 18:06:46 2023
    #
      [ . . . ]
    #
    UUID=6a3f7fbf-71d9-4291-83a8-2b29bb1d749e /                       xfs     defaults        0 0
    UUID=457228ec-e16e-4fbe-a9ce-6260c68e0966 /boot                   xfs     defaults        0 0
    [root@uranium ~]# 
    

    Congrats to @leitbogioro! 🌟

  • Chinese from Google Translate:

    也许我在 @leitbogioro 的帖子中发送了太多测试的垃圾邮件! 所有测试和所有帖子的原因是 @leitbogioro 的脚本在很多不同的方面都表现得很好! 🤩

    我继续从上面的 Fedora Rawhide 安装开始安装 Alpine。 Alpine 安装成功,就像 CentOS、Alma、Rocky 以及 Fedora 38 和 Rawhide 一样! 再次强烈祝贺@leitbogioro! 🌟

    在 Alpine 安装中,我使用了 bash InstallNET.sh -alpine edge -raid "0"。 乍一看,安装的结果似乎是Alpine 18.0。

    Original English:

    Maybe I am spamming @leitbogioro's thread with too many tests! The reason for all the tests and for all the posts is that @leitbogioro's script works so well in so many different ways! 🤩

    I went ahead and installed Alpine starting from the above Fedora Rawhide install. The Alpine install succeeded, just like CentOS, Alma, Rocky, and both Fedora 38 and Rawhide! Again, huge congrats to @leitbogioro! 🌟

    With the Alpine install, I used bash InstallNET.sh -alpine edge -raid "0". At first glance, the result of the install seems to be Alpine 18.0.

    uranium:~# cat /etc/alpine-release 
    3.18.0
    uranium:~#
    

    另外,安装似乎只到一张磁盘。 当 Alpine 在 RAM 中运行时,当系统在 RAM 中运行时,看到 cat /proc/mdstat 没有显示任何内容也就不足为奇了。 然而,我想象,当服务器关闭时,系统可能会使用两个硬盘从内存写入RAID 0。 但似乎没有 RAID,并且 /dev/sda1 似乎是唯一安装的磁盘。

    Also, the install seemed to go to one disk only. With Alpine running in RAM, it's not surprising to see cat /proc/mdstat not showing anything when the system is running in RAM. However, I imagined that, when the server is shut down, the system might be written from memory to RAID 0 using both hard disks. But there seems to be no RAID and /dev/sda1 seems to be the only disk that's mounted.

    uranium:~# cat /proc/mdstat
    Personalities : 
    unused devices: <none>
    uranium:~# lsblk
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    sda      8:0    1 447.1G  0 disk 
    ├─sda1   8:1    1   300M  0 part /boot
    └─sda2   8:2    1 446.8G  0 part /
    sdb      8:16   1 447.1G  0 disk 
    ├─sdb1   8:17   1     1M  0 part 
    ├─sdb2   8:18   1     1G  0 part 
    └─sdb3   8:19   1 446.1G  0 part 
    uranium:~# cat /etc/fstab
    UUID=f5cd452f-9f0c-4fce-8356-626d955697fb       /       ext4    rw,relatime 0 1
    UUID=3e26dbfd-94b0-4584-86bf-542fe649c17c       /boot   ext4    rw,relatime 0 2
    /dev/cdrom      /media/cdrom    iso9660 noauto,ro 0 0
    /dev/usbdisk    /media/usb      vfat    noauto  0 0
    tmpfs   /tmp    tmpfs   nosuid,nodev    0       0
    uranium:~# mount
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=10240k,nr_inodes=8200928,mode=755,inode64)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,inode64)
    /dev/sda2 on / type ext4 (rw,relatime)
    tmpfs on /run type tmpfs (rw,nosuid,nodev,size=13125636k,nr_inodes=819200,mode=755,inode64)
    mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
    /dev/sda1 on /boot type ext4 (rw,relatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,inode64)
    uranium:~# 
    

    接下来可能是在带有 NVMe 磁盘的服务器上进行测试。 有人希望我发布 NVMe 磁盘的测试结果吗?

    Next might be to test on a server with NVMe disks. Does anyone want me to post test results with NVMe disks?

    非常感谢@leitbogioro! ❤️

    Many thanks to @leitbogioro! ❤️

  • Correction to https://www.nodeseek.com/post-9383-29#288

    At first glance, the result of the install seems to be Alpine 18.0.

    uranium:~# cat /etc/alpine-release
    3.18.0
    uranium:~#

    But

    uranium:~# cat /etc/apk/repositories 
    http://dl-cdn.alpinelinux.org/alpine/edge/main
    http://dl-cdn.alpinelinux.org/alpine/edge/community
    uranium:~# apk update
    fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
    fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
    v3.18.0-6168-g8795716b3b7 [http://dl-cdn.alpinelinux.org/alpine/edge/main]
    v3.18.0-6174-g1d85f8ff9c5 [http://dl-cdn.alpinelinux.org/alpine/edge/community]
    OK: 20361 distinct packages available
    uranium:~# apk upgrade --available
    OK: 462 MiB in 180 packages
    uranium:~# sync
    uranium:~# reboot
      [ . . . Wait 70 seconds . . . ]
    Welcome to Alpine GNU/Linux (6.1.38-5-lts x86_64)
      [ . . . ]
    uranium:~# date -u
    Sat Jul 15 23:31:43 UTC 2023
    uranium:~# cat /etc/alpine-release 
    3.18.0
    uranium:~# 
    

    What am I missing? 😃

  • 支持

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有15730位seeker

🎉欢迎新用户🎉