LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Software raid0 & grub (http://www.linuxquestions.org/questions/linux-general-1/software-raid0-and-grub-524686/)

Braveheart1980 02-01-2007 11:09 AM

Software raid0 & grub
 
I'd like some help about a software raid I have
Here is the situation

I have 4 drives

(1) 2x74 gb raptors set up for raid 0
On these I have 2 patitions : one for winxp and another partition for games(both ntfs)

(2) A 320 gb sata containing media files(ntfs)

(3)A 320 gb sata containg the linux partitions (swap,boot and root) and a ntfs partition.On this drive I have installed grub and everything works fine

So to boot gentoo I go into bios set the (3)hard disk as firts boot device and everything works great
If i wanna boot to winxp I go again into bios set the (1) hard disk as first boot device and it works great

The reason I did all these is that I was afraid of ruining my raid0

But now I have emerged dmraid and I can see and mount my raid0 partitions with no problem at all

So what I want to know is if I can set up grub(which is in drive (3) ) to have a selection of booting to windows xp partition in raid0

Braveheart1980 02-01-2007 11:59 AM

Maybe i found the problem

Look at this

Code:

localhost anakin # fdisk -l

Disk /dev/sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0x67c9 of partition table 5 will be corrected by w(rite)

Disk /dev/sdb: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        2669    21438711    7  HPFS/NTFS
/dev/sdb2            2670      18079  123780825    5  Extended
/dev/sdb5  ?      193420      183612  2068704212  c4  DRDOS/sec (FAT-16 < 32M)

Disk /dev/sdc: 320.0 GB, 320072933376 bytes
16 heads, 63 sectors/track, 620181 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdc1              1      620181  312571192+  7  HPFS/NTFS
/dev/sdc4  *          1          1          0    0  Empty
Partition 4 does not end on cylinder boundary.

Disk /dev/sdd: 320.0 GB, 320072933376 bytes
16 heads, 63 sectors/track, 620181 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdd1              1          63      31720+  83  Linux
/dev/sdd2              64        1056      500472  82  Linux swap / Solaris
/dev/sdd3  *      63898      620181  280367136    5  Extended
/dev/sdd4            1057      63897    31671864  83  Linux
/dev/sdd5          63898      620181  280367104+  7  HPFS/NTFS

Partition table entries are not in disk order

/dev/sda and /dev/sdb are the two 74gb raptors wroking at a raid0,but i c many errors about /dev/sda
Is this ok?

[update]

Code:

fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 9039.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System

Command (m for help): q

Any ideas what I should do???

china_blue 09-09-2007 10:46 PM

Quote:

Originally Posted by Braveheart1980 (Post 2611820)
Maybe i found the problem

Look at this

Code:

localhost anakin # fdisk -l

Disk /dev/sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0x67c9 of partition table 5 will be corrected by w(rite)

Disk /dev/sdb: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        2669    21438711    7  HPFS/NTFS
/dev/sdb2            2670      18079  123780825    5  Extended
/dev/sdb5  ?      193420      183612  2068704212  c4  DRDOS/sec (FAT-16 < 32M)

Disk /dev/sdc: 320.0 GB, 320072933376 bytes
16 heads, 63 sectors/track, 620181 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdc1              1      620181  312571192+  7  HPFS/NTFS
/dev/sdc4  *          1          1          0    0  Empty
Partition 4 does not end on cylinder boundary.

Disk /dev/sdd: 320.0 GB, 320072933376 bytes
16 heads, 63 sectors/track, 620181 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdd1              1          63      31720+  83  Linux
/dev/sdd2              64        1056      500472  82  Linux swap / Solaris
/dev/sdd3  *      63898      620181  280367136    5  Extended
/dev/sdd4            1057      63897    31671864  83  Linux
/dev/sdd5          63898      620181  280367104+  7  HPFS/NTFS

Partition table entries are not in disk order

/dev/sda and /dev/sdb are the two 74gb raptors wroking at a raid0,but i c many errors about /dev/sda
Is this ok?

[update]

Code:

fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 9039.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System

Command (m for help): q

Any ideas what I should do???

please try


[root@bl]# cd /dev/mapper
[root@bl]# ls
control nvidia_eahdcdbbp11 nvidia_eahdcdbbp6 VolGroup00-LogVol00
nvidia_eahdcdbb nvidia_eahdcdbbp12 nvidia_eahdcdbbp7 VolGroup00-LogVol01
nvidia_eahdcdbbp1 nvidia_eahdcdbbp2 nvidia_eahdcdbbp8
nvidia_eahdcdbbp10 nvidia_eahdcdbbp5 nvidia_eahdcdbbp9
[root@bl]# gedit /etc/fstab
/dev/mapper/nvidia_eahdcdbbp1 /mnt/03server ntfs iocharset=utf8,umask=0 0 0
[root@bl]# mount -a

-------------------------
from:http://bbs.3qit.com/thread-53060-1-1.html


All times are GMT -5. The time now is 04:55 AM.