LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 08-03-2006, 11:08 AM   #1
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Raid-Dual boot-Swap partition trouble


Hi,
I have been trying to set up dual boot of XP an Dapper over the last few days.
My system has Silicon Image (?) Raid0, striped SATA HDs, which is a whole problem in itself.
As an aside, I do hope we'll see some improvment on the Install programs handling on this (Raid HDs).

After much trouble I have ended up keeping my first partition as XP and a second primary partition following it with Ubuntu. My problem now is that the install program doesn't seem to find my swap inside the extended partition. It looks like I'll have to create the swap partition as a primary partition. Is this how it's supposed to be? Seemms very strange to me. Is it because of my striped raid?

Comments/suggestions welcome.

Mons
 
Old 08-05-2006, 03:49 AM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
what is the output of
Code:
fdisk -l
 
Old 08-08-2006, 06:40 AM   #3
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Original Poster
Rep: Reputation: 37
Thanks binary_y2k2,
The output from fdisk -l gave partitions about sda and sdb. This got me thinking and i found posts about fakeRaid and the related HOWTO, here: https://help.ubuntu.com/community/FakeRaidHowto

Trouble is that the install program (Ubiquity?) doesn't work with Sata raid (and possibly other types of raids).
I have followed the instructions, but the install of dmraid fails. I try to run dpkg-reconfigure dmraid, but no luck. It says dmraid is broken.

Anyone have any ideas of how to configure dmraid when doing the install as described in the howto above? My raid is a Silicon Image 3112 on a asus A7N8X deluxe board.
 
Old 08-08-2006, 07:09 AM   #4
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
You may want to try the alternative install CD, that has more options and (i'm quite sure) it has supprot for fakeRAID
 
Old 08-08-2006, 11:33 AM   #5
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Original Poster
Rep: Reputation: 37
I tried the alternative CD. It didn't see my RAID-0 configuration. only came up with 2 different drives (sda and sdb).
I have tried the manual process using the Linux Format DVD from their latest issue instead....
 
Old 08-08-2006, 04:02 PM   #6
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Original Poster
Rep: Reputation: 37
I managed to install dmraid. I only needed to install a package called 'checkpolicy'.
So I run: apt-get install checkpolicy
dmraid was then ok. I then installed grub to the partition where my ubuntu install is (no separate boot partition). I then created the ubuntu.bin file other dual boot howtos have mention for using windows bootloader. But when I now try to select Ubuntu linux from my windows boot menu, I only get a black screen. No error messages, nothing...

So I'm slightly further, but still no Ubuntu Dapper....

 
Old 08-09-2006, 05:39 AM   #7
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Original Poster
Rep: Reputation: 37
Cool Lovely error 15

After one week with some late nights I finally managed to boot my new dual boot Ubunto-WinXP on my SATA RAID-0 machine (silicon image 3112 raid controller). I am using the Windows bootloader.



I started off using Partition Magic under windows to prepare a partition for root and boot and one for swap. I then booted the ubunto cd (well actually the Linux Format provided DVD in my case).
After much booting and rebooting and reading what seemed like hundreds of web pages (and accidentally reformatting the wrong partition and loosing my windows programs I had on a seperate partition), I enventually got started on the FakeRaidHowto.

What confused me to start with was that I had to use the mapper device, i.e. /dev/mapper/sil_afafejbgajdg in my case. There is no conventional device to use. The /dev/sda and /dev/sdb points to the individual striped harddrives and should NOT be used anywhere.

The FakRaidHowto on https://help.ubuntu.com/community/FakeRaidHowto
Mentions the warnings you get about locale. You can generate the missing locale with the locale-gen command if you like, but it's not critical.
The other thing I had to do was to install the checkpolicy package to be able to successfully install dmraid.

The last problem was the grub installation. In order to be able to create the .bin file for the windows bootloader:
dd if=/dev/mapper/sil_afafejbgajdg of=/mnt/floppy/ubuntu/bin bs=512 count=1
I had to install grub to the MBR first. I then created the .bin file as above. I forgot at first that you have to use the main harddisk device and not the partition you are booting from (I have my ubuntu boot on /dev/mapper/sil_afafejbgajdg2).
Ones the file is on the floppy I unmounted and rebooted into the WinXP install DVD and run the FIXMBR command from the repair console. Then booted into Windows and set up the boot.ini as other people have described.

So after that it booted, although with the little error 15 message. I guess it's just for me to remove "savedefault" from menu.lst. Then I presume I will have to install nvidia graphics drivers before I get my nice gui up and running....

And maybe I'll try to undo that accidental format of my windows software too.

Mons
 
Old 08-15-2006, 07:58 AM   #8
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Original Poster
Rep: Reputation: 37
Just one last post on this.

I was back from holiday and managed to fix the last few problems on this installation. Removing the "savedefault" from menu.lst got rid of the error 15 message. Unfortunately root booted to read-only mode still.

There was 2 changes to fix that in my case.
One was to edit device.map file under /boot/grub
This file contained the devices, so in addition to the floppy on fd0, it listed my 2 hard drives as sda and sdb. Since I am using Raid-0, this is is wrong. I removed them and put in my mapper device instead (/dev/mapper/sil_afafejbgajdg).

I also edited my fstab file and changed the root entry. I removed all the parameters and just left the defaults one (so something like "/dev/mapper/sil_afafejbgajdg2 / ext3 defaults 0 1"). I guess it would be an idea to look into these mount options and try to find out what the ideal ones would be later.

Boot worked and went to rw mode! Last bit was to add a user and edit /etc/gdm/gdm.conf-customto add "AllowRoot=true" under the security section in order to allow root to login to gnome.

So thats finally it. Hope this thread is useful to someone out there...

Mons
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Specify existing swap partition at boot when reinstall? GeirG Linux - General 2 09-11-2004 08:42 AM
Swap? and Dual Boot with a NTFS fs? Whiskers Linux - General 2 09-03-2004 04:06 PM
Can a swap or boot partition be too big? gadams33 Linux - Newbie 4 08-22-2004 06:48 PM
Why don't more people use IDE swap kits instead of dual boot? shivandeveloper Linux - Newbie 16 12-04-2003 05:19 PM
Swap Partition (Sharing -- Dual boot) podollb Linux - Software 2 10-27-2003 01:36 AM


All times are GMT -5. The time now is 09:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration