CentOS and XP dualboot + ext3/ntfs mount


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat CentOS and XP dualboot + ext3/ntfs mount
# 1  
Old 11-29-2008
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  
Old 12-05-2008
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  
Old 12-06-2008
Quote:
Originally Posted by otheus
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  
Old 12-09-2008
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  
Old 12-11-2008
I like rehl as 5.0
# 6  
Old 12-15-2008
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  
Old 12-15-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to mount ntfs for storage HDD new to Solaris 11.2?

I just installed Solaris 11.2 - and it is a bugger. How do I mount an extra HDD that is now formated to NTFS through gparted it keeps telling me I don't have any ntfs on this laptop. it has two hdds, /dev/sda1 /dev/sdb1 (Linux lingo) Solaris is installed on primary hard drive back of it. then... (2 Replies)
Discussion started by: userx-bw
2 Replies

2. Fedora

unable to mount NTFS

Hi, I'm new for unix. I tried to mount windows NTFS partition in Fedora unix, but it is saying ntfs not found. The command i used is mount /dev/sdb1 -t ntfs /mnt/drive1 and how to find the available filesystem type?. (1 Reply)
Discussion started by: gwgreen1
1 Replies

3. UNIX for Dummies Questions & Answers

Ext3 to NTFS - transfering data

Alright so here is my problem: I have an ext3 external hard drive with about 270gb of data that needs to be copied/transferred to a NTFS drive. The NTFS drive has data currently on it...which obviously needs to stay intact. My supervisor mentioned that this problem could be a little tricky so I... (9 Replies)
Discussion started by: huntreilly25
9 Replies

4. BSD

Mounting ext3 & NTFS on PC-BSD!!

I'm having problem mounting ext3 & ntfs partitions on my PC-BSD OS. Can anyone please help me out here. What are the changes required to be done in fstab?? Are there any patches to be installed?? (1 Reply)
Discussion started by: void_man()
1 Replies

5. UNIX for Advanced & Expert Users

Can I mount Windows NTFS drive?

Just inherited a windows server to support. Windows 2003 Enterprise edition I can view driver / folders on the windows NTFS volume by mapping a drive from my windows laptop.. Can I mount this from a unix server also? I heard you can use Microsoft Services for Network File System... (3 Replies)
Discussion started by: frustrated1
3 Replies

6. Linux

Mount ntfs in linux

How Can I mount Windows NTFS Partation in to Linux ? (4 Replies)
Discussion started by: Amit Deore
4 Replies

7. Linux

how to mount ntfs filesystem

:) Hi frds ..i hope i can get some help for this.. I am unable to mount ntfs/hpfs file system which contain my XP o/s. As per the information collected on net i found tht my kernel i.e 2.4.xx does not support ntfs ..? Now I dont knwo where to get upgraded kernel and how to deploy it ..can anyone... (0 Replies)
Discussion started by: nicknihal
0 Replies

8. BSD

Mount Fat32,ext3

Hello All, How can i mount ext3 and Fat partition in FreeBSD 6.0 (0 Replies)
Discussion started by: jaibw
0 Replies

9. Filesystems, Disks and Memory

mount NTFS drive ???????

can someone help tell me how to mount NTFS drive in redhat 7.1 1. is this correct ? dev/hda1 mnt/c ntfs-t defaults 0 0 2.is the mount file etc/fstab thanking you all ... (3 Replies)
Discussion started by: immanuelgangte
3 Replies

10. UNIX for Advanced & Expert Users

Pb for mount a ntfs fs type

Hie , I have a distrib Red Hat with a kernel-2.4.9-31 . I can't mount a ntfs fs with command : #mount -t ntfs /dev/hda1 /windows mount: fs type ntfs not supported by kernel Why doesn't my kernel support a type ntfs ? How can I mount this FS ? Merci d'avance.. (1 Reply)
Discussion started by: Romeo_91
1 Replies
Login or Register to Ask a Question