LinuxQuestions.org
Help answer threads with 0 replies.
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 09-06-2009, 04:08 PM   #1
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Rep: Reputation: 15
Cant get windows or ubuntu to boot


Hi all. I'm trying to setup a dual boot with XP and ubuntu. I already had ubuntu installed on it's own ext4 partitions and I had an existing NTFS partition from when I had windows before. I tried to setup XP in that partition but after the initial text-based screen where it copies all the files then reboots, it doesnt continue the installation.

In the live cd I can mount the the partition and view the files but gparted only shows one large partition (mounted or unmounted) "unallocated" and wont give me the option to resize (only create new partitions). Since I dont want to overwrite existing data on the partition, how should I create a new partition in the free space for windows? Or how do I continue this stupid XP installation so I can eventually recover grub and get a dual boot working? Thanks in advance!

Code:
ubuntu@ubuntu:~$ fdisk -l

Disk /dev/sdb: 2032 MB, 2032664576 bytes
63 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Disk identifier: 0x00049dbe

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         513      999984+   b  W95 FAT32
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 1) logical=(0, 0, 33)
Partition 1 has different physical/logical endings:
     phys=(124, 126, 3) logical=(512, 2, 5)
Partition 1 does not end on cylinder boundary.
/dev/sdb2             513        1017      985023+  83  Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(124, 126, 4) logical=(512, 2, 6)
Partition 2 has different physical/logical endings:
     phys=(247, 31, 40) logical=(1016, 25, 2)
Partition 2 does not end on cylinder boundary.
 
Old 09-06-2009, 04:45 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,166

Rep: Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342
Do you have your drive attached? The output you posted shows info on what would normally be the second drive (sdb) and is only 2GB (USB?). You're trying to install Ubuntu and xp on that??
 
Old 09-06-2009, 04:53 PM   #3
el_b
Member
 
Registered: Apr 2009
Distribution: Slackware 13.0
Posts: 48

Rep: Reputation: 17
GParted has never given me that problem, you could try to use fdisk.

Last edited by el_b; 09-06-2009 at 04:58 PM.
 
Old 09-06-2009, 05:15 PM   #4
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yancek View Post
Do you have your drive attached? The output you posted shows info on what would normally be the second drive (sdb) and is only 2GB (USB?). You're trying to install Ubuntu and xp on that??
no, that's just a usb key. My normal drive is supposed to be sda which has my ext4 partitions and 1 ntfs partition
Quote:
Originally Posted by el_b View Post
GParted has never given me that problem, you could try to use fdisk.
I didnt know fdisk could resize an ntfs partition? I'm kinda nervous about using fdisk because fdisk to me has never been synonymous with "non-destructive partitioning"
 
Old 09-06-2009, 05:45 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
What you have listed in your first post does not tell us what sda disk and partitions look like. If you run fdisk -l from terminal it would list sda unless you are unplugged I would think.
 
Old 09-06-2009, 07:29 PM   #6
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
512

now I could well be wrong but... fdisk only seems to register the boot partition, the others seem to have no defining parameters.I do not know how to recover these, perhaps, someone else does? Try fdisk -ls for another read out. If you have no important data I would start again, put Windows on first and do the usual incredible shrining routine with Ubuntu etc. Just a thought.

Fred.
 
Old 09-06-2009, 07:43 PM   #7
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I definitely would have done a clean install by now if I could but I have data I need on that drive :\

Code:
mitting empty partition (5)

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb15fb15f

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        1419    11398086   83  Linux
/dev/hda2            1420        9729    66750075    f  W95 Ext'd (LBA)
/dev/hda3   *        1541        9729    65772441    7  HPFS/NTFS
/dev/hda5            1420        1540      971869+  82  Linux swap / Solaris

Disk /dev/sda: 2032 MB, 2032664576 bytes
63 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Disk identifier: 0x00049dbe

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         513      999984+   b  W95 FAT32
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 1) logical=(0, 0, 33)
Partition 1 has different physical/logical endings:
     phys=(124, 126, 3) logical=(512, 2, 5)
Partition 1 does not end on cylinder boundary.
/dev/sda2             513        1017      985023+  83  Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(124, 126, 4) logical=(512, 2, 6)
Partition 2 has different physical/logical endings:
     phys=(247, 31, 40) logical=(1016, 25, 2)
Partition 2 does not end on cylinder boundary.
This is a different boot (BT off USB key) than my ubuntu one so I think hte output might be different
 
Old 09-06-2009, 10:00 PM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You should be able to mount your / with your ubuntu cd terminal and then write it to disc or to your pen. Your windows needs to be in the first partition or think it is.
 
Old 09-06-2009, 11:39 PM   #9
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Larry Webb View Post
You should be able to mount your / with your ubuntu cd terminal and then write it to disc or to your pen. Your windows needs to be in the first partition or think it is.
So if you already have linux installed in the first sector of hte first partition or whatever, you cant get windows to install at all? Grr I should have known I couldnt just easily install it on a partition already formatted for it and just be done with it! I hate windows! :\ I've got around 60gb I gotta backup now

Last edited by w00ly; 09-06-2009 at 11:41 PM.
 
Old 09-07-2009, 12:37 AM   #10
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
wooly

mmm. the main thing is to extract your data and if advice has led to this then whoopie do. The list of partitions overlaps cylinders and I think that is where the basic problem has occurred. Grub will boot just about owt but not if it can't count the reference. I said put Windows on first because I'm told that creates least problems. I admit loosing windows is more of a problem as the bast*rds don't provide a disk these days. More reason to leave 'em alone.

Fred.
 
Old 09-07-2009, 07:02 AM   #11
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If you are going to multiboot here is the method I use. The article goes into depth describing the boot process and partition layouts. Mind this is not the only way but I have found it to be the easiest for me. There are several tutorials here and Google has endless advice on multiboot.


http://www.justlinux.com/forum/showt...hreadid=147959
 
Old 09-07-2009, 09:31 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,166

Rep: Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342Reputation: 1342
What data are you trying to save? The hda3 partition with windows? In your first post, you said (I think) you tried to install xp on that partition, is that right? If so, you've probably overwritten at least some of the data. Did that windows partition contain an xp operating system or was it just data?
 
  


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
Cannot boot Windows after installing Ubuntu 8.04 Steffy Linux - General 9 05-08-2008 07:09 AM
help! dual boot related, cannot boot windows any more, ubuntu is ok parv Ubuntu 16 04-10-2007 12:29 AM
Dual boot Ubuntu-Windows XP vmarian Linux - Software 1 09-13-2006 10:09 AM
Ubuntu/Windows XP dual boot IrishX Ubuntu 2 08-09-2006 09:29 AM
I can't boot windows, only ubuntu! Vampirite Ubuntu 3 06-18-2005 11:18 AM


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