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 11-27-2006, 09:59 AM   #31
johngreenwood
Member
 
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31

try running "cfdisk" to find out which partition Windows is on, it should be of NTFS or VFAT or something, make note of the partition, and try mounting it.

make a mount point:

mkdir /mnt/windows

then mount by doing:

mount /dev/hdaX /mnt/windows

where X is the number of the windows partition

Then do

cd /mnt/windows
ls

You will see Windows files, eg. Documents\ and\ Settings
Once you know hich partition Windows is on, if in fact, it IS still there,

edit /etc/lilo.conf

vi /etc/lilo.conf

when you see the file in the terminal, press "i" to insert text, you will see the word INSERT at the bottom of the terminal.

add this to /etc/lilo.conf:

other=/dev/hdaX
label="Windows"
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80
table = /dev/hda

again, X is the number of the Windows partition

when you have added this, pres ESC, the word INSERT will disappear, and type:

:wq

This will write the changes and exit vi/vim

then run lilo

/sbin/lilo

You'll get a message telling you which OS's have been added and everything should be fine.

I haven't tried this with Windows on hda, but I don't see why it wouldn't work.

Hope you get it sorted, I know how aggravating this can be.

Last edited by johngreenwood; 11-27-2006 at 10:06 AM.
 
Old 11-27-2006, 10:33 AM   #32
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by trashcaner
i really dont know whats happening all i want is to get out of this mess i installed wine it opened the setup.exe file after i click the install button it said cant continue with setup .atleast gve me some idea how to include my existing windows to the lilo.conf file .i qoute the error shown when i run sbin\lilo.conf
Thats part of the problem, I don't think you have an existing windows, I think you overwrote it when you installed PCLinuxOS. I could be wrong(hope I am for your sake), but I've just yet to see any version of Lilo/Grub off any install, not properly detect and boot Windows XP with little to no effort on the users part.

IGF
 
Old 11-28-2006, 08:33 AM   #33
trashcaner
LQ Newbie
 
Registered: Nov 2006
Posts: 16

Original Poster
Rep: Reputation: 0
[root@localhost etc]# df
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.8G 2.1G 1.5G 59% /
/dev/hda5 358M 358M 0 100% /home
/dev/hdd 521M 521M 0 100% /mnt/cdrom
/dev/sda2 28G 23G 5.3G 82% /mnt/RAJ_IPOD
[root@localhost etc]# cd..
[root@localhost /]# df
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.8G 2.1G 1.5G 59% /
/dev/hda5 358M 358M 0 100% /home
/dev/hdd 521M 521M 0 100% /mnt/cdrom
/dev/sda2 28G 23G 5.3G 82% /mnt/RAJ_IPOD
[root@localhost /]# cfdisk

[root@localhost /]# mkdir/mnt/windows
bash: mkdir/mnt/windows: No such file or directory
[root@localhost /]# mount dev/hda7/mnt/windows
mount: can't find dev/hda7/mnt/windows in /etc/fstab or /etc/mtab
[root@localhost /]# mkdir /mnt/windows
[root@localhost /]# mount dev/hda7/mnt/windows
mount: can't find dev/hda7/mnt/windows in /etc/fstab or /etc/mtab
[root@localhost /]# cd /mnt/windows
[root@localhost windows]# ls
[root@localhost windows]# ls
[root@localhost windows]# vi /etc/lilo.conf
[root@localhost windows]# /sbin/lilo
Added linux *
Added linux-nonfb
Added failsafe
Unrecognized token "A" at or above line 49 in file '/etc/lilo.conf'
[root@localhost windows]# vi /etc/lilo.conf
[root@localhost windows]# /sbin/lilo
Added linux *
Added linux-nonfb
Added failsafe
Fatal: Partition entry not found.
[root@localhost windows]# df
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.8G 2.1G 1.5G 59% /
/dev/hda5 358M 358M 0 100% /home
/dev/hdd 521M 521M 0 100% /mnt/cdrom
/dev/sda2 28G 23G 5.3G 82% /mnt/RAJ_IPOD
[root@localhost windows]# cd..
[root@localhost mnt]# cd..
[root@localhost /]# mkdir/mnt/windows
bash: mkdir/mnt/windows: No such file or directory
[root@localhost /]# mount /dev/hda7/windows
mount: can't find /dev/hda7/windows in /etc/fstab or /etc/mtab
[root@localhost /]# mount /dev/hda7/mnt/windows
mount: can't find /dev/hda7/mnt/windows in /etc/fstab or /etc/mtab
[root@localhost /]#



this is what i did but i added the given config file details in the config file but'i' dint help in inserting details in the file .still iam unable to edit the file i press some keys delet some line move some line down iam really going to mess things up in the lilo hehehheheee.so what next guys iam really dum not able to do these simple steps or where did i go wrong
 
Old 11-28-2006, 08:33 AM   #34
trashcaner
LQ Newbie
 
Registered: Nov 2006
Posts: 16

Original Poster
Rep: Reputation: 0
[root@localhost etc]# df
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.8G 2.1G 1.5G 59% /
/dev/hda5 358M 358M 0 100% /home
/dev/hdd 521M 521M 0 100% /mnt/cdrom
/dev/sda2 28G 23G 5.3G 82% /mnt/RAJ_IPOD
[root@localhost etc]# cd..
[root@localhost /]# df
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.8G 2.1G 1.5G 59% /
/dev/hda5 358M 358M 0 100% /home
/dev/hdd 521M 521M 0 100% /mnt/cdrom
/dev/sda2 28G 23G 5.3G 82% /mnt/RAJ_IPOD
[root@localhost /]# cfdisk

