LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2011, 07:04 PM   #1
Mellar
LQ Newbie
 
Registered: Jan 2008
Posts: 29

Rep: Reputation: 15
Weird behaviour of Slackwares GRUB


Hei guys!

I'm dualbooting Slackware and Arch Linux. I'm using Slackwares GRUB installed from /extra

Loading Slackware from GRUB works fine, but loading Arch Linux doesn't. Here's the messages when trying to load Arch from GRUB:
Code:
root (hd0,0) 
filesystem type unknown partition type 0x7 Error 17 : 
Cannot mount selected partition
Here's the weird thing. fdisk -l in Slackware gives me this:

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       13544   102392608+   7  HPFS/NTFS
/dev/sda2           13545       14222     5116702+  83  Linux
/dev/sda3           14222       14899     5116702+  83  Linux
/dev/sda4           14899       41346   199936957+   5  Extended
/dev/sda5           14899       15576     5116671   83  Linux
/dev/sda6           15576       17201    12289693+  83  Linux
/dev/sda7           17201       17340     1052226   82  Linux swap
/dev/sda8           17341       41346   181478241   83  Linux
/dev/sda1 is my Arch Linux installation. /dev/sda1 should have been listed with the ext4 filesystem! Yes, I once had Windows installed on that partition, but now it's Arch with ext4. Weird!


Here's my /boot/grub/menu.lst. I've tried adding Arch hd0,0 as a windows partition at first just for fun. But grub complains about executables or something - of course!

Code:
# Other bootable partition config begins
  title Windows on (/dev/sda1)
  rootnoverify (hd0,0)
  makeactive
  chainloader +1

# (0) Arch Linux
 title  Arch Linux
 root (hd0,0)
 kernel /boot/vmlinuz26 root=/dev/sda1 ro
 initrd /boot/kernel26.img


# Linux bootable partition config begins
  title Slackware on (/dev/sda2)
  root (hd0,1)
  kernel /boot/vmlinuz root=/dev/sda2 ro vga=normal
# Linux bootable partition config ends
Any help is appreciated.

Thanks!

Last edited by Mellar; 04-13-2011 at 11:41 AM. Reason: Adding the solved-tag
 
Old 04-12-2011, 07:14 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
What does `fdisk -l` show from inside arch? (if you can boot it)

I would guess you could try setting the partition identifier back to 83 (linux), somehow it could have changed.

To do that, you would run fdisk as root then press: t,1,83,w,q

I couldn't guarantee it would work (safely) though.
 
1 members found this post helpful.
Old 04-12-2011, 07:21 PM   #3
Mellar
LQ Newbie
 
Registered: Jan 2008
Posts: 29

Original Poster
Rep: Reputation: 15
When I once converted the NTFS partition to a ext4 partition, I did it by the command
mke2fs -t ext4 /dev/sda1

Perhaps this isn't enough?

I can't boot Arch, so fdisk -l in Arch is probably not possible at the moment. The /etc/fstab on the Arch partition says /dev/sda1 is ext4 though.
 
Old 04-12-2011, 07:56 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
The filesystem is ext4 but the partition type is incorrect. You would have to do as coralfang suggested and change the partition type (using fdisk/cfdisk/sfdisk). This *may* damage the contents of the partition, so you may want to back it up if there is anything valuable on there. *DO NOT* change any of the partition boundaries since this would affect all of your installations (just change the partition type).
 
Old 04-12-2011, 08:25 PM   #5
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
# Other bootable partition config begins
title Windows on (/dev/sda1)
rootnoverify (hd0,0)
makeactive
chainloader +1

# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/kernel26.img


# Linux bootable partition config begins
title Slackware on (/dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 ro vga=normal
It looks to me like you forgot to remove/comment out the entry for Windows. GRUB is confused. You're telling it to chainload Windows from the same partition that you're telling it to boot Arch. Remove the Windows entry from menu.lst and it should boot Arch just fine.

Luck!
 
Old 04-12-2011, 09:01 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Have you tried mounting sda1 from Slackware to see what is actually installed on it using the mount -t (file system) option.

Last edited by colorpurple21859; 04-12-2011 at 09:04 PM.
 
Old 04-13-2011, 07:39 AM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Something looks goofy with that sda1 partition type , but perhaps this might help too:

GRUB and Error 17
 
Old 04-13-2011, 11:45 AM   #8
Mellar
LQ Newbie
 
Registered: Jan 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks guys.

fdisk /dev/sda
and the instructions from coralfang helped me solve the problem. Had to backup my datas at first.
 
Old 04-13-2011, 12:38 PM   #9
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
COOL!

Have FUN!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird ps/2 mouse behaviour macbeth8 Slackware 3 04-05-2008 10:34 AM
weird gzip behaviour? vlkplk Debian 3 02-22-2008 03:26 AM
9.3 weird behaviour ????? bigjohn SUSE / openSUSE 9 07-06-2005 05:44 AM
[SOLVED] k3b weird behaviour filosophem Linux - Software 3 01-23-2005 04:42 PM
Weird Apache behaviour ? zalmox Linux - Software 1 11-10-2003 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration