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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-13-2010, 03:28 PM
|
#1
|
LQ Newbie
Registered: Jan 2010
Distribution: Fedora12
Posts: 15
Rep:
|
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
|
|
|
01-13-2010, 03:44 PM
|
#2
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
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
|
|
|
01-14-2010, 10:03 AM
|
#3
|
LQ Newbie
Registered: Jan 2010
Distribution: Fedora12
Posts: 15
Original Poster
Rep:
|
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".
|
|
|
01-14-2010, 10:25 AM
|
#4
|
LQ Newbie
Registered: Jan 2010
Distribution: Fedora12
Posts: 15
Original Poster
Rep:
|
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?
|
|
|
01-14-2010, 12:19 PM
|
#5
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,385
|
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??
|
|
|
01-14-2010, 12:27 PM
|
#6
|
Senior Member
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Rep: 
|
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.
|
|
|
01-14-2010, 12:31 PM
|
#7
|
LQ Newbie
Registered: Jan 2010
Distribution: Fedora12
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by yancek
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
|
|
|
01-14-2010, 12:43 PM
|
#8
|
LQ Newbie
Registered: Jan 2010
Distribution: Fedora12
Posts: 15
Original Poster
Rep:
|
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
|
|
|
01-14-2010, 07:29 PM
|
#9
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,385
|
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
|
|
|
01-14-2010, 07:39 PM
|
#10
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
01-15-2010, 05:48 AM
|
#11
|
LQ Newbie
Registered: Jan 2010
Distribution: Fedora12
Posts: 15
Original Poster
Rep:
|
I got it thanks for the help all.
|
|
|
All times are GMT -5. The time now is 07:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|