LinuxQuestions.org
Review your favorite Linux distribution.
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 12-19-2004, 05:47 PM   #1
jayboogie
LQ Newbie
 
Registered: Dec 2004
Location: NH USA
Distribution: RHEL3
Posts: 6

Rep: Reputation: 0
here lies a challenge!!!!


I am an ass....I have dual boot on a 30GB....Dell utils on partition 1. XP on part. 2, and linux on part 3, linux swap on partition 4. last night i shrank down the xp part. to make room for linux and then installed RH on the 3rd and 4th parts(new) and failed to make a boot part....so grub boots and only gives me the option to boot into linux. I do not have an XP rescue(thats the really dumb part) and now i need to get into windows for a driver for my wireless, not to mention my GF is gonna kill me because she has 1500+ mp3s in XP. please help me fix this.
I am not a total rookie, but i am to dual boot, and new hardware with linux. I am just extremely impatient and now i am paying dearly for it.

thanks in advanced

here is a copy of my grub.conf
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hdc3
# initrd /boot/initrd-version.img
#boot=/dev/hdc3
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.4.21-20.0.1.EL)
root (hd0,2)
kernel /boot/vmlinuz-2.4.21-20.0.1.EL ro root=LABEL=/ hda=ide-scsi
initrd /boot/initrd-2.4.21-20.0.1.EL.img
title Red Hat Enterprise Linux WS (2.4.21-4.EL)
root (hd0,2)
kernel /boot/vmlinuz-2.4.21-4.EL ro root=LABEL=/ hda=ide-scsi
initrd /boot/initrd-2.4.21-4.EL.img

and a copy of my partition table:
Disk /dev/hdc: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 5 40131 de Dell Utility
/dev/hdc2 6 2628 21069247+ 17 Hidden HPFS/NTFS
/dev/hdc3 * 2629 3584 7679070 83 Linux
/dev/hdc4 3585 3648 514080 82 Linux swap
 
Old 12-19-2004, 06:15 PM   #2
jayboogie
LQ Newbie
 
Registered: Dec 2004
Location: NH USA
Distribution: RHEL3
Posts: 6

Original Poster
Rep: Reputation: 0
to add....does anybody know how i can fix this without windows, and without losing anything?
 
Old 12-19-2004, 06:19 PM   #3
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Add a section to your grub.conf along these lines:


Code:
title           Windows XP
rootnoverify    (hd0,1)
savedefault
makeactive
chainloader     +1
Alternatively, you could always just mount your XP partition while booted under linux, and copy the files across from there (worth setting up regardless, as rebooting just to copy a few files soon loses it's charm).

Cheers,

mj
 
Old 12-19-2004, 06:24 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
To your /etc/fstab, add a line such as
Code:
/dev/hdc2       /winxp        ntfs    rw,auto,user,umask=0022       0       0
and create a directory named /winxp for it to be mounted at. From there, you can then (if you so desire) right-click on your desktop, and Create new -> Hard disk, select the newly available mount point.

Cheers,

mj
 
Old 12-19-2004, 06:29 PM   #5
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Just a thought, but where did you install your hard drive ? It's odd that it's come up as hdc - if you do only have one, it would normally have come up as hda. Anyway, you may need to change the grub.conf rootnoverify line to (2,1).
 
Old 12-19-2004, 06:39 PM   #6
ping_wing
Member
 
Registered: Apr 2004
Posts: 65

Rep: Reputation: 15
how did you shrank this xp part? I mean if you made xp part smaller, added new part and theres been writing occured to this new part then theres not much hope.
If there'snt been writing then it's not very hard.

give overview of your partition table

# fdisk /dev/hda
and then 'p'
 
Old 12-20-2004, 10:31 PM   #7
jayboogie
LQ Newbie
 
Registered: Dec 2004
Location: NH USA
Distribution: RHEL3
Posts: 6

Original Poster
Rep: Reputation: 0
yes I shrank xp with partition magic 8....added an new part from new space created, and that is where linux now resides.

I have no idea why the harddrive was labeled hdc, it is the only hd in comp(a dell insiron 1100 laptop w/ toshiba 30GB hd)... I found it to be a bit bizarre myself.

an update...I managed to run XP again after editing the grub.conf file but after I did it screwed up the MBR somehow(maybe?) so that it no longer gave me grub but went directly to XP which my the way crashes at boot when it tries to run chkdsk which it cannot find. Then i get the new and improved blue screen of death. I reinstalled RedHat and all is fairly well....My usb mouse all of a sudden stopped working but that is another issue. But I still cannot get into XP and dare not try to reedit grub.conf as I did before because redhat enterprise is a monster distro and takes hours to install. Am I SOL?
 
Old 12-20-2004, 10:41 PM   #8
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
XP may well try to 'fix' any partitions it can find when it boots up - the safest option, if you have the time, would be to create the partitions first, then install XP, then the Linux distro of your choice. Other than that, editing grub.conf shouldn't bring any new problems.
 
  


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 and format unpartitioned hard disk which lies on an external usb case odysseus.lost Linux - General 1 08-09-2005 07:03 PM
Where the Difference Lies ? Daejavu Linux - Distributions 20 07-23-2005 04:43 PM
What exactly lies in / kingtas Linux - Newbie 11 01-25-2005 10:15 AM
a challenge for you derfaust Programming 3 03-12-2004 01:23 AM
software patents and corporate lies yocompia General 24 09-02-2003 05:36 PM


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