LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-12-2002, 05:31 AM   #16
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65

i looked at that wrong the first time, but i think partition
magic hid your ntfs partition when it was moving stuff
around.
run
fdisk /dev/hda
then p for print
then t change type
then 1 for the first partition
then 7 for ntfs instead of hidden ntfs
then w for write changes and exit.
i think there's at least a 50% chance that will fix
your xp booting problem.

as a side order, the linux fdisk just makes changes
to the partition table when you change stuff. the windows
fdisk blanks out the first so many sectors of a deleted
partition, or a created one ( i can't remember which, or
both). so a lot of times i can delete a couple of partitions
in linux then put them back later, or swap 2 partitions
places, to fix something, or just for a change, and it works ok. you just need to keep the starting and ending
cylinders and partition types all printed out or written
down, so they don't get lost.
if this doesn't fix your xp booting problem, post the
contents of your boot.ini from the xp drive.
 
Old 12-13-2002, 02:38 PM   #17
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
Well I had to reinstall linux, and now I can't get windows to appear in the boot again. I edited lilo.conf and put in
other = /dev/hda1
label = windows
table = /dev/hda
which is what I had before, but it still doesn't work. I've tried all variations I can think of too (other=/dev/hda,table=dev/hda1).
 
Old 12-13-2002, 02:51 PM   #18
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
post the contents of your
/etc/fstab
/etc/lilo.conf
fdisk -l
from you windows drive post the contents of
/boot.ini
 
Old 12-13-2002, 03:07 PM   #19
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
fstab:
----------------------------------------------
Code:
/dev/hda3 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/mnt/cdrom /mnt/cdrom supermount dev=/dev/hdc,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
/mnt/cdrom2 /mnt/cdrom2 supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
/mnt/floppy /mnt/floppy supermount dev=/dev/fd0,fs=vfat,--,iocharset=iso8859-1,umask=0,sync,codepage=850 0 0
/dev/hda5 /mnt/windows vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda4 swap swap defaults 0 0
lilo.conf:
---------------------------------
Code:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
default=linux
keytable=/boot/us.klt
lba32
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
	label=linux
	root=/dev/hda3
	initrd=/boot/initrd.img
	append="devfs=mount hdd=ide-scsi quiet"
	vga=788
	read-only
image=/boot/vmlinuz
	label=linux-nonfb
	root=/dev/hda3
	initrd=/boot/initrd.img
	append="devfs=mount hdd=ide-scsi"
	read-only
image=/boot/vmlinuz
	label=failsafe
	root=/dev/hda3
	initrd=/boot/initrd.img
	append="devfs=nomount hdd=ide-scsi failsafe"
	read-only
other=/dev/fd0
	label=floppy
	unsafe
other=/dev/hda1
        label=windows
        table=/dev/hda
fdisk -l:
--------------------------------------------
Code:
Disk /dev/ide/host0/bus0/target0/lun0/disc: 240 heads, 63 sectors, 10337 cylinders
Units = cylinders of 15120 * 512 bytes

                                Device Boot    Start       End    Blocks   Id  System
/dev/ide/host0/bus0/target0/lun0/part1          2099      9807  58280008+   7  HPFS/NTFS
/dev/ide/host0/bus0/target0/lun0/part2          9808     10337   4006800    f  Win95 Ext'd (LBA)
/dev/ide/host0/bus0/target0/lun0/part3   *        69      2098  15346768+  83  Linux
/dev/ide/host0/bus0/target0/lun0/part4             1        68    514048+  82  Linux swap
/dev/ide/host0/bus0/target0/lun0/part5          9808     10337   4006768+   b  Win95 FAT32

Partition table entries are not in disk order
boot.ini:
---------------------------------------------------
Code:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect\

Last edited by Sfpiano; 12-13-2002 at 03:10 PM.
 
Old 12-13-2002, 05:04 PM   #20
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
man, i would almost swear that looks right.
if lilo is installed, by typing lilo,
you do have the options at boot,


linux
linux-nonfb
failsafe
floppy
windows

you're saying you have all those except the
windows one? you do know you have to
run lilo
as root
after any changes to the file, for them to take effect?
 
Old 12-13-2002, 05:31 PM   #21
Sfpiano
LQ Newbie
 
Registered: Dec 2002
Location: PA
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 15
Nope, definately didn't know that. But all's well, its working now, thank you so much.
 
Old 12-13-2002, 10:02 PM   #22
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Nice catch whansard! I was flustered and had no clue what the problem was, very nice catch.

Cool
 
Old 12-13-2002, 11:34 PM   #23
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
thanks much.
i'm still wondering if that partition type change was
necessary. I'll try it sometime here when i get
the chance.
 
  


Reply



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
dual booting fedora core 2 and mandrake: can't boot mandrake any more mgyamada Fedora 1 10-04-2004 07:39 AM
Help!! Dual booting xp and Mandrake 8.2 Rexof345 Linux - Newbie 3 05-14-2004 08:11 PM
Mandrake 8.2, dual booting MAGOVIA Linux - Newbie 1 03-28-2004 02:28 AM
Dual booting XP and mandrake once again... impulse Linux - Newbie 9 06-26-2003 07:18 PM
Dual booting using XP and mandrake 8.1 (need help!!) rdiggidy Linux - Software 4 04-07-2002 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:26 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
Open Source Consulting | Domain Registration