作者: wydnakcuf 時間: 2025-9-8 12:28 標題: 唔小心 搞過個partition, 而家boot 唔起
原本grub 裝左係C, window 裝左係D, Linux 唔記得裝左係邊。
唔小心 搞過個partition, 而家boot 唔起
我只有一隻mint Linux CD可boot 起,而家目標只係可以入返windows 10,有無師兄可以指點下,thanks 。
[attach]2495582[/attach]
[attach]2495583[/attach]
作者: DMelon 時間: 2025-9-8 14:32
回覆 1# wydnakcuf
1. 如果 Grub 抄咗 reinstall 就可以。
2. 如果 boot 到 Grub 但 windows 入唔到,可能 path 錯咗,至於點改唔記得 lu 。
3. 如果 boot 到 Grub 但 linux 入唔到,可能 path 錯咗,修改 /etc/fstab 為現在正確 path。查看 fdisk -l | less (上下scroll, q to quit)。
作者: DMelon 時間: 2025-9-8 15:31
回覆 2# DMelon
補充:見到貼圖既操作似係未 chroot/arch-chroot 。
作者: pipikeung 時間: 2025-9-8 15:43
本帖最後由 pipikeung 於 2025-9-8 16:13 編輯
首先用Linux CD 「boot」起部腦,然後用「終端機(Terminal)」執行 df -h,Gparted,找出安裝了Linux的「區間(partition)」,因為Linux區間一般是型格化成「ext4」。
第二部份是重裝「Grub2」便大功告成。方法如下﹕
假設安裝了Linux的區間是sda2,你想將Grub2裝在sda
在終端機鍵入﹕
將載有系統的區間掛載,Linux作業系統的區間是sda2
sudo mount /dev/sda2 /mnt
然後告知電腦將grub2放在哪一個硬盤中,假設放在第一個硬盤 sda
sudo grub-install --root-directory=/mnt /dev/sda
最後要「Grub2」幫你找齊各種作業系統,例如﹕Windows10等等...
sudo update-grub
sudo reboot
重後開機,你便看到各種系統的開機選單。Muti-boot系統便重新可用﹗
作者: rebmup 時間: 2025-9-8 19:16
本帖最後由 rebmup 於 2025-9-8 19:23 編輯
Deleted.
作者: wydnakcuf 時間: 2025-9-8 19:26
[attach]2495621[/attach]
另一個問題,唔知點解搵唔到ssid, 而家上唔到網!😭謝謝各位師兄!
作者: pipikeung 時間: 2025-9-8 20:10
可以使用(NetworkManager Command Line Inerface)工具,來連上wifi
在終端機鍵入﹕
1. nmcli device wifi list
便可以找到wifi 的 ssid
2. 連上wifi網絡
nmcli device wifi connect YOUR_SSID password YOUR_PASSWORD
作者: wydnakcuf 時間: 2025-9-8 21:58
可以使用(NetworkManager Command Line Inerface)工具,來連上wifi
在終端機鍵入﹕
1. nmcli device wifi l ...
pipikeung 發表於 2025-9-8 20:10
[attach]2495642[/attach]
搵唔到任何野!
作者: javacomhk 時間: 2025-9-9 01:10
好多年前我已經係用 USB boot 起 Linux 來用,但而家我直接轉用 Android GUI app,Linux 我只用 terminal access 的 server app 及 Docker Containers。
如果你有興趣可以去教學睇點樣用 USB boot 起 Linux 用,而唔使攪個 Partition。最值得用嘅應該係[如何製作 USB bootable Kali Linux 並可安裝 driver]https://www.hkepc.com/forum/viewthread.php?fid=24&tid=2657648
作者: rebmup 時間: 2025-9-9 06:46
好多年前我已經係用 USB boot 起 Linux 來用,但而家我直接轉用 Android GUI app,Linux 我只用 terminal a ...
javacomhk 發表於 2025-9-9 01:10
同用CD ROM boot 起來用,有無分別?
作者: pipikeung 時間: 2025-9-9 09:57
懂制作「bootable USB drive」當然是好事。不過「事有先後緩急」,樓主前設﹕
1. 只有「linux CD起動盤」
2. 待解決問題是﹕Multi-system (Linux + Windows) 中的「Grub2」被意外「覆蓋或損壞」,要進行修復。
故早前建議﹕
1. 用「linux CD起動盤」boot 起部腦
2. 重裝「Grub2」...(完)
順道介紹比較簡單在Linux OS中制作「bootable USB stick」的二個方法﹕
1. 使用linux的「dd」命令,一句「命令」攪定﹕
sudo dd if=/path/to/your.iso of=/dev/sdX bs=4M status=progress oflag=sync
上面sdX是「USB drive」,bs=4M 即是「block size=4megabytes」,以增加寫入速度。
oflag=sync 確保同步寫入並刷新到磁碟。
2. 樓主是使用「Linux Mint」,可以直接用「附屬應用程式 >> USB映像寫入工具」,將下載了的ISO檔直接寫入USB盤。
作者: javacomhk 時間: 2025-9-9 11:59
本帖最後由 javacomhk 於 2025-9-9 10:35 編輯
你要寫野落個 USB 架嘛!我個方法係將個 Linux OS 裝落去 USB 度boot 起用,唔係變 Live CD 要可以裝 driver 可以有 persistence data,代替你要用 GRUB 及要改 Internal HDD partition,唔係好似的人講話將個iso image 懶醒寫落USB 咁簡單。
而 Kali Linux 里面包括的 GUI App 及 tools 係最最值係 Linux 用嘅。
作者: pipikeung 時間: 2025-9-9 12:03
回覆 8# wydnakcuf
在Linux使用nmcli找不到WiFi SSID,可能是因為無線網卡未啟用、驅動程式問題、訊號太弱、路由器SSID被隱藏,或者該網路被暫停掃描。
先檢查無線網卡狀態,使用sudo iw dev確認網卡名稱。若未裝好驅程(driver),要先裝好相應驅程
使用sudo nmcli device wifi list列出可用網路
作者: wydnakcuf 時間: 2025-9-9 20:22
本帖最後由 wydnakcuf 於 2025-9-9 20:39 編輯
[attach]2495784[/attach]
[attach]2495785[/attach]
已把Ubuntu 放在第一個boot option
因為搞唔掂個 driver, 所以而家裝過個最新版本mint Linux, 解決了搵唔到wifi, 但又無左過grub, 之前用 sudo update-grub 就解決了,而家唔得,點解決呢?謝謝。
IMG_20250909_202137.jpg (66.9 KB)
作者: arschmitohren 時間: 2025-9-9 20:46
boot唔起Linux咁出咩畫面
關鍵可能就係度
作者: rebmup 時間: 2025-9-9 20:52
Boot 起左啦,而家係無左grub, 入唔到 ms win
作者: arschmitohren 時間: 2025-9-9 20:56
本帖最後由 arschmitohren 於 2025-9-9 13:05 編輯
sudo nano /etc/default/grub
GRUB_DISABLE_OS_PROBER=false
save and exit
sudo update-grub
作者: wydnakcuf 時間: 2025-9-9 23:04
sudo nano /etc/default/grub
GRUB_DISABLE_OS_PROBER=false
save and exit
sudo update-grub
arschmitohren 發表於 2025-9-9 20:56
Thank you! but it seems that the result is the same
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.14.0-29-generic
Found initrd image: /boot/initrd.img-6.14.0-29-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
This is the file
If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Any clues ?????
作者: arschmitohren 時間: 2025-9-12 20:39
回覆 18# wydnakcuf
整個cfdisk黎望望先

