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 11-10-2008, 03:09 AM   #1
generalgiantsfan
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
I Cant Boot up Windows


Hey, I am new to Linux. I was trying it out to see how it was and I think I accidentally got rid of windows somehow. Just wondering if there is any way to get it back. When I turn on my laptop, it goes straight to linux, doesnt even give me an opportunity to load windows. Any help?
 
Old 11-10-2008, 03:23 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
1. what distribution did you use?

2. as 'root', post the output of:
fdisk -l

3. what bootloader are you using? If you use 'grub', then this command will usually show you something:
ls -ld /boot/grub

4. what version of MSWin was installed?

Of course if you accidentally installed over MSWin, then there's not much we can do for you.
 
Old 11-10-2008, 07:06 AM   #3
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
First can you tell us which linux distro you are using? I am hoping you understand what pinniped asked for. If not please let us know and we will try and help you step by step.
 
Old 11-11-2008, 12:48 AM   #4
generalgiantsfan
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Reply

1. I loaded ubuntu linux 8.10

2. Dont understand this question...

3. output of ls -ld /boot/grub:
drwxr-xr-x 2 root root 4096 2008-11-10 03:05 /boot/grub

4. I had microsoft windows xp



I am almost positive that it installed over windows because it is finally letting me choose what to boot up but my only options are linux and a linux recovery and one more thing related to linux, I would have to double check if necessary.
 
Old 11-11-2008, 01:00 AM   #5
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
What option did you choose when you installed Ubuntu? Usually it asks how you want to partition, using available free space, use the whole drive, or manually.

For number 2, you can run a command as root by prefacing the command with sudo. Note that root is a user account that has full access to everything, and you can break your install if you do something you shouldn't, which is why you should never log in as root and only use sudo when needed. It's similar to the Administrator account in Windows.

Code:
sudo fdisk -l
 
Old 11-11-2008, 01:03 AM   #6
generalgiantsfan
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the help...

Here is the answer to number 2:

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

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9327 74919096 83 Linux
/dev/sda2 9328 9729 3229065 5 Extended
/dev/sda5 9328 9729 3229033+ 82 Linux swap / Solaris

And I went with whatever was the standard option when that partition part came up...whatever was default, sorry I cant remember what it was.
 
Old 11-11-2008, 01:25 AM   #7
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
Ok, I'm no expert here, but I see no partition for Windows....meaning you may have deleted it when installing Linux.


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

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9327 74919096 83 Linux
/dev/sda2 9328 9729 3229065 5 Extended
/dev/sda5 9328 9729 3229033+ 82 Linux swap / Solaris
I'm not sure what the bolded one is, but I'm pretty sure it's not your Windows partition. I'm not sure why it seems to be the same as your swap. Maybe someone more skilled could answer that.

Last edited by claudius753; 11-11-2008 at 01:29 AM.
 
Old 11-11-2008, 01:30 AM   #8
generalgiantsfan
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
That is what I figured I did...well that kinda stinks lol...

Thanks for the help though!
 
Old 11-11-2008, 01:39 AM   #9
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Well, I'm sorry to say that your last post has confirmed that XP had been nuked. I hope you had no valuable data on it. If you did (and didn't have a backup), it may still be possible to recover *some* files but that's a time consuming process.
 
Old 11-11-2008, 01:40 AM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Originally Posted by claudius753 View Post
I'm not sure what the bolded one is, but I'm pretty sure it's not your Windows partition. I'm not sure why it seems to be the same as your swap. Maybe someone more skilled could answer that.
This is an extended partition defining the remainder of the drive where you can make many "logical" partitions within. The swap is the only logical partition taking up the entire space.

Quote:
Ok, I'm no expert here, but I see no partition for Windows....meaning you may have deleted it when installing Linux.
This appears to be correct.
You may be able to recover data if need be, but not the Windows installation.
 
Old 11-11-2008, 01:43 AM   #11
generalgiantsfan
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
In order to see if I can recover anything, would I take it to someone, or is there some online instructions you can refer me to...?
 
Old 11-11-2008, 01:43 AM   #12
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by claudius753 View Post
I'm not sure what the bolded one is, but I'm pretty sure it's not your Windows partition. I'm not sure why it seems to be the same as your swap. Maybe someone more skilled could answer that.
'sda2' is a DOS 'primary' partition. It has been divided into 'logical' partitions (and so it is referred to as 'extended' rather than 'primary').

'sda5' is the logical partition which takes up most of sda2.

So - the disk is essentially divided into 2 partitions - sda1 (Linux) and sda5 (swap).
 
Old 11-11-2008, 01:48 AM   #13
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by generalgiantsfan View Post
In order to see if I can recover anything, would I take it to someone, or is there some online instructions you can refer me to...?
It's safest if you have a buddy who knows Linux well enough that they won't do more damage to the data on the disk. The idea is to boot from a LiveCD (or plug your HD into another machine and boot linux from another HD) and use recovery tools to look for data on the disk. The Linux installation would have wiped out a lot of data, and each time you boot linux from that HD and the HD is 'mounted' as read+write, a bit more data is wiped out by normal system tasks. You can bet that all data that was on the 'swap' section had been wiped. On the topic of recovery tools - you'd need a second HD to write the recovered files to.

[edit] You do have to read through very carefully before (and while) installing an operating system, and everyone recommends you make a backup beforehand even if you know what you're doing. It only takes 1 little mistake to do a lot of damage, whether you're installing MSWin or Linux or some other system.

Last edited by pinniped; 11-11-2008 at 01:50 AM.
 
Old 11-11-2008, 01:53 AM   #14
generalgiantsfan
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Yah, it was pretty dumb on my part...I am just glad that I do not hold my value in something on a laptop, lol, so although I lost pretty much all my files, I am not really upset, I will just move on. Thanks to all of you guys for your help, this was much appreciated.
 
Old 11-11-2008, 02:27 AM   #15
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
If you are going to reinstall XP, your best bet is to delete all partitions, and create a new one of the size you want the install to be from the XP installer (eg 40GB), then you can install ubuntu (if you are still willing to try linux) in the remaining space.

Of course, you could just keep your system as Linux only...

And to other posters, thanks for clearing up that partition information, I didn't even think of it being an primary / logical thing. Nice to know from now on.

Last edited by claudius753; 11-11-2008 at 02:28 AM.
 
  


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
Dual boot -fedora core 4 and windows xp- problem booting from windows xp cd r_desu Linux - Newbie 4 06-17-2007 05:33 PM
dual boot - Grub won't boot Windows on /windows/D partition biosol SUSE / openSUSE 9 04-09-2006 09:14 PM
Windows XP Suse 9.2 dual boot problem:Yast doesn't find windows Salawat SUSE / openSUSE 1 03-31-2006 05:33 AM
Linux-windows Dual boot question when upgrading from windows 2000 to XP sarikalinux Linux - Newbie 1 03-09-2006 03:21 PM
How do I dual boot Linux and Windows XP from Windows boot file andyri Linux - Newbie 4 08-04-2004 11:09 PM


All times are GMT -5. The time now is 02:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration