LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2007, 04:51 AM   #1
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Rep: Reputation: 15
Partition Problems


Ok i partitioned my HD with Paragon Partition Manager and also Acronis Disk Director.
But when i boot Fedora it says i have an invalid partition table then something about i will lose all data, if i try custom layout it doesn't see the HD.

Paragon Partion Manager shows as the drive being invalid

http://img152.imageshack.us/img152/60/desktop1xv2.jpg

And Acronis shows the drive as ok

http://img409.imageshack.us/my.php?i...esktop2tz5.jpg

I can access the NTFS part of the drive in windows with no problems.

I need to keep that part as it has files on.
Drive D hosts my XP.

So i tried unpluging my XP drive and Fedora did the same it says i have an invalid partition table then something about i will lose all data, if i try custom layout it doesn't see the HD.

I also don't unsterstand why the 1st 2 linux partions are primary partitions..

Thanx for any help......

Last edited by tcrew; 01-14-2007 at 04:53 AM.
 
Old 01-14-2007, 06:10 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you let

(1) XP's Disk management
(2) Paragon Partion Manager
(3) Acronis Disk Director
(4) Fedora's own partitioning tools

To mess around the same partition table then that is the consequence.

You should stick to just one because they are incompatible with each other. A fix by one is a poison to the other.

When the situation gets more serious some of these partitioning tools will refuse to have anything to do with it and you will be in a hopesless situation.

It is a mess at the moment because

(1) It is a PC standard that the number of prinaries and extended partition is always 4. An extended partition must come at the expense of giving up one primary.

(2) All logical partitions must be in a continuous chain.

Only you would know what the partitions are for and you should use the original tool to delete the partitions the violate the PC standard.
 
Old 01-14-2007, 06:39 AM   #3
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Yeh i used Paragon at 1st and this resized the drive with no problems leaving me with the rest, i then wanted to create 6 linux partitions and 1 swap partition, paragon only let me create 2 primary partitions, and it wouldn't let me create anymore.

So i used Acronis partition manager to create the rest of them which are logical partitions.

What i still can't understand though is i can still see and view/use my NTFS part which is supposed to be invalid..?
 
Old 01-14-2007, 07:04 AM   #4
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Ok should there be 1 primary partition and the rest should be in the extended partition as logical drives.

So i Got:
Primary NTFS: WinXP
Primary NTFS: Drivers (i have this for new XP installs)
Primary Ext3: Want to install Fedora here
Extended:
Logical Ext3: Want to install ManDriva here
Logical Ext3: Want to install SuSe here
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)
Logical Swap:

Mmm it's all confusing to me, lol i wouldn't mind i've been using PC's for 10 years and am a level 2 c++ programmer. But i never have done this before, i have had 3-4 os's on a pc before but all have been either Fat or ntfs.
 
Old 01-14-2007, 07:23 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
The position of the partitions also matter to XP and it doesn't like to have unallocated space around it think it may be a virus attacking the partition table.

Your partition table in Post #4 is OK as long as the logical partitions are continuous.

Here is an example of how far one can get with a Pata (63 partitions)or a Sata (15 partitions). I would use Linux's tools for partitioning work as Linux can recognise over 100 partition types and therefore can handle them better.

It is a good idea to have the partitions created first before installing systems inside. For ease of booting, maintenance, resizing, migration and preservation of your work I recommend one partitition per system. In every LInux if you give a single partition to mount its root ("/") the installer will put everything as subdirectories under it. The same arrangement works for Solaris and all BSD systems too, although most of them need a primary partition for residence and subdivide the partition into sub-slices. One swap is good enough for 100+ Linux but Ubix systems has own swap inside the partition.
 
Old 01-14-2007, 08:16 AM   #6
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Ok thanx for all your help, i now have Fedora running.

Primary NTFS: WinXP
Primary NTFS: Drivers (i have this for new XP installs)
Primary Ext3: FEDORA NOW RUNNING HERE
Extended:
Logical Ext3: Want to install ManDriva here
Logical Ext3: Want to install SuSe here
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)
Logical Swap:

The Grub menu from Fedora works and i can select WinXP or Fedora.

If i now install Mandriva on another partition will GRUB automatically pick that up...?
 
Old 01-14-2007, 08:30 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
No.

What you can do is to edit Fedora's /boot/grub/menu.lst to put the following entries in
Code:
Title Mandriva to be installed in hda5
root (hd0,4)
chainloader +1

Title Suse to be installed in hda6
root (hd0,5)
chainloader +1

Title Empty @ hda7
root (hd0,6)
chainloader +1

Title Empty @ hda8
root (hd0,7)
chainloader +1

Title Empty @ hda9
root (hd0,8)
chainloader +1
Thereafter in every Linux you install "instruct" the installer to place its boot loader inside the root partition. You will find an empty partition can boot it instantly once it is filled.

You should know by now Grub counts from zero.
 
Old 01-14-2007, 08:37 AM   #8
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Again thankyou for taking the time to explain things to me..... i really appreciate it alot.
I'm sure after a while of messing sround with things i will pick it all up..

