forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need a partition Guy
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> The Lab
View previous topic :: View next topic  
Author Message
rjjrjl
Xandrosianling
Xandrosianling


Joined: 25 Dec 2004
Posts: 330

PostPosted: Thu Mar 15, 2007 8:19 am    Post subject: Need a partition Guy Reply with quote

On my main X4-Pro Xandros installed itself into the free space I made for it using Partition Commander. Xandros installed OK,but made itself an extended partition, and didn't disturb a 50g fat32 for storage(no windows). I then shrank the 50g to 35g to make free space for PCLinuxOS. PC then also installed itself as an EP which is the problem. ParCommander just saw a damaged partition and refused to work. After couple of days I finally copied all the files on the fat32 and ParComm let me delete that partiton,with the result that the entire HD is now Extended.
The problem is from pclinux I can read ALL my Xandros files,but Xandros Restore can find no Xandros installation to fix.
Help! TIA
rick
_________________
MacBookPro 17" & PCL-2007
Linux user 404597
Windows Free 2-7-07
Back to top
View user's profile Send private message
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Thu Mar 15, 2007 11:38 am    Post subject: Reply with quote

Quote:
The problem is from pclinux I can read ALL my Xandros files,but Xandros Restore can find no Xandros installation to fix.


There is nothing wrong with an extended partition and a bunch of logicals within except I believe that WinXP for instance may want to be on first primary..
Based on your descriptions I would think that Xandros install can't find the Original Xandros install as they HD partition number scheme may have changed making Xandros sit at a different HD partition Number.. So, restore would be looking to restore based on the original info and partition info which you have changed. There are two ways to fix this and both will risk some possible data loss.
1. Move Xandros (w/ Partition Commander back to where it was..
2. Reinstall Xandros

As long as PClinuxOS works give us some info.. as admin..in a console
type
df ......post results
fdisk -l ........post results.

Partition commander should be capable of shrinking the Extended partition to just enclose PClinuxOS leaving Xandros in a Primary ..if not you have step 2.. You could also with the info you post get the partition position of Xandros then correct the entry in the booting lilo.cong and with a /sbin/lilo write the corrected boot code to the master boot record to Allow Xandros to boot.
Also this would depend on you placing Xandros boot image to boot from it's own / dir..........

Depends on how valuable your Xandros is infowise and how your backups are as to wanting to reinstall Xandros.. But a reinstall may be faster after shrinkin the Extended and making a #1 primary for Xandros..providing you have only linux OSes to contend with.... WHew!
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
rjjrjl
Xandrosianling
Xandrosianling


Joined: 25 Dec 2004
Posts: 330

PostPosted: Thu Mar 15, 2007 3:35 pm    Post subject: Reply with quote

Thanks for quicker than expected reply! Won't be home for about 5 more hours so I'll post results later. There is no windows installed,only a fat32 for storing files between mac,xpee and Xandros.
Point 1. I'd put it back if I knew where to put it.
Point 2. Reinstalling Xandros not a problem.
My limited understanding of Xandros Restore I assumed it was looking for the boot file,not a partition space, Maybe this is not possible.
I just wanted to add this to the learning curve,so I'll keep going with your help, we can't break anything important that isn't already backed up.
rick
P.S. #3 nongeek son bought my #4 semigeek son's original mini(ppc), after getting all his ITunes transfered and verified he called me upstairs and said "GET THIS XP OUT OF MY ROOM"
Windows free since 2-7-2007
_________________
MacBookPro 17" & PCL-2007
Linux user 404597
Windows Free 2-7-07
Back to top
View user's profile Send private message
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Thu Mar 15, 2007 4:13 pm    Post subject: Reply with quote

I've never examined the particular script that processes the restore process but as a programmer It would seem that it would have to know where to restore it to. Now that info would have to be be recorded in some instructions and would likely be that of the original Install Location. Your Xandros is not at the original install location anymore. Even in a more sophisticated scenario maybe the restore could have that Location Updated after each Boot..but you would have to Reboot to pass on the new info.. That would be my most logical interpretation.

Anyway Xandros in the end has to be put somewhere which Lilo is aware of so it can be Booted...
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
rjjrjl
Xandrosianling
Xandrosianling


Joined: 25 Dec 2004
Posts: 330

PostPosted: Thu Mar 15, 2007 9:02 pm    Post subject: Reply with quote

Finally home, from root console --df
/dev/hda1 7.7G 2.4G 5.0G 32% /
/dev/hda9 13G 431M 13G 4% /home
/dev/hda6 38G 5.9G 32G 16% /mnt/hda6
/dev/hda7 49G 25G 25G 50% /mnt/win_c

From root console --fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 11407 12425 8185117+ 83 Linux
/dev/hda2 1 14593 117218241 f W95 Ext'd (LBA)
/dev/hda5 1 96 771057 82 Linux swap / Solaris
/dev/hda6 * 97 5032 39648388+ 83 Linux
/dev/hda7 5033 11406 51199123+ b W95 FAT32
/dev/hda8 12426 12934 4088511 82 Linux swap / Solaris
/dev/hda9 12935 14593 13325886 83 Linux

Partition table entries are not in disk order

These commands were made from PCLinuxOS with all partitions mounted.

hda6 should be the Xandros partition, I have no idea where Solaris came from,unless it is a PCLinuxOS assumption,or the Sun3D-Demo livecd installed something it was not supposed to,but I don't think so.
This looks like a mess,just say so and I'll give up.rick
_________________
MacBookPro 17" & PCL-2007
Linux user 404597
Windows Free 2-7-07
Back to top
View user's profile Send private message
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Thu Mar 15, 2007 9:31 pm    Post subject: Reply with quote

post
cat /etc/lilo.conf
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
rjjrjl
Xandrosianling
Xandrosianling


Joined: 25 Dec 2004
Posts: 330

PostPosted: Thu Mar 15, 2007 10:24 pm    Post subject: Reply with quote

Sorry that does not work,says file doesn't exist. However from my Xandros partition I copied
etc/lilo.conf to kate and this is what I found-
boot=/dev/hda
install=/boot/cboot.b
message=/boot/splash.lilo
timeout=300
map=/boot/map
prompt
lba32
read-only
compact
fix-table
image=/vmlinuz
label=Xandros_4_Professional
vga=791
root=/dev/hda6
initrd=/boot/initrd-2.6.18-dcc-uni.gz
append="quiet rw acpi=on resume2=swap:/dev/hda5 "
image=/vmlinuz
label=Safe_Video_Mode
vga=791
root=/dev/hda6
initrd=/boot/initrd-2.6.18-dcc-uni.gz
append="3 quiet rw acpi=on resume2=swap:/dev/hda5 "
image=/vmlinuz
label=Configure_(Expert)
vga=normal
root=/dev/hda6
initrd=/boot/initrd-2.6.18-dcc-uni.gz
append="single quiet rw acpi=on resume2=swap:/dev/hda5 noresume noresume2 nosplash=y "
image=/disks/pclinuxos/boot/vmlinuz-2.6.18.6.dev3.lgc
label=PCLinuxOS_release_2007_on_hda7
vga=788
root=/dev/hda7
initrd=/disks/pclinuxos/boot/initrd-2.6.18.6.dev3.lgc.img
append=" splash=silent"

Now I am heading for the Jack.This makes no sense.
rick
_________________
MacBookPro 17" & PCL-2007
Linux user 404597
Windows Free 2-7-07
Back to top
View user's profile Send private message
pitheris
Xandrosian
Xandrosian


Joined: 07 Mar 2006
Posts: 202
Location: USA

PostPosted: Fri Mar 16, 2007 10:20 am    Post subject: Reply with quote

rjjrjl wrote:

From root console --fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 11407 12425 8185117+ 83 Linux
/dev/hda2 1 14593 117218241 f W95 Ext'd (LBA)
/dev/hda5 1 96 771057 82 Linux swap / Solaris
/dev/hda6 * 97 5032 39648388+ 83 Linux
/dev/hda7 5033 11406 51199123+ b W95 FAT32
/dev/hda8 12426 12934 4088511 82 Linux swap / Solaris
/dev/hda9 12935 14593 13325886 83 Linux

Partition table entries are not in disk order


weird . .
Shocked
hda2 contains everything.
hda1 is located between hda7 and hda8



In PCLinuxOS, you could try editing your /boot/grub/menu.lst file and add an entry for Xandros like this:

Code:

title           Xandros_4_Professional
root            (hd0,5)
kernel          /vmlinuz root=/dev/hda6 ro
initrd          /boot/initrd-2.6.18-dcc-uni.gz
savedefault


Then when you reboot and grub starts, select Xandros
Back to top
View user's profile Send private message
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Fri Mar 16, 2007 11:04 am    Post subject: Reply with quote

pitheris got a look at this before I did and what he said can work IF PCLinuxOS uses Grub to boot. I thought it used LILO but I never looked just booted it.

You can check with ls command
ls -l /etc/lil*

Check for grub menu
ls -l /boot/grub/me*


Quote:
weird . .
Shocked
hda2 contains everything.
hda1 is located between hda7 and hda8

Seems that Partition Commander Moved the Xandros partition inside the Newly extended Extended Partition. All while keeping the same geometry.

If grub is used, and the PCLinuxOS pages do refer to lilo,, then the reccomended modification should work. If not and we determine from the above check that you have a lilo then you must similarly modify the lilo.conf or perhaps it will show to be a lilop.conf with additional code and then rewrite the lilo boot code with /sbin/lilo.. I could tell you to add a section to the found lilo config such as below to boot Xandros at /dev/hda1 which where it seems to be...........
label=Xandros_4_Professional
vga=791
root=/dev/hda1
initrd=/boot/initrd-2.6.18-dcc-uni.gz
append="quiet rw acpi=on resume2=swap:/dev/hda5 "
image=/vmlinuz


but we would want to clean the config of incorrect entries also so a copy of the PCLINUXOS boot config is important to exam. Either by you, if you comprehend it,or on the forum for a look.
So, Check that you either have a /boot/grub/menu* or a /etc/lil* as above to be certain.
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
rjjrjl
Xandrosianling
Xandrosianling


Joined: 25 Dec 2004
Posts: 330

PostPosted: Fri Mar 16, 2007 7:30 pm    Post subject: Reply with quote

Just got home,long day, PCLinux boots up Grub Loading now... So we must assume grub.
ls -l /boot/grub/me* gives
[rick@localhost ~]$ ls -l /boot/grub/me*
-rw-rw-r-- 1 root root 476 Mar 15 23:39 /boot/grub/menu.lst
-rw-r--r-- 1 root root 478 Feb 24 22:07 /boot/grub/menu.lst.old
Lilo command No Such Directory.The listed file shows,
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/usr/share/gfxboot/themes/pclinuxos/boot/message
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hda1 splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=/dev/hda1
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=/dev/hda1 failsafe
initrd (hd0,0)/boot/initrd.img
_________________
MacBookPro 17" & PCL-2007
Linux user 404597
Windows Free 2-7-07
Back to top
View user's profile Send private message
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Fri Mar 16, 2007 7:51 pm    Post subject: Reply with quote

As you will note from your fdisk read out post below that
/dev/hda1 and /dev/hda6 both have a * which indicates Bootable partition.
and your Grub menu show Booting PCLinuxOS at
rjrjl post:
Quote:
title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hda1 splash=silent vga=788


rjrjl post:
Quote:

Device Boot Start End Blocks Id System
/dev/hda1 * 11407 12425 8185117+ 83 Linux
/dev/hda2 1 14593 117218241 f W95 Ext'd (LBA)
/dev/hda5 1 96 771057 82 Linux swap / Solaris
/dev/hda6 * 97 5032 39648388+ 83 Linux
/dev/hda7 5033 11406 51199123+ b W95 FAT32
/dev/hda8 12426 12934 4088511 82 Linux swap / Solaris
/dev/hda9 12935 14593 13325886 83 Linux

..........SO I would modify as per the Grub menu change posted by Pitheras

Code:
title           Xandros_4_Professional
root            (hd0,5)
kernel          /vmlinuz root=/dev/hda6 ro
initrd          /boot/initrd-2.6.18-dcc-uni.gz
savedefault


Add as a last entry to /boot/grub/menu.lst Make changes as admin ..not user
Post back
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
rjjrjl
Xandrosianling
Xandrosianling


Joined: 25 Dec 2004
Posts: 330

PostPosted: Fri Mar 16, 2007 8:08 pm    Post subject: Reply with quote

pitheris,
I tried your grub but I get a kernel panic,lot on the screen hope this is relevant, Cannot open hda6,recognizes hda1 hda2 )hda5~6,7,8,9, Resume2 parameter missing Please correct and rerun lilo before suspending.
rick
_________________
MacBookPro 17" & PCL-2007
Linux user 404597
Windows Free 2-7-07
Back to top
View user's profile Send private message
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Fri Mar 16, 2007 8:45 pm    Post subject: Reply with quote

