❓ Help Help on Dual OS windows & Linux

Nael24

Journeyman
Hi po. Baka may pwede makatulong po sa akin. Gusto ko po sana mag lagay ng linux sa laptop ko ngayun. Current OS is windows. Any recommendations po. Thank you
 
eto sakin pero tested ko lang sa legacy bios and hindi ko narin masyado magalaw yung linux ko sa machine na dinual boot ko, i manual research mo nalang yung ibang detalye since stock knowledge lang gamit ko habang sinusulat ko tong post
1) Prepare mo yung rufus usb mo na may linux(or ventoy + iso image). Depende sayo kung anong distro gamay mo, mostly beginners ang palaging recommended is Linux Mint(power user) or Cachy OS(gamer)
2) winkey + x > disk management > right click sa (C:) > shrink volume > enter amount kung gaano kalaki yung linux installation na gusto mo
3) reboot, proceed sa usb boot
4) the rest is i think automatic windows partition detection na sa installers ni mint at cachy(since ang premise ng mga distro na yan is power user friendly at less coding/manual config), ang gagawin nyan sa partition na gawa mo hahatiin sa dalawa, /boot partition at rootfs partition, kung may ibang disk partition setup yung Mint and Cachy i think pwede rin, kasi sa archlinux ko lang sya natesting and manual install ang ginawa ko. basta grub-boot ang gagamitin at hindi systemd-boot kung ma-mention man ng installer.
5) after install, check mo kung may ntfs-3g and os-prober package at common ntfs utilities si linux, tapos run ka ng echo 'GRUB_DISABLE_OS_PROBER=false' >> /etc/default/grub. gawa ka ng bash script, edit mo yung value ng DISK sa main disk name mo na makikita mo sa fdisk -l, tapos run mo as sudo:
Bash:
#!/bin/bash
DISK="/dev/sda"
TEMP_MNT="/mnt/temp"
TARGET_MNT="/mnt"

[ ! -d "$TEMP_MNT" ] && mkdir "$TEMP_MNT"
WIN_PART=""

for part in $(ls ${DISK}[0-9]* 2>/dev/null); do
  TYPE=$(blkid -o value -s TYPE "$part")
  if [ "$TYPE" == "ntfs" ]; then
    echo "Checking $part..."
    mount -t ntfs-3g -o ro "$part" "$TEMP_MNT" 2>/dev/null
    if [ $? -eq 0 ]; then
      if [ -d "$TEMP_MNT/Windows" ] || [ -f "$TEMP_MNT/bootmgr" ]; then
        WIN_PART="$part"
        umount -R "$TEMP_MNT"
        break
      fi
      umount -R "$TEMP_MNT"
      [[ -z "$WIN_PART" ]] && echo "Windows partition not found."; exit 1
    fi
  fi
done

echo "Found Windows partition: $WIN_PART"
mount -t ntfs-3g "$WIN_PART" "$TARGET_MNT"
if [ $? -ne 0 ]; then
  echo "Failed to mount $WIN_PART."
  exit 1
fi

echo "Mounted $WIN_PART. Updating GRUB..."
grub-mkconfig -o /boot/grub/grub.cfg
echo "GRUB configuration updated."
then try mo sya i-reboot at switch back sa boot from disk, try mo kung lalabas yung GNU GRUB menu

ang importante lang naman jan dapat maiinstall yung correct grub variant -pc i think sa legacy and -efi for UEFI sa ssd/hdd ng laptop mo, ang default nyan kapag di mo na sinetup yung grub for windows partition is hindi lalabas yung windows partition sa grub menu, pag ganyan wag ka lang kabhan kasi nanjan parin naman yang windows partition na yan pag nilista mo sa fdisk -l, hindi lang sumama sa grub config

ang maselan lang sa ganitong setup every update dapat may script ka na nirurun para i-automate yung process ng bash example script na ginawa ko, kasi need temporary mounted yung windows partition habang nagrurun ng grub-mkconfig na automated nirurun ng mga package manager kung mag u-upgrade ka ng grub sa machine mo
 
kung dual boot download ka ng linux distro tapos gamit ka ventoy. pwede din virtualbox kung gusto mo nasa loob ng windows. pde din gamit ka WSL ng windows
 

Similar threads

About this Thread

  • 5
    Replies
  • 321
    Views
  • 4
    Participants
Last reply from:
Nael24

Trending Topics

Online now

Members online
798
Guests online
1,224
Total visitors
2,022

Forum statistics

Threads
2,274,083
Posts
28,953,537
Members
1,235,051
Latest member
tobiiii
Back
Top