What do i edit the menu.lst with as it won't open with a text editor.... Do i have to edit it from a console like the root..?

Last edited by tcrew; 01-14-2007 at 08:40 AM.
 
Old 01-14-2007, 08:58 AM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
For a bomb proof go-anywhere command
Code:
sudo vi /boot/grub/menu.lst
If you need a GUI editor you can do so in Fedora by
Code:
sudo gedit /boot/grub/menu.lst
Omit "sudo" if you log in as root.
 
Old 01-14-2007, 08:59 AM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by tcrew
What do i edit the menu.lst with as it won't open with a text editor.... Do i have to edit it from a console like the root..?
Because access is restricted to the root user, it is often easiest to edit configuration files from a console.
open a console (terminal)
su to become root
nano /boot/grub/menu.lst

(nano is a common editor that runs in a terminal--you can substitute any editor--including GUI--eg gedit, kedit, etc.)
 
Old 01-14-2007, 09:10 AM   #11
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Ok here's what i got.

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd1,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd1,2)
kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=LINUX rhgb quiet
initrd /boot/initrd-2.6.18-1.2798.fc6.img
title WinXP
rootnoverify (hd0,0)
chainloader +1
Title Mandriva to be installed in hda5
root (hd1,3)
chainloader +1
Title Suse to be installed in hda6
root (hd1,4)
chainloader +1
Title Empty @ hda7
root (hd1,5)
chainloader +1
Title Empty @ hda8
root (hd1,6)
chainloader +1
Title Empty @ hda9
root (hd1,7)
chainloader +1

I will try that and see what happens.

Thanx for the info..
 
Old 01-14-2007, 09:43 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Think you got it wrong.

Although I haven't seen you partitioning scheme, which you can post it here by the output of "fdisk-l", a logical partition always starts from the 5th position as the first 4 are reserved for the primaries (or 3 primaries + 1 extended).

Thus if your Post #6 is correct then Mandriva would be in hda5. Since Grub counts from zero so the 5th partition of the 1st disk would be known as (hd0,4).

Take a look at my original information in Post #7 and learn the Grub convention relative to Linux.
 
Old 01-14-2007, 11:07 AM   #13
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Your right it didn't work... i could boot linux but not xp it was looking on the wrong drive..

I just presumed as fedora was root (hd1,2) that the others would follow as they are on the same drive. eg. root (hd1,3),root (hd1,4) etc. And with XP being on (hd0,0) as that is a seperate H/D i thought that 0,2 etc would mean the same drive as XP and my Linux partitions are on the same drive as fedora. the way the drive is partitioned is as follows.

HardDrive:
Primary NTFS: WinXP (This is on it's own drive only 1 partition)(hd0,0)

HardDrive:
Primary NTFS: Drivers (i have this for new XP installs)
Primary NTFS: Storage (This holds my download etc for XP)(This drive also hosts Vista)
Primary Ext3: FEDORA NOW RUNNING HERE(hd1,2)

Extended:
Logical Ext3: Want to install ManDriva here
Logical Ext3: Want to install SuSe here
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)
Logical Swap:

Last edited by tcrew; 01-14-2007 at 11:14 AM.
 
Old 01-14-2007, 11:36 AM   #14
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You should try to boot the system manually in a Grub prompt.

The Grub prompt is available to you by pressing "c" key as soon as the Grub screen appears.

First check to see if (hd0) is as you expected by command
Code:
geometry (hd0)
geometry (hd1)
If the information reported in Post #13 is accurate then you two XP can be booted as follow

1st one
Code:
root (hd0,0)
makeactive
chainloader +1
For the 2nd XP in (hd1,0) I need to know how it was installed as you may need to hide the first one and swap the disk order if you disconnected the first disk when installing XP to the 2nd disk.

Confirm what problem you have now.

-----------------
Type help at Grub prompt to see what commands you can run.

From Grub prompt revert back to the original Grub screen
Code:
root (hd0)
chainloader +1

Last edited by saikee; 01-14-2007 at 11:38 AM.
 
Old 01-14-2007, 02:07 PM   #15
tcrew
Member
 
Registered: Jan 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Win xp was installed 1st ages ago, then vista was installed about 4 weeks ago, when i choose XP from the grub menu i get the normal Microsoft os select screen. this isn't a problem i am fine with that.

It's this bit of the menu i can get working.

Extended:
Logical Ext3: Want to install ManDriva here
Logical Ext3: Want to install SuSe here
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)
Logical Ext3: Free for further Linux Installs (Testing)

Shouldn't they be all on hd1...? i will look at the grub promt like you said.
 
  


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
Partition Problems: Bad primary partition 1: logical partitions overlap rovitotv Slackware 6 01-08-2006 06:55 PM
Partition problems Olle Linux - Newbie 12 06-02-2004 09:09 AM
Partition problems geniarse Linux - Hardware 9 05-06-2004 07:30 PM
Partition Problems... WillBender Linux - Newbie 11 02-21-2004 02:55 PM
help! partition problems! Aman9090 Linux - Newbie 1 09-20-2002 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration