The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mounting ext3 & NTFS on PC-BSD!! void_man() BSD 1 09-19-2007 06:17 AM
how to mount ntfs filesystem nicknihal Linux 0 09-09-2006 04:59 AM
Mount Fat32,ext3 jaibw BSD 0 01-12-2006 02:10 AM
mount NTFS drive ??????? immanuelgangte Filesystems, Disks and Memory 3 08-02-2002 11:52 AM
Pb for mount a ntfs fs type Romeo_91 UNIX for Advanced & Expert Users 1 05-07-2002 01:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-29-2008
apra143 apra143 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 37
CentOS and XP dualboot + ext3/ntfs mount

I have WinXP Pro SP2 on first disk /dev/hda, which my BIOS currently has as first boot device.

I have CentOS-5.2-x86_64 on second disk /dev/hdb, which I can boot into if I set my BIOS to boot from this HDD. It is using LVM with vg00 and a single LV for root (/) filesystem (ext3).

How do I get bootsector file from the CentOS distro so that I can add it into WinXP's boot.ini file? I tried:
Code:
dd if=/dev/hdb of=bootsect.lnx bs=512 count=1
and copied the bootsect.lnx file to C:\bootsect.lnx, after which I added the following line to boot.ini in XP:
Code:
C:\bootsect.lnx="CentOS 5"
However, when selecting CentOS 5 from NTLDR boot menu, it just hangs with a black screen.

Second question is, how to get:
(a) WinXP to read/write the ext3 filesystem (from the vg00 LV) on /dev/hdb, it currently shows up in WinXP as a RAW drive G:\
(b) CentOS to read/write to and from WinXP's C:\

In the end, I basically want, WinXP's NTLDR to handle booting and I want each OS to be able to read/write to each other.
  #2 (permalink)  
Old 12-05-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,864
You copied too many bytes and overwrote the partition table (or part of it). You should copy only 384 bytes in your dd command. Until then, all bets are off. Hopefully you made a backup copy of the boot sector?
  #3 (permalink)  
Old 12-06-2008
apra143 apra143 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 37
Quote:
Originally Posted by otheus View Post
You copied too many bytes and overwrote the partition table (or part of it). You should copy only 384 bytes in your dd command. Until then, all bets are off. Hopefully you made a backup copy of the boot sector?
Just to clarify, there is no problem with either OS, I can boot into them fine, but I need to tell my BIOS which HDD to boot from.

The problem is the bootsect.lnx file which the NTLDR boots from, which when selected, doesn't boot into CentOS as expected. I will try:
Code:
dd if=/dev/hdb of=bootsect.lnx bs=384 count=1
and see if that helps.
  #4 (permalink)  
Old 12-09-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,864
Okay, I re-read your post. Normally, I don't use the NTLDR that way. I used a different format and told the NTLDR to boot off the corresponding partition/drive and let the CENTOS boot sector take care of business from there.
  #5 (permalink)  
Old 12-11-2008
yunikes yunikes is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 6
I like rehl as 5.0
  #6 (permalink)  
Old 12-15-2008
stevie_velvet stevie_velvet is offline
Registered User
  
 

Join Date: Jan 2008
Location: London e Milano
Posts: 85
What @otheus is alluding to IS that the boot loader that comes with modern Redhat(& others) is GRUB & it detects the presence of a windows partition & creating a boot menu entry for it.

Which is why *most* implementations install XP first then Linux. I've used your method many moons ago which worked for me, then GRUB came along
(ps. don't uprade\install vista on the same HD as linux, vista can't co-exist)

----------
ms. stevi
  #7 (permalink)  
Old 12-15-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,864
Actually, I was alluding to the fact that (1)
Code:
C:\bootsect.lnx="CentOS 5"
is NOT a valid NTLOADER line from what I have seen. And further (2), NTLOADER doesn't directly load Linux: grub loads linux. What NTLOADER can do (I Think) is to load the boot sector as if the BIOS had just loaded a boot sector, and in that case, the boot sector would contain the boot-strap code that GRUB uses.

But Stevie Velvet is probably correct: easier to use Grub to load windows, perhaps, than the other way around.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0