LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-13-2010, 03:28 PM   #1
big-time-noob
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora12
Posts: 15

Rep: Reputation: 0
How do I add windows 7 os, linux pre installed.


I know how to add linux if windows is pre installed. But do not know how to do it in reverse
 
Old 01-13-2010, 03:44 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
You'll need to have a rescue disk and a live cd with g/qtparted on it.
Use knoppix to mount the volume externally. Version 5.X not adrianne is to be used.
Let knoppix boot with
Code:
knoppix screen=1280x1024 depth=24 desktop=fluxbox
.
Open a terminal and type in sudo su
then type in qtparted.
Resize the partition to allow enough room for the windows install.
Commit the action.
Reboot after the task is done.
The rescue CD will allow you to reinstall grub.
Install the Windows OS7 on the spare area being sure not to overwrite the Linux partition.
After installing, reboot with the linux cd in the drive.
Replace grub the update through the repository software
 
Old 01-14-2010, 10:03 AM   #3
big-time-noob
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora12
Posts: 15

Original Poster
Rep: Reputation: 0
The RESIZE option is not highlighted so I can just click on it. I have /dev/sda1 highlighted but it will not allow me to resize. should I create a partition table? it states "all data will be lost".
 
Old 01-14-2010, 10:25 AM   #4
big-time-noob
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora12
Posts: 15

Original Poster
Rep: Reputation: 0
I started gparted and it gives me the option to resize my boot partition of 200mb /dev/sda1 boot, but will not let me resize /dev/sda2 148.85 gig. When I click on the info button it tells me:

unable to detect file system. possible reasons are:
-file system is damaged
-file system unknown to gparted
-there is no file system available (unformatted)

do I format?
 
Old 01-14-2010, 12:19 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,385

Rep: Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710
It would be useful to know which distribution of Linux you are using and also what your partitions are. To get the partition info, log in to a terminal as root and run command: fdisk -l (lower case Letter L) and post it here. also, which version of windows, 7, vista, xp??
 
Old 01-14-2010, 12:27 PM   #6
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
You need to do an fsck of the file system through the live CD. That way the live CD can recognize the file system and thus resize it.

If it's ext4 or ext3 I believe you can run
Code:
fsck -fyv /dev/sda2
After that, resize the partition, install Windows, boot up with the CD in the drive and reinstall GRUB.

Last edited by lupusarcanus; 01-14-2010 at 12:28 PM.
 
Old 01-14-2010, 12:31 PM   #7
big-time-noob
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora12
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
It would be useful to know which distribution of Linux you are using and also what your partitions are. To get the partition info, log in to a terminal as root and run command: fdisk -l (lower case Letter L) and post it here. also, which version of windows, 7, vista, xp??
Fedora12, windows7
 
Old 01-14-2010, 12:43 PM   #8
big-time-noob
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora12
Posts: 15

Original Poster
Rep: Reputation: 0
disk /dev/sda: 160.0 gb
255 heads, 63 sectors/track 19457 cylinders
units+ cylinders of 16065 * 512 = 8225280 bytes
disk identifier: 0x00072eb0

device boot>>>>>>>>>start>>>>>>>>>>>>end>>>>>>>>>>blocks>>>>>>>>>>>>>>id>>>>>>>>>>system
/dev/sda1/...........1................26...........204800..............83..........linux
partition 1 does not end on cylinder boundary
/dev/sda2/...........9742..........19457...........70043770...........8e...........linux lvm
 
Old 01-14-2010, 07:29 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,385

Rep: Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710
You could check this site out. It explains installing vista after Linux already installed so it should be pretty much the same for win7:
http://apcmag.com/how_to_dualboot_vi..._installed.htm

Last edited by yancek; 01-14-2010 at 07:33 PM. Reason: Wrong link
 
Old 01-14-2010, 07:39 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
For Vista, I'd recommend defragging your windows filesystem and then resize it in Vista. It will allow you to resize it down to about half the size. I'm sure that you can do the same thing in Windows 7 as well. It is a debugged version of Vista with cosmetic changes in the UI.

On my Gateway netbook which came with Vista on it, I booted to the wrong partition by mistake and reinstalled vista. I discovered that the recovery would install vista into a blank partition. Knowing this, I was able to delete the vista partition, install Linux and then run the recovery. This allowed me to re-install Vista on a partition a lot smaller than I would have been able to resize it down to.

You will need a Live CD, rescue CD or your install disk to be able to boot into Linux (using the grub shell) after installing Windows 7.

If your computer has restore partitions instead of a windows 7 install disc, be sure you leave them alone.

Last edited by jschiwal; 01-15-2010 at 01:23 AM.
 
Old 01-15-2010, 05:48 AM   #11
big-time-noob
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora12
Posts: 15

Original Poster
Rep: Reputation: 0
I got it thanks for the help all.
 
  


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
LXer: Group Complaint Against Pre-Installed Windows in Italy LXer Syndicated Linux News 0 01-07-2010 12:12 AM
Using pre-installed copy of Windows Vista as a Virtualbox guest from Linux host jrtayloriv Linux - Software 6 08-17-2009 09:42 AM
pre-installed oem linux schneidz LQ Suggestions & Feedback 1 09-09-2008 01:47 PM
Dual-booting Linux on PC pre-installed with Windows XP Mikhail Linux - Newbie 3 08-08-2006 08:50 AM

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

All times are GMT -5. The time now is 07:12 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
Open Source Consulting | Domain Registration