LinuxQuestions.org
Help answer threads with 0 replies.
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 03-01-2005, 06:38 PM   #16
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15

oot@ubuntu:/home/boots # mount -t ext2 /dev/hda4 /mnt/xandros
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
root@ubuntu:/home/boots # mount -t jfs /dev/hda4 /mnt/xandros
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)

this is what I received. I did the first one then remembered that Xandros by defaul mounts reiserFS. ( I think that name is correct) Sorry noob. I'm guessing I need to replace the ext2 or jfs with one for the reiserFS. What would that be?

Thanks
 
Old 03-01-2005, 06:47 PM   #17
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
and this

root@ubuntu:/home/boots # mount -t reiserfs /dev/hda4 /mnt/xandros
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
 
Old 03-01-2005, 06:54 PM   #18
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Run the command: fdisk -l /dev/hda and post the results back please.
 
Old 03-01-2005, 07:03 PM   #19
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
woot, ok I'm in, it was hda5. hda4 is split into hda5 and hda6. Sorry, brain fart, noobb style. :}
Ok now that im in how can i find the kernel info? I'm soo close guys sorry for being a pain.
 
Old 03-01-2005, 07:06 PM   #20
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
I found a file in the boot folder that contains a file : vmlinuz-2.6.9-x1.... but that doesn't look right.
 
Old 03-01-2005, 07:38 PM   #21
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
Ok, it is Kernel 2.6.9-x1. I coppied what you guys told me to copy. And made the changes. But when i try to boot into Xandros it gives me an Error 15: says it cant "locate" /boot/initrd.img-269-x1. But it is there I'm looking at it with xandros mounted. What gives? What did I do wrong now? Thought I was there.
 
Old 03-01-2005, 07:54 PM   #22
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
title Ubuntu, kernel 2.6.8.1-5-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.8.1-5-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.8.1-5-386
savedefault
boot

title Ubuntu, kernel 2.6.8.1-5-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8.1-5-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.8.1-5-386
savedefault
boot

title Ubuntu, kernel 2.6.8.1-3-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.8.1-3-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.8.1-3-386
savedefault
boot

title Ubuntu, kernel 2.6.8.1-3-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8.1-3-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.8.1-3-386
savedefault
boot

title Xandros, kernel 2.6.9-x1
root (hd0,4)
kernel /boot/vmlinuz-2.6.9-x1 root=/dev/hda5 ro quiet splash
initrd /boot/initrd.img-2.6.9-x1
savedefault
boot


title Memory test
root (hd0,0)
kernel /boot/memtest86+.bin

That is what I have in my menu.lst.
hda4 is split into hda5 ( xandros / ) and hda6 (xandros /home)

the image file is there and is named exactly that except it has a .gz extension. I'm obviously missing something, im an idiot i guess.

Can someone help me finish this off? please
 
Old 03-01-2005, 08:04 PM   #23
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
I just ran into this problem yesterday so you may be in luck.
While in Ubuntu, mount the xandros system and chroot into it. then run the command: rdev to see what it thinks you should call the xandros root.

Do these commands.
mkdir /mnt/test
mount /dev/hda5 /mnt/test
chroot /mnt/test
rdev
exit

Post the results of rdev and put that info in your grub.conf
kernel /boot/vmlinuz-2.6.9-x1 root= ###put output of rdev here ###


title Xandros, kernel 2.6.9-x1
root (hd0,4)
kernel /boot/vmlinuz-2.6.9-x1 root=??????????
initrd /boot/initrd.img-2.6.9-x1
 
Old 03-01-2005, 08:25 PM   #24
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
This is what I get and entering it didn't work.

root@ubuntu:/home/boots # mkdir /mnt/test
mkdir: cannot create directory `/mnt/test': File exists
root@ubuntu:/home/boots # mount /dev/hda5 /mnt/test
root@ubuntu:/home/boots # chroot /mnt/test
ubuntu:/# rdev
0x0305 /
ubuntu:/#





Also, i ran fdisk and got this....

root@ubuntu:/home/boots # fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 20318 10240240+ 83 Linux
/dev/hda2 20319 40635 10239768 83 Linux
/dev/hda3 40636 42667 1024128 83 Linux
/dev/hda4 42668 77545 17578512 f W95 Ext'd (LBA)
/dev/hda5 42668 58921 8191984+ 83 Linux
/dev/hda6 58922 77545 9386464+ 83 Linux
root@ubuntu:/home/boots #


maybe that will offer more info.

Thanks again everyone. I'm soo close i can smell it.

Last edited by zeroz52; 03-01-2005 at 08:28 PM.
 
Old 03-01-2005, 08:43 PM   #25
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Quote:
ubuntu:/# rdev
0x0305 /
That's exactly what I ran into yesterday! put the number into your menu.lst / grub.conf.....

Code:
title Xandros, kernel 2.6.9-x1
root (hd0,4)
	kernel /boot/vmlinuz-2.6.9-x1 root=0x0305 rw acpi=on
	initrd /boot/initrd-2.6.9-x1.gz
Edit: I just noticed that you didn't have gz at the end of the initrd

Last edited by homey; 03-01-2005 at 09:16 PM.
 
Old 03-02-2005, 01:18 AM   #26
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
depending on what filesystem xandros uses by default you'll need to type:
mount -t reiserfs /dev/hda4 /mnt/xandros

if that doesn't work try changing reiserfs to ext2,ext3 or....i cant think of any more worth mentioning, but only 'cos i don't use anything else.
 
Old 03-02-2005, 08:11 AM   #27
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
So you do need the .gz extension then? Cause this is the part that seems to give me an error 15 when trying to boot into xandros:

initrd /boot/initrd-2.6.9-x1.gz

but I don't have the gz on there. I will give that a try, and let you guys all know how it goes. Think I'm going to do a short lil write up on how to do this, since I know all the commands now by heart. Cross your fingers....
 
Old 03-02-2005, 12:58 PM   #28
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
yeah, and the kernel-2.6.9.... if there is one.
if xandros used grub then just copy everything from /mnt/xandros/boot/grub/grub.conf and paste it into ubuntu's /boot/grub/grub.conf.
 
  


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
Edit the Grub.conf reply2vinay Linux - Hardware 1 07-26-2005 09:38 AM
I cannot edit grub.conf file!! Azzath Linux - Software 3 03-23-2005 02:00 PM
[SOLVED] How to edit grub.conf filosophem Red Hat 4 02-07-2004 03:04 AM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 12:33 AM
Edit grub.conf NoviceW Linux - General 1 11-11-2003 05:51 PM


All times are GMT -5. The time now is 11:50 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