You are not logged in.

#1 2012-01-07 12:59:49

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

try to fix dual boot went wrong

I have windows 7 x64 and arch linux on same hard drive.

I have tried to fix my dual boot.  It did not work form start, when I installed arch linux.
I have tried https://wiki.archlinux.org/index.php/Gr … th_Windows and did not work.

I have turned off makeactive in

/boot/grub/menu.lst

as suggested in article, but did not help.

After

grub-install /dev/sda

boot does not work...

Also I have tried
https://wiki.archlinux.org/index.php/Grub#GRUB_Error_17

boot partition is set to boot partition.

After restart, and boot output of grub is

filesystem type unknown, partition type 0x83 

I have tried for every partiotion in grub

root(hd0,x)

and output is always the same...

Can anybody help?

Last edited by LordOfInsomnia (2012-01-07 13:21:25)

Offline

#2 2012-01-07 15:12:22

KingX
Member
From: CA
Registered: 2010-03-24
Posts: 324

Re: try to fix dual boot went wrong

So if I understand correctly you are unable to boot into Arch, but windows is working fine? What partitions did you create during Arch install? Did you create a separate boot partition and formatted it ext3. My first guess is you are using ext4 for your root partition and grub cannot boot from ext4, you need to create a small boot partition and format it either ext3 or ext2.

Another thing you can do if you don't want a separate boot is to use grub2 which supports booting from ext4.

Offline

#3 2012-01-07 16:54:11

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

Re: try to fix dual boot went wrong

Windows never worked, when I tried to fixed it Arch would not boot. So nighter windows nor linux are working.

I have 3 linux partitions, and 3 ntfs partitions.
Linux partitions are: boot, swap and usr.

output of fdisk -l

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       13055   104864256    7  HPFS/NTFS
/dev/sda2           13056       55425   340334018    f  W95 Ext'd (LBA)
/dev/sda3   *       55425       55437       96390   83  Linux
/dev/sda4           55437       60802    43091858   83  Linux
/dev/sda5           13056       39164   209720511    7  HPFS/NTFS
/dev/sda6           39165       54927   126613251    7  HPFS/NTFS
/dev/sda7           54927       55425     3999744   82  Linux swap / Solaris

Everything worked, before I tried to fix windows boot...

Offline

#4 2012-01-07 17:22:20

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: try to fix dual boot went wrong

Put back the makeactive line, your root line should be root(hd0,2) make sure the root in the kernel line points to your root partition.

Here is my entry in grub menu. My boot partition is on /dev/sda5 and my root partition at /dev/sda7.

 
# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz-linux]
root   (hd0,4)
kernel /vmlinuz-linux root=/dev/sda7 ro vga=773
initrd /initramfs-linux.img

Offline

#5 2012-01-07 17:42:11

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

Re: try to fix dual boot went wrong

this is my menu.lst

It does not work...

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz-linux]
root   (hd0,3)
radeon.audio=0
kernel /vmlinuz-linux root=/dev/sda4 rootdelay=6 ro
initrd /initramfs-linux.img


# (1) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

Offline

#6 2012-01-07 19:41:16

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: try to fix dual boot went wrong

If windows don't start then insert the windows cd and fix the mbr then install grub from the livecd/usb and windows should boot.

If you can't boot in Arch maybe try this way.

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz-linux]
root   (hd0,2)
radeon.audio=0
kernel /boot/vmlinuz-linux root=/dev/sda4 rootdelay=6 ro
initrd /boot/initramfs-linux.img

What error does grub report?

Last edited by prasinoulhs (2012-01-09 15:27:45)

Offline

#7 2012-01-07 20:00:56

Durden
Member
Registered: 2011-06-19
Posts: 261

Re: try to fix dual boot went wrong

Isn't there a limit to the number of partitions on a disk? I know I had trouble when I tried to use more than 4 primaries. How many do you have? I see like 5 or 6 on your list there.

Offline

#8 2012-01-07 21:15:27

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: try to fix dual boot went wrong

'radeon.audio=0' is a kernel option, should be appended to the kernel line. (And audio is disabled by default since 3.0, according to the wiki.)

Btw, I just noticed I have 'makeactive' with Windows 7 and I haven't had any problems (although I rarely boot into Windows).

Offline

#9 2012-01-07 23:43:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: try to fix dual boot went wrong

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       13055   104864256    7  HPFS/NTFS
/dev/sda2           13056       55425   340334018    f  W95 Ext'd (LBA)
/dev/sda3   *       55425       55437       96390   83  Linux
/dev/sda4           55437       60802    43091858   83  Linux
/dev/sda5           13056       39164   209720511    7  HPFS/NTFS
/dev/sda6           39165       54927   126613251    7  HPFS/NTFS
/dev/sda7           54927       55425     3999744   82  Linux swap / Solaris