[root@localhost /]# mkdir/mnt/windows
bash: mkdir/mnt/windows: No such file or directory
[root@localhost /]# mount dev/hda7/mnt/windows
mount: can't find dev/hda7/mnt/windows in /etc/fstab or /etc/mtab
[root@localhost /]# mkdir /mnt/windows
[root@localhost /]# mount dev/hda7/mnt/windows
mount: can't find dev/hda7/mnt/windows in /etc/fstab or /etc/mtab
[root@localhost /]# cd /mnt/windows
[root@localhost windows]# ls
[root@localhost windows]# ls
[root@localhost windows]# vi /etc/lilo.conf
[root@localhost windows]# /sbin/lilo
Added linux *
Added linux-nonfb
Added failsafe
Unrecognized token "A" at or above line 49 in file '/etc/lilo.conf'
[root@localhost windows]# vi /etc/lilo.conf
[root@localhost windows]# /sbin/lilo
Added linux *
Added linux-nonfb
Added failsafe
Fatal: Partition entry not found.
[root@localhost windows]# df
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.8G 2.1G 1.5G 59% /
/dev/hda5 358M 358M 0 100% /home
/dev/hdd 521M 521M 0 100% /mnt/cdrom
/dev/sda2 28G 23G 5.3G 82% /mnt/RAJ_IPOD
[root@localhost windows]# cd..
[root@localhost mnt]# cd..
[root@localhost /]# mkdir/mnt/windows
bash: mkdir/mnt/windows: No such file or directory
[root@localhost /]# mount /dev/hda7/windows
mount: can't find /dev/hda7/windows in /etc/fstab or /etc/mtab
[root@localhost /]# mount /dev/hda7/mnt/windows
mount: can't find /dev/hda7/mnt/windows in /etc/fstab or /etc/mtab
[root@localhost /]#



this is what i did but i added the given config file details in the config file but'i' dint help in inserting details in the file .still iam unable to edit the file i press some keys delet some line move some line down iam really going to mess things up in the lilo hehehheheee.so what next guys iam really dum not able to do these simple steps or where did i go wrong
 
Old 11-28-2006, 08:36 AM   #35
trashcaner
LQ Newbie
 
Registered: Nov 2006
Posts: 16

Original Poster
Rep: Reputation: 0
i actually found the file in etc dir where i open it in kwrite and edited it properly .still it show fatal error not able to recoganise .what could be the reason guys.can some one help me running my windows xp installation cd atleast
 
Old 11-28-2006, 02:20 PM   #36
johngreenwood
Member
 
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31
The XP install is very easy, but if you install it now, your master boot record will be overwritten and you won't be able to boot Linux. If you're up for it, you can format your hard drive, get rid everything, and start from scratch, thats probably what I would do. If that i what you are going to do, you need to install XP first, onto the first partition of your hard drive, and when that is done, install your distro of choice. Just make sure when you are partitioning the disk for Linux, leave the first partition alone. When the bootloader is installed, it should automatically recognise your XP install, and you shouldn't have to do anything more.

Here it is again:

1) insert XP CD
2) create a partition at the beggining of the drive for XP
3) install XP on the created partition

XP is now installed
now for Linux

1) insert CD for whichever distro you have
2) run cfdisk to create your Linux partition, and swap partition, making sure you don't touch the XP partition
3) install your distro to the new Linux partition
4) if asked, install the bootloader to the master boot record

I think that should be it, when Linux is installed and you reboot, Lilo/Grub should appear with at least two choices, possibly more. One will be for Windows, the rest for Linux. The labels you can change later.

Hope this helps

John
 
Old 11-28-2006, 02:48 PM   #37
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by johngreenwood
The XP install is very easy, but if you install it now, your master boot record will be overwritten and you won't be able to boot Linux. If you're up for it, you can format your hard drive, get rid everything, and start from scratch, thats probably what I would do. If that i what you are going to do, you need to install XP first, onto the first partition of your hard drive, and when that is done, install your distro of choice. Just make sure when you are partitioning the disk for Linux, leave the first partition alone. When the bootloader is installed, it should automatically recognise your XP install, and you shouldn't have to do anything more.

Here it is again:

1) insert XP CD
2) create a partition at the beggining of the drive for XP
3) install XP on the created partition

XP is now installed
now for Linux

1) insert CD for whichever distro you have
2) run cfdisk to create your Linux partition, and swap partition, making sure you don't touch the XP partition
3) install your distro to the new Linux partition
4) if asked, install the bootloader to the master boot record

I think that should be it, when Linux is installed and you reboot, Lilo/Grub should appear with at least two choices, possibly more. One will be for Windows, the rest for Linux. The labels you can change later.

Hope this helps

John
Part of the problem, according to one of his earlier posts, there's some sort of problem with his XP disk.

IGF
 
  


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
Help me!!! I'm sooo confuse to use this Linpus Linux in my Acer Aspire 3000.. zethsuna Linux - Laptop and Netbook 16 11-18-2007 08:45 AM
I'm sooo close but... mpauls Linux - Newbie 6 02-06-2006 01:52 PM
Sooo confused HELP andy_play Linux - Networking 3 12-08-2005 04:00 AM
HELP! I'm SOOO lost.... [User Mode Linux questions galore.] Zoe Linux - Newbie 4 05-24-2004 12:09 PM

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

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