LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-01-2013, 05:33 PM   #1
countryboy9799
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
Help, I can't find windows 7


Hey guys, new to Linux and what I had was a dual boot windows 7 and windows 8 preview on a seperate partition. I "thought" I installed Ubuntu on the windows 8 version since I am not using that partition and now I cannot find out how to see my partitions and if I still have 7. I am not worried about losing any data on the 7 partition but it will be a big pain if I have to reinstall 7.

The reason I put Ubuntu on was because I had a SD card from a DSLR that was corrupt, luckily I was able to get most of my pics off the SD card but was not able to recover any movies at this point. It was a slow process but at least I did get most of my pics.
 
Old 01-01-2013, 07:55 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,412

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
If you can get to the cmd line as root (aka admin) in Ubuntu (eg via sudo) try
Code:
fdisk -l
lowercase L there
 
1 members found this post helpful.
Old 01-01-2013, 08:22 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Welcome to LQ.

To expand a bit on what Chrism01 said, boot into Ubuntu. Open a terminal (a command line window if you prefer) and run the command: sudo fdisk -l (that's -ell and not -one). It will list the partitions on the hard drive: /dev/sda1, /dev/sda2, and so on, along with the filesystem type of each partition.

I am guessing that win7 was on the first partition, and win8 on the second before you installed Ubuntu. After installation, if it was done correctly, you should now have win7 on /dev/sda1 and Ubuntu on /dev/sda2.

If fdisk -l shows sda1 as ntfs and sda2 as ext(2, 3, or 4), win 7 is still there. The installation of Ubuntu may not have added windows to the boot menu. To fix that, run the following command:
sudo /usr/sbin/update-grub2
to force Ubuntu to look for other bootable systems and add them to the grub menu.
When update-grub2 is done, reboot and hopefully you will see win7 in the grub menu.
 
1 members found this post helpful.
Old 01-01-2013, 10:22 PM   #4
countryboy9799
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
This is what I have in the terminal

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000195dc

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1456832511 728415232 83 Linux
/dev/sda2 1456834558 1465147391 4156417 5 Extended
/dev/sda5 1456834560 1465147391 4156416 82 Linux swap / Solaris

Disk /dev/sdb: 15.9 GB, 15931539456 bytes
255 heads, 63 sectors/track, 1936 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 8192 31116287 15554048 c W95 FAT32 (LBA)
scott@scott-Inspiron-560:~$ ^C
scott@scott-Inspiron-560:~$


The 16 GB drive is the SD card I was recovering corrupted pics from my DSLR. In the 750 GB drive, which is my hard drive I had 2 partitions. One for windows 7 and the other was windows 8 preview. Since I wasn't using 8 preview anymore I wanted to put linux on it. Do I still have windows 7 or did I put linux over windows 7?
 
Old 01-02-2013, 12:15 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
It appears your installation may be utilizing the whole drive. There are GUI programs that will show your partitions like gparted & disk-utility, there are more but 1 of these 2 programs may already be installed on your system. The items marked in red show start & end of your linux installation.
Quote:
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1456832511 728415232 83 Linux
/dev/sda2 1456834558 1465147391 4156417 5 Extended
/dev/sda5 1456834560 1465147391 4156416 82 Linux swap / Solaris
There is a small portion of drive which hasn't been written to after 1465147391

Last edited by EDDY1; 01-02-2013 at 12:21 AM.
 
1 members found this post helpful.
Old 01-02-2013, 12:49 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
You have put Linux over Windows. There are no traces in the fdisk output for sda of any file system as used by Windows (ntfs / fat).
 
Old 01-02-2013, 06:45 PM   #7
countryboy9799
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks, good news is I didn't lose any data on 7. So now I will have to reinstall windows 7 this weekend. Is there a link for how to make a dual boot system? Also I was using Ubuntu, should I be using Mint instead?

I was able to get most of my pics off of the SD card so I am happy Linux was able to do that for me which windows 7 was not due to some corrupt files on the SD card. It was slow but at least got 188 of the pics out of 195. For some reason I was unable to get any of the 6 movie files.

Thanks again
 
Old 01-02-2013, 07:51 PM   #8
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Ubuntu and LinuxMint are very similar under their skin, so it really make no much different on which one you want to install, it is really up to you. But if you will install 7 again, just let it take the whole drive. Then make up a partition for ubuntu using the partition tool Gparted or the one in windows.

Then during installation of Ununtu or Mint you will need to direct the installer to that partition.
You can look in youtube for videos on how to do that.

Good luck to you
 
1 members found this post helpful.
  


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
[SOLVED] Grub, Ubuntu, Debian, Windows, Oh my!! Grub can't find Windows partitions crs17 Linux - General 3 05-22-2012 09:13 AM
Grub can't find Windows MissingPixel Debian 11 08-15-2009 07:11 AM
Windows says it cant find files bigalexe General 2 04-04-2008 06:48 PM
Grub can't find Windows leupi Linux - General 8 11-11-2006 10:40 AM
Windows XP Suse 9.2 dual boot problem:Yast doesn't find windows Salawat SUSE / openSUSE 1 03-31-2006 05:33 AM

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

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