Fwd: Converting Fedora 19 machine to dual-boot with pre-installed Windows 7

Doug dmcgarrett at optonline.net
Sat Oct 19 03:56:46 UTC 2013


On 10/18/2013 08:09 PM, Rick Stevens wrote:
> On 10/18/2013 09:50 AM, Oliver Ruebenacker issued this missive:
>>
>>       Hello,
>>
>>    I have a Lenovo T430 that had Windows 7 Pro pre-installed, but I
>> wiped out Windows and installed Fedora 19 instead (actually, I first
>> installed Ubuntu and then Fedora).
>>
>>    Now I want to turn it into a dual-boot machine with Fedora and
>> Windows based on the license for the pre-installed Windows.
>>
>>    I see on the web some recommendations to first install Windows, and
>> some say you can install first Linux and then Windows, but it may not
>> work for (some?) pre-installed versions.
>>
>>    So, now I'm wondering whether I should first wipe out Fedora and then
>> put first Windows and second Fedora, or whether I should try to keep
>> Fedora and add Windows next to it?
>>
>>    My file systems currently look like this:
>>
>> [oruebenacker at localhost ~]$ df
>> Filesystem              1K-blocks     Used Available Use% Mounted on
>> /dev/mapper/fedora-root  51475068  8239400  40597844  17% /
>> devtmpfs                  3929460        0   3929460   0% /dev
>> tmpfs                     3936376       96   3936280   1% /dev/shm
>> tmpfs                     3936376 900   3935476
>> <tel:900%C2%A0%C2%A0%203935476>   1% /run
>> tmpfs                     3936376        0   3936376   0% /sys/fs/cgroup
>> tmpfs                     3936376       52   3936324   1% /tmp
>> /dev/sda1                  487652   120305    337651  27% /boot
>> /dev/mapper/fedora-home 420590200 21603936 377598388   6% /home
> 
>

It would help if you use fdisk -l  because that shows the partition scheme. 
For instance, this machine I'm typing on is set up this way:

[doug at linux1 ~]$ sudo fdisk -l /dev/sda
Password: 

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 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: 0x000a43e9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   152969215    76483584    7  HPFS/NTFS/exFAT
/dev/sda2       152971264   693846015   270437376    5  Extended
/dev/sda3       693846016   976773119   141463552   83  Linux
/dev/sda5       152973312   178364415    12695552   83  Linux
/dev/sda6       178366464   227194879    24414208   83  Linux
/dev/sda7       227196928   402358271    87580672   83  Linux
/dev/sda8       402360320   521773055    59706368   83  Linux
/dev/sda9       521775104   552476671    15350784   83  Linux
/dev/sda10      552478720   580956159    14238720   83  Linux
/dev/sda11      580958208   613044223    16043008   83  Linux
/dev/sda12      613046272   621223293     4088511   82  Linux swap / Solaris
/dev/sda13      621225984   693846015    36310016   83  Linux


If you mount all the systems on the disk first, you can also use df,
but you need to use df -a. (You can mount the partitions most easily
by just clicking on them one by one in your file manager--Dolphin, here.)

[doug at linux1 ~]$ df -a
Filesystem        Size  Used Avail Use% Mounted on
/dev/sda7          83G   37G   42G  47% /
none                 0     0     0    - /proc
none                 0     0     0    - /dev/pts
none              4.0G     0  4.0G   0% /dev/shm
/dev/sda8          57G   19G   38G  33% /home
none                 0     0     0    - /proc/sys/fs/binfmt_misc
gvfs-fuse-daemon     0     0     0    - /home/doug/.gvfs
/dev/sda5          12G  5.0G  6.4G  44% /media/3ecbd78e-07af-4b75-b821-6386f923f749                             
/dev/sda6          23G  610M   22G   3% /media/2ee029cf-6ab2-4fad-a113-009963c029d2
/dev/sda9          15G  3.2G   11G  23% /media/c23f16ec-dff7-47b1-a25f-0ad96f41d339
/dev/sda10         14G  1.2G   13G   9% /media/281e1124-f7c8-4efa-9ec1-b3560362ac3b
/dev/sda11         16G  7.9G  6.5G  55% /media/50367372-b1c6-4dff-a774-4a3129954fca
/dev/sda1          73G   58G   16G  79% /media/Windows
/dev/sda13         35G  348M   34G   1% /media/7fd7f873-0551-48a5-91d1-ac701a998f12
/dev/sda3         133G   60M  126G   1% /media/54320286-5240-4fae-8ff0-4d75d2ca9910

This shows that the system I am running is on /dev/sda7 and /dev/sda8,
and it also shows that /dev/sda1 is Windows, altho you could have
deduced that from the fdisk indication of NTFS file system. Note that df does not
show the swap partition, nor does it show the extended partition--sda2--on which
the Linux systems are mounted.

However, your post shows that your Linux system is on /dev/sda1,
which may turn out to be a problem for Windows--I don't know.

However, this machine started with XP on sda1, and then a
different Linux on sda5 and 6, installed after XP. Then, with 
several Linux installs, I upgraded XP to Win 8.0. It required me
to run a Linux live disk, and run rdo mbr to get the multiboot back.
This is not the same as what you have. I think if I were doing it,
I would use gparted to move the Linux partition up the drive, leaving
room for a Windows primary partition as sda1. I'm not absolutely sure of 
the mechanics of doing that, so I won't post something that will lead you 
astray. Anyway, using gparted, format the sda1 space which will be
your Windows partition with NTFS. I don't think Windows will even
see partitions formatted with ext4, which I imagine is what the 
Linux partition is. 

Hope this helps--doug

-- 
Blessed are the peacemakers..for they shall be shot at from both sides. --A.M.Greeley


More information about the users mailing list