LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-11-2005, 06:37 AM   #16
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled

Try "/sbin/fdisk -l" (without the quotes).
 
Old 09-11-2005, 11:26 AM   #17
muddywaters
Member
 
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Rep: Reputation: 30
The
fdisk -l
command does not work without first using the
su
command.
 
Old 09-11-2005, 11:30 AM   #18
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally posted by muddywaters
The
fdisk -l
command does not work without first using the
su
command.
You can use as a normal user if you specify the whole path.
 
Old 09-11-2005, 12:24 PM   #19
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
You'll need to become root in order to use fdisk. Enter 'su -' at the console, type in the root password, and then run 'fdisk -l'. The others are right, there are easier ways to install dual boot, I accidentally pointed you to the wrong tutorial. Basically, if your windows install is on /dev/hda1, you need to add:
Code:
rootnoverify(hd0,0)
chainloader +1
To your grub configuration, which should be in /boot.
 
Old 09-11-2005, 05:04 PM   #20
realnightfox
LQ Newbie
 
Registered: Sep 2005
Location: Australia
Distribution: RED HAT!!!!!!
Posts: 21

Original Poster
Rep: Reputation: 15
Ok, it worked the fdisk -l, this is the output...

http://img317.imageshack.us/img317/8...enshot25ua.png
 
Old 09-11-2005, 05:10 PM   #21
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
Nylex: Happy birthday! Running fdisk -l as a normal user will still not work unless you have read access to the raw devices. Just a comment.

realnightfox: The directions I posted above about rootnoverify(hd0,0) and chainloader +1 fit with your partitioning scheme, unless the NTFS partition on drive b is your main XP install, in which case the line would be 'rootnoverify(hd1,0)'.
 
Old 09-11-2005, 05:27 PM   #22
realnightfox
LQ Newbie
 
Registered: Sep 2005
Location: Australia
Distribution: RED HAT!!!!!!
Posts: 21

Original Poster
Rep: Reputation: 15
COOL! What do i open grub.conf in? and also my xp partition is hda2...
 
Old 09-11-2005, 05:30 PM   #23
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
According to the screenshot, your XP partition is either /dev/hda1, or /dev/hdb1. Linux is hda2.

You can edit your grub configuration through nano or pico, whichever you have installed, from that root console. You may need to re-run grub-install afterwards.
 
Old 09-11-2005, 05:42 PM   #24
realnightfox
LQ Newbie
 
Registered: Sep 2005
Location: Australia
Distribution: RED HAT!!!!!!
Posts: 21

Original Poster
Rep: Reputation: 15
It is hda2 becuz i set xp to have 26gb of space... and hda2 has that much.

Also i meant what program, becuz the file has this big red cross thing.....
 
Old 09-11-2005, 05:46 PM   #25
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
You can edit it using nano or pico, as I stated before. And hda2 is a Linux partition.
 
Old 09-11-2005, 05:56 PM   #26
realnightfox
LQ Newbie
 
Registered: Sep 2005
Location: Australia
Distribution: RED HAT!!!!!!
Posts: 21

Original Poster
Rep: Reputation: 15
wtf... that means hda3 is xp? And i dont have nano or pico....
 
Old 09-11-2005, 06:03 PM   #27
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
Either hda1 or hdb1 is XP. Look at the screenshot you posted. NTFS is under hda1 and hdb1.

No nano and no pico? Well, there's always vi...
 
Old 09-11-2005, 06:28 PM   #28
su_fu_ninja
LQ Newbie
 
Registered: Sep 2005
Location: Texas
Distribution: Red Hat Enterprise 4 & SuSE 10.1
Posts: 6

Rep: Reputation: 0
The easiest way to fix your problem in my opinion is to reinstall Rh9 . It will ask you if you want to remove all linux partitions say yes and some time during the install it will ask you about where to put the GRUB boot loader. Put it in the Master Boot Record(MBR) and It should recognise WinXP as DOS. You can rename it if yu want but the main thing is to make sure its there.

I hope this was some help. I'm new myself but dont give up an Linux just becuse of a bootloader problem. Linux and the like have much more to offer to the user who is willing to learn.
 
Old 09-11-2005, 06:43 PM   #29
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,506

Rep: Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388Reputation: 2388
Having gotten yourself into this mess .. .. here is the big-picture of how to get back out.

Let us assume for the moment that you did successfully repartition the drive. It looks like you actually have two drives in the machine: hda and hdb. Each number means a partition: /dev/hda1 is the first partition and so-on. (Notice that grub counts them from zero.... la differencia es muy importante!)

If you want to blast-away Linux and forget that you ever saw it, the XP loader can probably figure that out... just reinstall XP.

Otherwise, the most probable problem will be found with the boot-loader, which is grub. Grub must be installed in the master boot record, or MBR. Grub works off of entries in a file called /boot/grub/grub.conf which provide the menu that you first see when you start your machine.

This being the section, let's review exactly what that means.

When you first start the computer, the built-in BIOS runs the show first. It checks memory and so-on, then starts to boot the machine. To do that, it looks for disk drives that are "bootable," which means that they have a valid MBR as the first blocks on the disk. The BIOS loads the MBR and executes it. And what the MBR does is to load the boot-loader, grub. Grub does a few more checks and displays a menu... which it determines from reading grub.conf.

You should be seeing a menu that offers you a choice of Linux or Windows-XP. If you don't see that, then Grub is not getting started. If you see "no boot device found," it means the MBR is not found. And if you see a tangle of digital debris instead of a menu, it probably means that XP's SBL (stoopid boot loader ) is trying to run. First question is, "which one of the three?"

If you get the menu... can you, or can you not, boot Linux? If a message whizzes by about "starting Linux," or in fact if any messages "whiz by," then you probably can. (If you get "kernel panic" and a sudden stop, well, you can fix that, but at least grub is working.)

If you get this far, can you .. or can you not .. boot XP? Obviously not, but how does it fail?

Probably the most common cause of failure, including kernel-panics, is that the operating system (OS) cannot find itself. OS's start-up in stages. After grub finds Linux and starts it, for instance, several things happen to get to the main startup, of a process called init. Kernel-panics usually have to do with the inability to find init. And XP startup-failures usually happen for the same reason.

The grub.conf file has many parameters which tell it how to boot operating-systems. In the case of XP, we actually load XP's SBL (stoopid boot-loader) and it does whatever it's supposed to do. There are about 413,000 hits to my Google search on grub "windows xp" so I'm not going to repeat those here.

Maybe this little explanation will get your feet back on the ground. It's a tough way to get started with Linux and I sincerely hope that you did not, and do not, "blast it to smithereens" to get back to what you're used-to. Do you happen to have another computer, say in your closet, that you can set-up and use to learn Linux?

Last edited by sundialsvcs; 09-11-2005 at 06:45 PM.
 
Old 09-12-2005, 04:27 AM   #30
realnightfox
LQ Newbie
 
Registered: Sep 2005
Location: Australia
Distribution: RED HAT!!!!!!
Posts: 21

Original Poster
Rep: Reputation: 15
XP is hda3.... But it is ext3 for some reason... And linux is hda1 ntfs..
 
  


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
Problems With Dual Boot / Dual Drive Setup Norab Linux - Hardware 1 08-07-2005 10:15 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 02:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 06:04 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 11:11 AM
Newbie needs Mandrake/Win98 dual-HD, dual boot system design help... buddha Linux - Newbie 20 09-04-2003 09:57 PM


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