You are not logged in.

#1 2014-02-27 17:10:03

jag-ster
Member
Registered: 2014-02-27
Posts: 11

[SOLVE] Dual Boot Windows and ArchLinux with Syslinux

Ok, i installed ArchLinux on my laptop with Windows XP (syslinux) and I cannot find get Windows to boot or mount it. I have tried to do what i can to do this but cannot. I Installed XP first like a should and something i think might be needed to know is after i created the partitions scheme (10Gb (boot partition), 50GB (XP), 80GB(was unallocated)). The installation disk formated both 2 partitions in NTFS but i installed XP on the second and Windows reported them as C and D drives. Windows being D. Thought that was bit werid thinking Windows installed the mbr on that partition. When I installed ArchLinux, it did have the boot flag set on 10GB (or C drive).

Since I installed ArchLinux, I have been unable to find a solution to mounting/booting to Windows. Installed NTFS-3G and that didn't work when i tried mount /dev/sda3 windows and i did created a folder named windows but got ...

mount: wrong fs type, bad option, bad superblock on /dev/sda3,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.


Tried dmesg | tail and got

[   76.524133] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[  179.468499] ACPI: \_SB_.PCI0.LPC0.ACAD: ACPI_NOTIFY_DEVICE_CHECK event: unsupported
[  705.472330] 8139too 0000:02:03.0 enp2s3: link down
[  717.380879] 8139too 0000:02:03.0 enp2s3: link up, 100Mbps, full-duplex, lpa 0x41E1
[  726.447184] 8139too 0000:02:03.0 enp2s3: link down
[  727.596128] ACPI: \_SB_.PCI0.LPC0.ACAD: ACPI_NOTIFY_BUS_CHECK event: unsupported
[  732.616138] 8139too 0000:02:03.0 enp2s3: link up, 100Mbps, full-duplex, lpa 0x41E1
[  733.848832] 8139too 0000:02:03.0 enp2s3: link down
[  834.062062] 8139too 0000:02:03.0 enp2s3: link up, 100Mbps, full-duplex, lpa 0x41E1
[ 2131.449211] perf samples too long (2534 > 2500), lowering kernel.perf_event_max_sample_rate to 50100

This is when i run sudo lsblk
 

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 149.1G  0 disk 
|-sda1   8:1   0   9.8G     0 part /boot
|-sda2   8:2   0     1K      0 part 
|-sda3   8:3   0  53.6G   0 part 
`-sda5   8:5  0  85.7G    0 part /
sr0     11:0    1  1024M  0 rom  

My syslinux is

LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda5 rw
    INITRD ../initramfs-linux.img



LABEL windows
        MENU LABEL Windows
        COM32 chain.c32
        APPEND hd0 3 

NOTE: chain is in the same directory with syslinux

I really think Windows got corrupted but not sure. Thought about repairing the mbr on windows and booting to it then reinstall syslinux but really don't want too.

Thanks in advance

Last edited by jag-ster (2014-11-27 02:12:12)

Offline

#2 2014-02-27 17:28:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-02-27 18:44:51

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 468

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

i think hd0 3 is hda4 wich isn't in your list.

ezik

Offline

#4 2014-02-27 19:44:45

jag-ster
Member
Registered: 2014-02-27
Posts: 11

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

shulamy wrote:

i think hd0 3 is hda4 wich isn't in your list.

ezik

Nope sad I kinda wonder why there no sda4 in the list but i have tried hd0 2, hd0 3, and now hd0 4. Well, atleast i made a complete switch to Linux on this computer thus far!!

Offline

#5 2014-02-27 20:22:13

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 468

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

try

fdisk -l

as root

ezik

Offline

#6 2014-02-28 16:57:52

jag-ster
Member
Registered: 2014-02-27
Posts: 11

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

i know one thing this partition gone crazy. according to fdisk -l says windows in sda2 but in lsblk says its sda3. I know i put Windows in the 53GB and the boot in 10GB and ArchLinux in the 85GB. When i put the installation disk of Windows, it couldn't find Windows sad  guess i start over..

fdisk -l

Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdcdedcde

Device    Boot     Start       End    Blocks  Id System
/dev/sda1 *           63  20482874  10241406  83 Linux
/dev/sda2       20482875 312560639 146038882+  f W95 Ext'd (LBA)
/dev/sda3      200250225 312581807  56165791+ 83 Linux
/dev/sda5       20482938 200250224  89883643+  7 HPFS/NTFS/exFAT

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 149.1G  0 disk 
|-sda1   8:1    0   9.8G  0 part /boot
|-sda2   8:2    0     1K  0 part 
|-sda3   8:3    0  53.6G  0 part 
`-sda5   8:5    0  85.7G  0 part /
sr0     11:0    1 589.4M  0 rom  

Offline

#7 2014-02-28 19:52:34

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 468

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

i see the opposite.

linux on /dev/sda3 size 53 GB

windows on /dev/sda5 size 85 GB

and /dev/sda2 is only the title for extended sda3 and sda5.

sda5 doen't have boot flag and maybe (i'm not sure) it have to be on primery partition to boot.

ezik

Offline

#8 2014-02-28 23:08:08

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

Here is the partition table:
/dev/sda1 one HUGE linux /boot primary partition (assuming ext4)
/dev/sda2 "name" of the extended partition
/dev/sda3 primary Windows partition (assuming NTFS)
/dev/sda5 logical Linux root partition (assuming ext4)

/dev/sda1 to /dev/sda4 are either all primary, or three primary and one extended. After /dev/sda4 all partitions are logical. If you're still wondering why is there no /dev/sda4, it's because you have 2 primary and one extended, so /dev/sda4 is reserved for another primary partition.

Windows problem:
The /dev/sda1 which Windows named C: is Windows equivalent of linux /boot. When you told linux to place its /boot on /dev/sda1 it formated boot files of Windows. Now you have Windows OS with no kernel. In other words there is no way to boot Windows if you don't reinstall it. Actually there is a way, but you would than screw up Arch.

Mounting problem:
You can never mount extended partition, only logical (an extended partition is made of logical partitions). You want to do:

sudo mount /dev/sda3 -t NTFS-3g -o rw,uid=YourUserName /path/where/you/want/this/partition/mounted

EDIT:
Try it this way:
- Backup all your data
- Delete every partition
- Start Windows installation
- Make only one partition (c:/ for Windows)
- Let Windows make another partition
- Make one more so you could have a data partition, which does not need to be formated to reinstall Windows
- Start Arch installation
- Get to partitioning
    =Partitioning=
    - /dev/sda4 extended (take the rest of the drive)
    - /dev/sda5 logical /boot 512MiB
    - /dev/sda6 logical /          20GiB
    - /dev/sda7 logical /home (the rest)

Making a separate /home partition will come in handy when reinstalling Arch (any linux distribution), or switching between distros, because it is the equivalent of D:/ in Windows. Also consider LVM.

Last edited by bstaletic (2014-02-28 23:25:33)

Offline

#9 2014-03-03 02:21:23

jag-ster
Member
Registered: 2014-02-27
Posts: 11

Re: [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

UPDATE: I been offline for few days because i did get this computer back up and running now. basically did what bstaletic said but with some differences. i wanted to recover some data i lost with testdisk (testdisk is really good) first and created my partitions correctly with GParted before i did anything. Now, i got Windows and ArchLinux dual booting correctly, next problem/task is to mount that NTFS partition, but that later, got school work this week.

thanks, i sure did learn my mistakes with this one.
jag-ster

Offline

Board footer

Powered by FluxBB