Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello, I would like to finally remove windows from my Linux box... Still a bit new at Linux, so I have a few questions first... 1. I believe I will ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2009
    Posts
    104

    [SOLVED] Removing Windows...


    Hello,
    I would like to finally remove windows from my Linux box...

    Still a bit new at Linux, so I have a few questions first...

    1. I believe I will need to reformat the Windows disk, can someone point me at a URL outlining this?

    2. I will need to change GRUB2 to not show the windows boot anymore... Again, can someone point me at a URL outlining this?

    3. Is there anything else I need to do, I might be unaware of?

    Thanks,
    Dave

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Try this:
    fdisk /dev/sda
    su -c "nano /boot/grub.lst"

    Google Grub Config and fdisk

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  3. #3
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Please be careful when you lay hands on the partition table. One mistake and both (Windows and Linux) may go down. As the exact steps vary for each specific setup, it is hard to give specific instructions.

    The one thing you should always do before touching anything is a complete backup of the whole harddrive.

    I did repartition my hard disk with this LiveCD:
    Modify Your Partitions With GParted Without Losing Data | HowtoForge - Linux Howtos and Tutorials


    EDIT:
    If Windows is really on its own physical hard disk, it is easier. But still make sure you format the correct drive.
    Debian GNU/Linux -- You know you want it.

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by Dave-Oregon
    1. I believe I will need to reformat the Windows disk, can someone point me at a URL outlining this?
    We have to check existing partition structure of your Hard disk first. Execute this in Terminal :
    Code:
    su -
    fdisk -l
    Post output here.
    Quote Originally Posted by Dave-Oregon
    2. I will need to change GRUB2 to not show the windows boot anymore... Again, can someone point me at a URL outlining this?
    Execute update-grub command after removing Windows OS. It will generate new GRUB Menu with Windows OS entry in it.
    Quote Originally Posted by Dave-Oregon
    3. Is there anything else I need to do, I might be unaware of?
    If you have added Windows OS partition in /etc/fstab file to automount it, remove its entry from file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Linux Newbie
    Join Date
    Dec 2009
    Posts
    104
    Hello,

    Thank you for the reply. Here is the output of fdisk -l:

    strangelove:/home/dcole# fdisk -l

    Disk /dev/sda: 750.1 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xb995baee

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 91201 732572001 7 HPFS/NTFS

    Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x87c348c5

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 182071 1462485276 83 Linux
    /dev/sdb2 182072 182401 2650725 5 Extended
    /dev/sdb5 182072 182401 2650693+ 82 Linux swap / Solaris
    strangelove:/home/dcole#

    Be aware that grub is running from sda1, hence my fear in messing with things... The only thing I care about on sda1, is the boot partition. I want to insure that I don't wipe "grub" out...

    Thanks again for the help!!

    Dave

  7. #6
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,045
    Quote Originally Posted by Dave-Oregon View Post
    I would like to finally remove windows from my Linux box...

    Still a bit new at Linux, so I have a few questions first...

    1. I believe I will need to reformat the Windows disk, can someone point me at a URL outlining this?

    2. I will need to change GRUB2 to not show the windows boot anymore... Again, can someone point me at a URL outlining this?

    3. Is there anything else I need to do, I might be unaware of?

    Thanks,
    Dave
    1. Reformat of Windows partition is optional, but not essential ... you could wipe Windows information and setup Linux to access that partition but it is better to use a Linux file system instead.
    2. After removing Windows running the update-grub command as dc indicated will do the job for you.
    3. Depends what you do with the disk space, the easiest way to use it is to format the partition to a Linux file system, add a mount point for it and add an entry to /etc/fstab so it is mounted each time you start Linux.

    Quote Originally Posted by Dave-Oregon View Post
    Hello,

    Thank you for the reply. Here is the output of fdisk -l:

    strangelove:/home/dcole# fdisk -l

    Disk /dev/sda: 750.1 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xb995baee

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 91201 732572001 7 HPFS/NTFS

    Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x87c348c5

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 182071 1462485276 83 Linux
    /dev/sdb2 182072 182401 2650725 5 Extended
    /dev/sdb5 182072 182401 2650693+ 82 Linux swap / Solaris
    strangelove:/home/dcole#

    Be aware that grub is running from sda1, hence my fear in messing with things... The only thing I care about on sda1, is the boot partition. I want to insure that I don't wipe "grub" out...
    I suspect what you have actually done is install Linux to sdb and installed grub to the MBR of sda (not sda1). So you should be able to format partition sda1 using gparted. You can do this from a live CD ...

    How do you want to use the extra space? as a large home partition, as a data partition or something else?

  8. #7
    Linux Newbie
    Join Date
    Dec 2009
    Posts
    104
    Hi,

    You have outlined exactly what I did... I wanted Linux totally away from Windows, in the event I wanted to dump windows, (which I do now), so it looks like a bit of pre-planning actually helped!!

    I have no idea what to do with the additional space... I have been using it for clonzilla backups of my running Linux system. I expect that is not a bad idea in general, however, as I mentioned, I am new to Linux, so if you have any suggestions, I am all ears!

    Thanks again,
    Dave

  9. #8
    Linux Newbie
    Join Date
    Dec 2009
    Posts
    104
    Hi,

    I got it formatted, however I can not write anything to it as a normal user...

    Dave

  10. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You have give ownership of that partition to a Regular User.
    Code:
    chown  userid:group_id  mount_point
    Replace userid, group_id and mount_point with actual ids. Execute id command to check Ids.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #10
    Linux Newbie
    Join Date
    Dec 2009
    Posts
    104
    Hello,

    Sir I thank you! All is working now, and I have a PILE of additional space for backups!

    Dave

Page 1 of 2 1 2 LastLast

Posting Permissions

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