Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Ubuntu and Puppy distros and I've tried to install WinXP. I did something wrong when I tried to install WinXp, which I haven't succeed to install, and now I can't reboot Ubuntu. I restored MBR for UBuntu but it doesn't recognised my Linux partitions. However, Puppy live CD does access to my partitions but Gparted doesn't again.
Windows doesn't get on with Linux, but Linux gets on with windows, I'd advise in future installing windows first and linux second. Still this can be saved, not by fixing the MBR but by going the full lenght re-installing Grub.
If you used a live version of Ubuntu to install it in the first place you should be able to use the grub-install command to restore it... however should it fail then you should be able to use this little link to restore grub after reinstalling it.
Windows XP needs to be installed first on your hard drive and then any Linux distro afterwards, as r3sistence has said.
If you need a full blown/dual boot Windows install you will need to install it into the first physical partition on disk and then Linux after.
However if you only need to use Windows XP occasionally, then you can install Windows as a virtual machine within your Linux installation using something like Sun Virtualbox or any of the Linux VM solutions.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
Quote:
Originally Posted by ArfaSmif
Windows XP needs to be installed first on your hard drive and then any Linux distro afterwards, as r3sistence has said.
If you need a full blown/dual boot Windows install you will need to install it into the first physical partition on disk and then Linux after.
However if you only need to use Windows XP occasionally, then you can install Windows as a virtual machine within your Linux installation using something like Sun Virtualbox or any of the Linux VM solutions.
If you can see your partitions from Puppy, then run the fdisk -l command and post the output. Post the output of the /boot/grub/menu.lst file from Ubuntu (that's what you're trying to use right?) What command did you use to try to restore Grub to the mbr from Ubuntu?
Quote:
I did something wrong when I tried to install WinXp
What was the something wrong here? That's pretty vague an not helpful to getting help.
Your menu.lst shows (hd0,4) as Ubuntu and (hd0,5) as Puppy. The only Linux partition you have, according to fdisk command, is sda6 which is (hd0,5) and that would be your Puppy install. No windows partitions. Assume you are able to boot Puppy off the hard drive? Your find command you posted, run from Grub, only shows the Puppy stage1. Your partition setup is a little unusual, the only primary partitions are swap and the extended partition. YOu'll need another primary for windows if you want to install it. When you restored Grub, you restored to Puppy partition not Ubuntu.
What's the FAT16 partition on sda5, I assume it's not a windows OS because it won't boot from a logical partition. I'd suggest you create another partition/partitions for Ubuntu and reinstall. If you plan to install windows, do that first and remember to create a primary partition for windows.
From the menu.lst, it looks like Ubuntu was on sda5 (hd0,4). From the fdisk output it looks like you've tried to install windows on there. You can try to change the type of that partition to 83 using fdisk, but the windows install might already have wiped Ubuntu of it.
And your restore action found your puppy installation. Did you have puppy installed? You only mentioned a liveCD.
Your menu.lst shows (hd0,4) as Ubuntu and (hd0,5) as Puppy. The only Linux partition you have, according to fdisk command, is sda6 which is (hd0,5) and that would be your Puppy install. No windows partitions. Assume you are able to boot Puppy off the hard drive? Your find command you posted, run from Grub, only shows the Puppy stage1. Your partition setup is a little unusual, the only primary partitions are swap and the extended partition. YOu'll need another primary for windows if you want to install it. When you restored Grub, you restored to Puppy partition not Ubuntu.
What's the FAT16 partition on sda5, I assume it's not a windows OS because it won't boot from a logical partition. I'd suggest you create another partition/partitions for Ubuntu and reinstall. If you plan to install windows, do that first and remember to create a primary partition for windows.
Yes, I know that the partition is funny, I have created it some years ago in my first Linux steps and it has been working well, so I haven't changed it. I think, now is the moment to reconfigure all my partitions and install first Windows.
From the menu.lst, it looks like Ubuntu was on sda5 (hd0,4). From the fdisk output it looks like you've tried to install windows on there. You can try to change the type of that partition to 83 using fdisk, but the windows install might already have wiped Ubuntu of it.
And your restore action found your puppy installation. Did you have puppy installed? You only mentioned a liveCD.
Yes, Ubuntu is actually installed on sda5 and Puppy on sda6, which is my Ubuntu home partition too. As far as I know, Ubuntu isn't wiped out. I can access to all the disk and all the information on it with Puppy Live CD, but I can't boot from it and Gparted shows me an empty HD. I've tried to install Windows on sda7, which is an FAT partition.
Despite the fact that I have a basic computer knowledge, I'm not very keen on Linux basic commands. Can you explain me more detailed how to change the partition to 83 using fdisk?
Either be root or use sudo, depending on the distro.
Code:
wim@aao:~$ sudo fdisk /dev/sda
[sudo] password for wim:
Command (m for help): p
Disk /dev/sda: 8069 MB, 8069677056 bytes
255 heads, 63 sectors/track, 981 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf5d28b9b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 850 6827593+ 83 Linux
/dev/sda2 851 981 1052257+ 82 Linux swap / Solaris
Command (m for help): t
Partition number (1-4): 1replace this by your partition number
Hex code (type L to list codes): 83
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
wim@aao:~$
I'll try it later (I have to work), and I keep you posted. In the meanwhile, I've partially solved it. Strange as it may seam, fdisk shows me the partitions partially, e.g. it doesn't show the home partition which is sda7, but Puppy does. I've changed menu.lst with the "new" order as it is shown by Puppy. Nonetheless, I want to fix it in order to learn more.
If you are planning to install windows, you will need to create another primary partition as windows doesn't boot from a logical partition, at least according to microsoft. You can boot windows post W98 from a logical partition if you have another version of windows on a primary partition. or at least the boot files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.