Results 1 to 5 of 5

Thread: Remove windows partitions

  1. #1
    Join Date
    Nov 2009
    Location
    Santiago, Chile
    Posts
    207

    Question Remove windows partitions

    Greetings.
    Just to make sure I'm right I want to ask you people if is possible, in my case, to delete primary and secondary win partitions (C and D) and so to add that empty spaces to my current openSUSE / and /home partitions.
    My linux root partition is a primary one as well so I guess that I can keep booting from it no matter if there isn't the C win drive any more.


    Code:
    Disco /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cilindros of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x3bef74b8
    
    Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
    /dev/sda1   *           1        1020     8192000    c  W95 FAT32 (LBA)
    La particin 1 no termina en un lmite de cilindro.
    /dev/sda2            1020        8206    57719486    7  HPFS/NTFS
    /dev/sda3   *        8207       10748    20418615   83  Linux
    /dev/sda4           10749       19458    69952512    f  W95 Ext'd (LBA)
    /dev/sda5           10750       12799    16466625    7  HPFS/NTFS
    /dev/sda6           12800       13060     2096451   82  Linux swap / Solaris
    /dev/sda7           13061       19456    51375838+  83  Linux
    Want to delete /dev/sda2 (primary) and /dev/sda5 (secondary).

    So... can I do it?

    Thanks in advance.
    Last edited by faco84; 04-Jun-2010 at 21:16. Reason: missing something
    HP pavilion dv6-6185la - Intel i7 - AMD Radeon 6770M - openSUSE 12.2 - KDE 4.9

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    37,115
    Blog Entries
    16

    Default Re: Remove windows partitions

    You can delete sda2, but really only use that free space with sda3

    And if you delete sda5 the next partition is swap which you don't want bigger do you. (you can get round this but it's messy)

    Also, consider that the partition table will change and so all the boot code in grub will be wrong and we need rewriting.

    Would it be easier to just format those partitions and use the space for now, until you do a fresh install (perhaps 11.3), when you can start fresh and get it nice.
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Nov 2009
    Location
    Santiago, Chile
    Posts
    207

    Thumbs up Re: Remove windows partitions

    Quote Originally Posted by caf4926 View Post
    You can delete sda2, but really only use that free space with sda3

    And if you delete sda5 the next partition is swap which you don't want bigger do you. (you can get round this but it's messy)
    Actually I thought that I would have to play around to get that free space to the next linux partition (/home) and gparted or parted magic are good enough.

    Quote Originally Posted by caf4926 View Post
    Also, consider that the partition table will change and so all the boot code in grub will be wrong and we need rewriting.
    That is what I wasn't sure before. Now you say that I'm seriously thinking in to just...

    Quote Originally Posted by caf4926 View Post
    Would it be easier to just format those partitions and use the space for now, until you do a fresh install (perhaps 11.3), when you can start fresh and get it nice.
    ...format them to use the free space.

    Thanks caf!
    HP pavilion dv6-6185la - Intel i7 - AMD Radeon 6770M - openSUSE 12.2 - KDE 4.9

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    37,115
    Blog Entries
    16

    Default Re: Remove windows partitions

    It's not that it's not possible, but it's not for the faint hearted. Parted Magic would be the tool I would use, if I HAD to try and do as you were wanting.

    My pref would be a backup, complete wipe and re-partitioning to Linux and no NTFS, if that was the way you were planning.

    You know that if you use PMagic and format those NTFS partitions and give them labels: eg; STORE and MUSIC
    Then make two new directories of the same names in /
    You can then set mounts for them in fstab (you may have to # out any dynamic entries for the same partitions if they exist. See this guide:
    FSTAB - Editing Manually - openSUSE Forums
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Nov 2009
    Location
    Australia
    Posts
    1,377

    Default Re: Remove windows partitions

    Just to make sure I'm right I want to ask you people if is possible, in my case, to delete primary and secondary win partitions (C and D) and so to add that empty spaces to my current openSUSE / and /home partitions.
    If you are familiar with gparted/Parted Magic, then certainly.

    If it were me I would delete sda2,move and resize sda3 to suit what you want,

    Resize sda4 to fill the space,then delete sda5 and sda6 and resize sda7 to use all but the space required for swap.

    Then recreate the swap partition and make any changes needed in FSTAB.

    If this seems clear, and makes sense to you, Then the changes you want to make won't cause you a lot of trouble.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •