LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Dual Boot with RAID and Two Hard Drives (https://www.linuxquestions.org/questions/linux-hardware-18/dual-boot-with-raid-and-two-hard-drives-51594/)

MoePhish 03-25-2003 01:26 AM

Dual Boot with RAID and Two Hard Drives
 
Ok Here is my question:

I Wanted to dual boot windows XP and Linux Mandrake 9.0. I buaght a Brand new hard drive for doing this because I heard about all the horror stories of deleating partitions and loosing data. My Windows XP partition (NTFS) is on a PCI RAID card (acard ultra ATA 133 PCI Raid) when I went to install linux LILO couldn't find my hard drive on the RAID card. I reinstalled Linux but no luck. My computer booted to linux fine but now I can't get into XP without cutting the power from the Linux hard drive. When I went to edit LILO from Mandrake I still didn't find my Raided hard drives. I've read some posts on linux dual boot with two hard drives and some on booting with a RAID config. but none dealing with both. Is this even possible I would like to keep my windows partition and not have to back it up since I am a Student recording engineer and I have many files that should not be compressed (use lossey compression) to back them up.

Here is a Copy of my lilo.config:

boot=/dev/hda
map=/boot/map
default=linux-smp
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label=linux
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi quiet"
vga=791
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi"
read-only
image=/boot/vmlinuz-smp
label=linux-smp
root=/dev/hda1
initrd=/boot/initrd-smp.img
append="devfs=mount hdd=ide-scsi"
vga=791
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=nomount hdd=ide-scsi failsafe"
read-only
other=/dev/fd0
label=floppy
unsafe

Any help would be Great.

Thanks,
James

MoePhish 04-02-2003 01:18 PM

No Replies still after a week. Does anyone have any info on my problem? Anyone?

Aussie 04-07-2003 02:30 AM

Ok James,
I need some more info.

According to your lilo.conf your default boot is linux-smp, do you have two CPU's and if so what are they and what motherboard are they on?

Do "lspci -vv" and post all the information about the PCI RAID card.

Do "fdisk -l" and post the output.

Post your /etc/fstab.

MoePhish 04-09-2003 07:22 PM

Yes I am running a dual proc system 2 AMD 1800 mp's on a Tyan Tiger MPX Mobo.

I think this is my info on the PCI Raid card but maybe not:

00:09.0 SCSI storage controller: Artop Electronic Corp ATP865 (rev 02)
Subsystem: Artop Electronic Corp ATP865
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
Latency: 160 (2750ns min, 1000ns max)
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at 1038 [size=8]
Region 1: I/O ports at 1030 [size=4]
Region 2: I/O ports at 1028 [size=8]
Region 3: I/O ports at 1024 [size=4]
Region 4: I/O ports at 1010 [size=16]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [58] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot
-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Here is my FDisk:

Disk /dev/ide/host0/bus0/target0/lun0/disc: 255 heads, 63 sectors, 9964 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 701 5630751 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 702 3413 21784140 5 Extended
/dev/ide/host0/bus0/target0/lun0/part5 702 732 248976 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part6 733 3413 21535101 83 Linux

Here is my etc/fstab:

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/cdrom2 supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

Hope this helps thanks for everything so far.

James

Aussie 04-09-2003 07:46 PM

The RAID card seems to be the problem, you say it's an ATA133 card in your first post but according to the output of lspci you have a SCSI card?
Quote:

00:09.0 SCSI storage controller: Artop Electronic Corp ATP865 (rev 02)
Subsystem: Artop Electronic Corp ATP865
We need to determine the truth here as a scsi drive will have a different /dev name to an ide drive.

MoePhish 04-09-2003 09:34 PM

Maybe your right on the windows XP device manager it says my device is "acard raid 0 hd0 SCSI Disk Device" Hope this Helps

MoePhish 04-09-2003 10:16 PM

Okay here's the deal in mandrake my device is listed as a SCSI controller, but when I went to try to find a driver for the model (acard ATP-865) it is listed as an IDE Device here's the site I went to

Click Here

Aussie 04-09-2003 11:14 PM

Ok, I found an option in the kernel for Artop support (file:/usr/src/linux-2.4.20/drivers/ide/aec62xx.c), but I don't know if your chip is supported yet, check your kernel .config file for the following, CONFIG_BLK_DEV_AEC62XX=y, if it's not set then that maybe why it's not working, if it is set then support for this chip has to be added to the kernel.

MoePhish 04-10-2003 01:50 PM

What Directory would the kernel .config file be in I can't find it in the usr/source directory, however I did find the aec62xxx.c in the dir you mentioned. Do I need to recompile the kernel if I don't find it?

James

Aussie 04-10-2003 04:38 PM

The . before .config means that it's a hidden file and you can usually find it in the top level of the kernel source, it might be in your /boot directory without the dot though, if it is it will have a similar name to your kernel. Look for a text file that starts like the folowing,
Code:

#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODVERSIONS is not set
CONFIG_KMOD=y


MoePhish 04-10-2003 07:47 PM

I found the file here are the sections that I thought it might be in:
#
# Block devices
#
CONFIG_BLK_DEV_FD=m
CONFIG_BLK_DEV_XD=m
CONFIG_PARIDE=m
CONFIG_PARIDE_PARPORT=m

#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID5=m
CONFIG_MD_MULTIPATH=m
CONFIG_BLK_DEV_LVM=m

No luck though as you can see CONFIG_BLK_DEV_AEC62XX=y is missing.

Whats Next?

James

jimmyz 04-10-2003 08:16 PM

Dual Boot with Windows and Linux
 
First, I am a Linux Newbie so if I am not even up to speed enough to appreciate the true problem please excuse my ignorance.

I just created a dual boot, dual ATA hardrive situation with Win2K and Red Hat Linux. I did alot of reading first and used these sites to set it up. Now it works clean. This entails using the Windows boot loader to load either.

Because you get Linux and not Windows is that the Master Boot Record for Windows got messed up when you installed Linux which is easy to do during the LILO installation if you install it on the MBR instead of a superpartition on your Linux drive. The sites below tell you how to fix it and how to get it working if that is your problem.


http://www.dewassoc.com/kbase/multib..._win2k_fix.htm

http://www.anandtech.com/guides/viewfaq.html?i=58

http://support.microsoft.com/default...b;en-us;311578

Again, if I am in the dark I apologize.

JZ

Aussie 04-10-2003 08:32 PM

Do "cat /usr/src/linux/.config | grep AEC62XX", this is what mine outputs,
Code:

bern@grendel bern$ cat /usr/src/linux/.config | grep AEC62XX
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_AEC62XX_TUNING is not set


MoePhish 04-12-2003 03:03 AM

Here it is:

[moephish@d172-16-74-114 moephish]$ cat /usr/src/linux/.config | grep AEC62XX
CONFIG_BLK_DEV_AEC62XX=y
CONFIG_AEC62XX_TUNING=y

It says that aec62xx is there funny?

Aussie 04-12-2003 04:45 AM

OK, the next step involves building a custom kernel, if you want to take it that far.
Here is some reading matter while you decide,

http://www.tldp.org/HOWTO/Kernel-HOWTO.html


All times are GMT -5. The time now is 05:42 PM.