Yeah what is happening is that grub is you First Boot loader but Xandros still needs a Boot loader and that is LILO ..
Previously Xandros was the first install and LILO was installed to the MBR as the LILO code and only Booter. The you installed PClinuxOS which then Replace LILO. However the Xandros lilop.conf still is configured to believe that is installed as #1 at the MBR.. so in Xandros /etc/lilop.conf change
as admin
boot=/dev/hda
to
boot=/dev/hda6

Now I noted that you have a lilo.conf that is because ver 4 has both lilo.conf and lilop.conf but change /etc/lilop.conf because I believe that is the one Xandros uses..
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Fri Mar 16, 2007 9:14 pm    Post subject: Reply with quote

One more item that I may be forgetting..but I am unsure by memory.

If you change the lilop.conf I am thinking that you may have to rewrite the map.
I don't know if lilo will be satisfied with just the lilop.conf changed..
but try it first..
If it doesn't boot then to rewrite the code to map you would have to use a rescue/live disk CD I believe your Xandros CD will let you enter Expert mode (a console at boot) and then su to admin mode... Then cd /sbin and run /sbin/lilo
to rewrite the code which should write by instructions to the line in the lilop.conf
which is boot sector at
boot=/dev/hda6

but as I can't remember try with just the lilop.conf change saved as admin first.

Post back
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
sqlpython
Xanalandingdonger


Joined: 22 Sep 2005
Posts: 5040
Location: Ct. USA

PostPosted: Fri Mar 16, 2007 9:18 pm    Post subject: Reply with quote

Another memory strikes me also...Gotta collect my thoughts.. Smile

Back in 2000 and before you could not make lilo boot from a logical boot partition. I think that is corrected but someone else may remember..
Now as your Xandros boot is in a extended Partition and is a logical boot ..since you adjusted to that spot with Partition Commander.. that may still be an issue that will have to be adjusted.. let's see.
_________________

Criticism only accepted for Solutions that work. ;^)
RevLinux, Debian Squeeze"
Kubuntu 10.04 & 10.10
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> The Lab All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group