LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2003, 10:43 AM   #1
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Rep: Reputation: 0
RH8/XP dual boot problem ('I fail to run the "fdisk -l" command' earlier)


I log in as root, go to /sbin... when type "man fdisk" it prints out the info, but typing "fdisk" or "fdisk -l" just produces an error message - command not found. What should I do?

Last edited by soulfly; 09-23-2003 at 07:53 AM.
 
Old 09-21-2003, 11:15 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
That indicates that /sbin isn't in your default path. Add it to your path and all will be good...

If you run /sbin/fdisk -l does it work?
 
Old 09-21-2003, 11:33 AM   #3
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Oh yeah it does.
Does this apply to running any program from root?
Also, could you tell me this as well. It prints out this:
************
Disk /dev/hdd: 255 heads, 63 sectors, 1247 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 1 1247 10016496 c Win95 FAT32 (LBA)
/dev/hdd2 * 1 1 0 0 Empty
Partition 2 does not end on cylinder boundary:
phys=(0, 0, 0) should be (0, 254, 63)

Disk /dev/hda: 255 heads, 63 sectors, 4982 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1020 8193118+ 83 Linux
/dev/hda2 1021 4982 31824765 f Win95 Ext'd (LBA)
/dev/hda4 * 1 1 0 0 Empty
Partition 4 does not end on cylinder boundary:
phys=(0, 0, 0) should be (0, 254, 63)
/dev/hda5 1021 4982 31824733+ b Win95 FAT32
*********
My grub.conf file:

# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.18-14.img
title Main XP
rootnoverify (hd0,4)
chainloader +1
********
How should I edit it (grub.conf) in order to boot Windows XP successfully?
 
Old 09-21-2003, 11:54 AM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I am a litlle confused with you output of fdisk -l. Do you have 2 harddrives?
 
Old 09-21-2003, 12:07 PM   #5
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Linux and Windows XP are on separate partitions of the same hard disk; there is another hdd used for documents, for Win.
 
Old 09-21-2003, 12:50 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
If I'm seeing it correctly, you have windows on /dev/hda5 which is not a primary partition. AFAIK, Windows must be on a primary partition, preferrably on the first primiary partition, to be able to boot. You might have to reinstall it...
 
Old 09-22-2003, 08:06 AM   #7
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
You mean primary in sense like the linux partition is primary (hda1), and the WinXP is secondary (hda2 - extended to hda5) although the hard disk they're on is Primary Slave? You're saying XP should be on hda1? Isn't Linux supposed to be that? Are you sure there is absolutely no way I can work things out from this state?
On the other hand, I can't reinstall windows - I've got important stuff there. If I ran fixmbr and then formatted the partition linux is on, would XP boot anyway? Cuz there used to be Win98 on that (linux) partition, and so the pc used to be a dual boot of 98 and xp.
 
Old 09-22-2003, 09:00 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Win98 needs to be on a primary partition but XP does not. Is 98 on hdd1?

Besides have partition problems on both disks was XP installed on hda1? So how many partitions did you have on hda1 before you installed linux?

And how did you install RH. Did you use a default auto partiton on empty space?
 
Old 09-22-2003, 11:07 AM   #9
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
No, 98 was where Linux is now. hdd1 (10GB) is for windows - documents etc.
hda1 (linux) and hda2 - hda5 (XP) are two partitions of another hard disk. It was so before & after installing linux. I didn't create partitions for swap and boot. I didn't use auto partition, just told it to format the partition where 98 used to be until then and install RH there.
 
Old 09-22-2003, 11:20 AM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
XP was always on a non-primary partition?

What actually happens when you try to boot XP? Any error messages?

One thing that bothers me about your output of fdisk is that you have /dev/hda4 which is
- marked primary and
- has no size and
- seems to overlap with /dev/hda1 (same start sector).
I don't know if this is relevant though or if this is normal for RH.
 
Old 09-23-2003, 07:47 AM   #11
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Correction (sorry) - hda1-5 are on a hard disk set up as primary master. It's probably irrelevant though.
Yes, XP was on a partition marked "D:\" in windows, loading from a boot loader which was, hopefully I'm not wrong, on "C:\", where 98 was, and where linux is now. I believe that makes it a non-primary, right?
I've heard XP loader must be on a primary partition, so according to that I've kind of killed it - and, in case that is true, what are the options?
I've tried all the numbers in the rootnoverify line, and I either get the error "no such partition" or invalid device slected"...
 
Old 09-23-2003, 07:50 AM   #12
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
And, ah, there is no sign of that misterious hda4 in HW Browser... if it shouldn't exist (?) how can it be deleted?

I've also changed the thread title.
 
Old 09-23-2003, 08:10 AM   #13
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
I've just put the 'map (hd0) (hd1) / map (hd1) (hd0)' bit above the rootnoverify and rebooted. It's an error, but is says "NTLDR no found, press any key...". I know it practically means I can't boot into XP, but does it also mean I've finally pointed it to the right way?
So is formatting and reinstalling the only solution?
 
Old 09-23-2003, 10:45 AM   #14
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
seems like you're on the right direction. Maybe this is somewhat useful:

http://www.webopedia.com/TERM/N/NTLDR.html
 
Old 09-23-2003, 02:38 PM   #15
soulfly
LQ Newbie
 
Registered: Sep 2003
Location: Serbia
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Do I have to format the linux partition to FAT, and then do the "sys c:" and "fixboot" thing?
 
  


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
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 10:33 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
How can you change the default setting for the "Run Command" program? whited Linux - General 6 03-01-2005 12:34 AM
Help,I can't find my USB mouse when I run "kudzu" command in RH9. aeolus Red Hat 0 03-27-2004 10:14 PM
Cpu "hlt" command and Mandrake 9.2 RC2, how do I get my laptop to run cooler? adamis Mandriva 2 10-26-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:12 AM.

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