So sda5, 6 and 7 are non-primary partitions, right? And sda2 is the primary partition which includes these extended partitions? (I'm forgetting the terminology here.) It isn't that you're trying to have more than four primary partitions.

Last edited by cfr (2012-01-07 23:44:22)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2012-01-08 14:11:04

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

Re: try to fix dual boot went wrong

@cfr, you are right. sda1 is primary partition, sda2 is extended partition for sda5 and sda6. I have one more primary for boot.
@Raynman "'radeon.audio=0' is a kernel option" was added here two months ago, and after that I did not have sound problems.
@Durden I have two primary partitions.
@prasinoulhs I will try to fix boot with windows dvd as soon as I can. I have image on my hard drive, but I am curently using mint live cd, and I cannot burn cd/dvd from it... hmm
Grub error is error 17.


All comments above are irrelevant,  because my system was working for 4 months in that configuration...

Offline

#11 2012-01-08 22:40:01

Durden
Member
Registered: 2011-06-19
Posts: 261

Re: try to fix dual boot went wrong

LordOfInsomnia wrote:

Windows never worked, when I tried to fixed it Arch would not boot. So nighter windows nor linux are working.

First you say this

LordOfInsomnia wrote:

All comments above are irrelevant,  because my system was working for 4 months in that configuration...

Then you say this.

Which is it? The comments are not irrelevant as we're trying to get information you didn't provide in the OP. If you don't like us asking questions then don't ask us for help on this forum.

Offline

#12 2012-01-08 23:38:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: try to fix dual boot went wrong

You don't say either whether you tried root as (hd0,2)...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#13 2012-01-09 08:22:30

c2ypt1c
Member
Registered: 2012-01-05
Posts: 10

Re: try to fix dual boot went wrong

as quoted in the wiki:

Note: If you are attempting to dual-boot with Windows 7, you should comment out the line makeactive.

Also, if you hadn't noticed, the partition index starts at 0. So, if you want to boot sda3 you need (hd0, 2).

Here's mine...

# (0) Arch Linux
title  Arch Linux
root   (hd0,5)
kernel /vmlinuz-linux root=/dev/sda1 ro
initrd /initramfs-linux.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,5)
kernel /vmlinuz-linux root=/dev/sda1 ro
initrd /initramfs-linux-fallback.img

# (2) Windows
title Windows7
rootnoverify (hd0,1)
#makeactive
chainloader +1

Offline

#14 2012-01-09 15:31:11

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: try to fix dual boot went wrong

Does initramfs-linux.img and vmlinuz-linux exists int your /boot directory?

Offline

#15 2012-01-10 13:40:57

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

Re: try to fix dual boot went wrong

I am sorry if I sounded harsh. English is not my native language, and I am confusing in my native language. smile

@prasinoulhs yes, both file exist.
@cft

I have tried them all. hmm
I have booted installation of arch linux and executed grub
This is output:

root (hd0,0)
filesystem type unknown, partition type 0x7


root (hd0,1)
filesystem type unknown, partition type 0xf

root (hd0,2)
filesystem type ext2fs, partition type 0x83

root (hd0,3)
filesystem type unknown, partition type 0x83

root (hd0,4)
filesystem type unknown, partition type 0x7

root (hd0,5)
filesystem type unknown, partition type 0x7

root (hd0,6)
filesystem type unknown, partition type 0x82

Offline

#16 2012-01-10 14:02:07

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

Re: try to fix dual boot went wrong

after restart and boot of arch linux from hard drive I get menu for arch and for windows.

After I choose arch linux i get this output:

booting 'arch linux [/boot/vmlinuz-linux]'

root (hd0,3)
filesystem type unknown, partition type 0x83

kernel /vmlinuy-linux root=/dev/sda4 rootdelay=6 ro

error 17: cannot mount selected partition

I have tried to change it with change it in boot sequence hitting 'e' on

root (hd0,3)

in menu.

I entered

root (hd0,2)

And output with this option is

root (hd0,2)
mount: you must specify filesystem type
You are being dropped into emergency shell.
sh: can't access tty: job control turned off

Last edited by LordOfInsomnia (2012-01-10 14:02:37)

Offline

#17 2012-01-10 17:22:57

Durden
Member
Registered: 2011-06-19
Posts: 261

Re: try to fix dual boot went wrong

You have a typo in your grub file:

kernel /vmlinuy-linux root=/dev/sda4 rootdelay=6 ro

Should read something like:

kernel /vmlinux-linux root=/dev/sda4 rootdelay=6 ro
or
kernel /vmlinuz-linux root=/dev/sda4 rootdelay=6 ro

Notice the y in place of the x or z

Last edited by Durden (2012-01-10 17:25:01)

Offline

#18 2012-01-11 00:49:32

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

Re: try to fix dual boot went wrong

yes, there is a typo, but is in writing...

kernel /vmlinuz-linux root=/dev/sda4 rootdelay=6 ro

Offline

Board footer

Powered by FluxBB