Deleting hard disk partition from Linux
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a refurbished computer that originally has 1 TB of hard disk dirve and it originally came with windows installed. After some time, the Windows updated and the computer stopped working. Someone helped me and managed to make a partition in the hard disk drive and installed Ubuntu in the computer as OS. I now enjoy much better working with Ubuntu and would like to get rid of the partition that contains Windows and recover the whole 1 TB hard disk drive for the ubuntu system. Is this possible to do? Can anyone explain me how to do this or refer me to online websites where I can learn how to do this? Thanks so much!
EDIT: Following suggestions in the comments, I am using gparted and am getting the following window:
From reading online posts, I believe the partition with the Ubuntu system is the one with the slash / in the Mount Point column. Now, what I don't really know is which one is the windows partition or which partitions I can safely delete and reassign the space. Any suggestions? Thanks!
ubuntu partition windows
add a comment |Â
up vote
0
down vote
favorite
I have a refurbished computer that originally has 1 TB of hard disk dirve and it originally came with windows installed. After some time, the Windows updated and the computer stopped working. Someone helped me and managed to make a partition in the hard disk drive and installed Ubuntu in the computer as OS. I now enjoy much better working with Ubuntu and would like to get rid of the partition that contains Windows and recover the whole 1 TB hard disk drive for the ubuntu system. Is this possible to do? Can anyone explain me how to do this or refer me to online websites where I can learn how to do this? Thanks so much!
EDIT: Following suggestions in the comments, I am using gparted and am getting the following window:
From reading online posts, I believe the partition with the Ubuntu system is the one with the slash / in the Mount Point column. Now, what I don't really know is which one is the windows partition or which partitions I can safely delete and reassign the space. Any suggestions? Thanks!
ubuntu partition windows
what version of ubuntu? what is in /etc/fstab?
â John
Dec 22 '17 at 16:14
Look intogparted
.
â DopeGhoti
Dec 22 '17 at 16:14
I agree, personally I'd boot systemrescuecd, and use gparted in there, unless the system was installed with LVM. Then it's much more manual.
â John
Dec 22 '17 at 17:00
If you want specific guidance then post the output fromlsblk
and /orblkid
and when you boot from grub, is there a Windows option or only Ubuntu?
â bu5hman
Dec 22 '17 at 17:36
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a refurbished computer that originally has 1 TB of hard disk dirve and it originally came with windows installed. After some time, the Windows updated and the computer stopped working. Someone helped me and managed to make a partition in the hard disk drive and installed Ubuntu in the computer as OS. I now enjoy much better working with Ubuntu and would like to get rid of the partition that contains Windows and recover the whole 1 TB hard disk drive for the ubuntu system. Is this possible to do? Can anyone explain me how to do this or refer me to online websites where I can learn how to do this? Thanks so much!
EDIT: Following suggestions in the comments, I am using gparted and am getting the following window:
From reading online posts, I believe the partition with the Ubuntu system is the one with the slash / in the Mount Point column. Now, what I don't really know is which one is the windows partition or which partitions I can safely delete and reassign the space. Any suggestions? Thanks!
ubuntu partition windows
I have a refurbished computer that originally has 1 TB of hard disk dirve and it originally came with windows installed. After some time, the Windows updated and the computer stopped working. Someone helped me and managed to make a partition in the hard disk drive and installed Ubuntu in the computer as OS. I now enjoy much better working with Ubuntu and would like to get rid of the partition that contains Windows and recover the whole 1 TB hard disk drive for the ubuntu system. Is this possible to do? Can anyone explain me how to do this or refer me to online websites where I can learn how to do this? Thanks so much!
EDIT: Following suggestions in the comments, I am using gparted and am getting the following window:
From reading online posts, I believe the partition with the Ubuntu system is the one with the slash / in the Mount Point column. Now, what I don't really know is which one is the windows partition or which partitions I can safely delete and reassign the space. Any suggestions? Thanks!
ubuntu partition windows
edited Dec 22 '17 at 18:13
asked Dec 22 '17 at 16:06
user110320
1032
1032
what version of ubuntu? what is in /etc/fstab?
â John
Dec 22 '17 at 16:14
Look intogparted
.
â DopeGhoti
Dec 22 '17 at 16:14
I agree, personally I'd boot systemrescuecd, and use gparted in there, unless the system was installed with LVM. Then it's much more manual.
â John
Dec 22 '17 at 17:00
If you want specific guidance then post the output fromlsblk
and /orblkid
and when you boot from grub, is there a Windows option or only Ubuntu?
â bu5hman
Dec 22 '17 at 17:36
add a comment |Â
what version of ubuntu? what is in /etc/fstab?
â John
Dec 22 '17 at 16:14
Look intogparted
.
â DopeGhoti
Dec 22 '17 at 16:14
I agree, personally I'd boot systemrescuecd, and use gparted in there, unless the system was installed with LVM. Then it's much more manual.
â John
Dec 22 '17 at 17:00
If you want specific guidance then post the output fromlsblk
and /orblkid
and when you boot from grub, is there a Windows option or only Ubuntu?
â bu5hman
Dec 22 '17 at 17:36
what version of ubuntu? what is in /etc/fstab?
â John
Dec 22 '17 at 16:14
what version of ubuntu? what is in /etc/fstab?
â John
Dec 22 '17 at 16:14
Look into
gparted
.â DopeGhoti
Dec 22 '17 at 16:14
Look into
gparted
.â DopeGhoti
Dec 22 '17 at 16:14
I agree, personally I'd boot systemrescuecd, and use gparted in there, unless the system was installed with LVM. Then it's much more manual.
â John
Dec 22 '17 at 17:00
I agree, personally I'd boot systemrescuecd, and use gparted in there, unless the system was installed with LVM. Then it's much more manual.
â John
Dec 22 '17 at 17:00
If you want specific guidance then post the output from
lsblk
and /or blkid
and when you boot from grub, is there a Windows option or only Ubuntu?â bu5hman
Dec 22 '17 at 17:36
If you want specific guidance then post the output from
lsblk
and /or blkid
and when you boot from grub, is there a Windows option or only Ubuntu?â bu5hman
Dec 22 '17 at 17:36
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Windows OS residing in /dev/sda5
in the figure you've shown. In your system it's the only ntfs
partition large enough to hold windows installation.
You can easily mount and see which partition containing what and decide to remove them. Like in Windows installation partition you'll find folders relevant to windows. To mount ntfs
file system in Linux you need ntfs-3g
driver, which usually comes inbuilt with Ubuntu. Otherwise install it using apt install ntfs-3g
.
In your system /dev/sda1
is mounted as /boot/efi
. So, it's containing grub
boot loader. So, don't delete it even by mistake. You can delete /dev/sda2-/dev/sda5
and sda6, sda7
.
If your main purpose is freeing up disk space I'll suggest you to delete /dev/sda5
only. Other partitions mentioned above has windows recovery, Windows bootloader etc. They may be helpful in case of a factory restore etc.
Now merging the entire 1 Tb disk is a tricky job. For that you've to first delete all drives except sda1, sda8 and sda9
. Then merge all the space and copy all contents of sda8
i.e. Linux root partition into the newly created partition using rsync
. Then you've to change /etc/fstab
entry properly and boot the system with new file system as root. Also change the root
parameter in grub
to the new partition.
Once the system is booted with new file-system as /
you can delete the existing root file-system i.e. /dev/sda8
and merge it with the new created root file system.
NOTE Changing root drive is a hazardous job. If not performed correctly your current installation may stop working. Another easy solution is delete all partitions and reinstall Ubuntu freshly. Always have a backup of all necessary files before deleting anything.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Windows OS residing in /dev/sda5
in the figure you've shown. In your system it's the only ntfs
partition large enough to hold windows installation.
You can easily mount and see which partition containing what and decide to remove them. Like in Windows installation partition you'll find folders relevant to windows. To mount ntfs
file system in Linux you need ntfs-3g
driver, which usually comes inbuilt with Ubuntu. Otherwise install it using apt install ntfs-3g
.
In your system /dev/sda1
is mounted as /boot/efi
. So, it's containing grub
boot loader. So, don't delete it even by mistake. You can delete /dev/sda2-/dev/sda5
and sda6, sda7
.
If your main purpose is freeing up disk space I'll suggest you to delete /dev/sda5
only. Other partitions mentioned above has windows recovery, Windows bootloader etc. They may be helpful in case of a factory restore etc.
Now merging the entire 1 Tb disk is a tricky job. For that you've to first delete all drives except sda1, sda8 and sda9
. Then merge all the space and copy all contents of sda8
i.e. Linux root partition into the newly created partition using rsync
. Then you've to change /etc/fstab
entry properly and boot the system with new file system as root. Also change the root
parameter in grub
to the new partition.
Once the system is booted with new file-system as /
you can delete the existing root file-system i.e. /dev/sda8
and merge it with the new created root file system.
NOTE Changing root drive is a hazardous job. If not performed correctly your current installation may stop working. Another easy solution is delete all partitions and reinstall Ubuntu freshly. Always have a backup of all necessary files before deleting anything.
add a comment |Â
up vote
0
down vote
accepted
Windows OS residing in /dev/sda5
in the figure you've shown. In your system it's the only ntfs
partition large enough to hold windows installation.
You can easily mount and see which partition containing what and decide to remove them. Like in Windows installation partition you'll find folders relevant to windows. To mount ntfs
file system in Linux you need ntfs-3g
driver, which usually comes inbuilt with Ubuntu. Otherwise install it using apt install ntfs-3g
.
In your system /dev/sda1
is mounted as /boot/efi
. So, it's containing grub
boot loader. So, don't delete it even by mistake. You can delete /dev/sda2-/dev/sda5
and sda6, sda7
.
If your main purpose is freeing up disk space I'll suggest you to delete /dev/sda5
only. Other partitions mentioned above has windows recovery, Windows bootloader etc. They may be helpful in case of a factory restore etc.
Now merging the entire 1 Tb disk is a tricky job. For that you've to first delete all drives except sda1, sda8 and sda9
. Then merge all the space and copy all contents of sda8
i.e. Linux root partition into the newly created partition using rsync
. Then you've to change /etc/fstab
entry properly and boot the system with new file system as root. Also change the root
parameter in grub
to the new partition.
Once the system is booted with new file-system as /
you can delete the existing root file-system i.e. /dev/sda8
and merge it with the new created root file system.
NOTE Changing root drive is a hazardous job. If not performed correctly your current installation may stop working. Another easy solution is delete all partitions and reinstall Ubuntu freshly. Always have a backup of all necessary files before deleting anything.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Windows OS residing in /dev/sda5
in the figure you've shown. In your system it's the only ntfs
partition large enough to hold windows installation.
You can easily mount and see which partition containing what and decide to remove them. Like in Windows installation partition you'll find folders relevant to windows. To mount ntfs
file system in Linux you need ntfs-3g
driver, which usually comes inbuilt with Ubuntu. Otherwise install it using apt install ntfs-3g
.
In your system /dev/sda1
is mounted as /boot/efi
. So, it's containing grub
boot loader. So, don't delete it even by mistake. You can delete /dev/sda2-/dev/sda5
and sda6, sda7
.
If your main purpose is freeing up disk space I'll suggest you to delete /dev/sda5
only. Other partitions mentioned above has windows recovery, Windows bootloader etc. They may be helpful in case of a factory restore etc.
Now merging the entire 1 Tb disk is a tricky job. For that you've to first delete all drives except sda1, sda8 and sda9
. Then merge all the space and copy all contents of sda8
i.e. Linux root partition into the newly created partition using rsync
. Then you've to change /etc/fstab
entry properly and boot the system with new file system as root. Also change the root
parameter in grub
to the new partition.
Once the system is booted with new file-system as /
you can delete the existing root file-system i.e. /dev/sda8
and merge it with the new created root file system.
NOTE Changing root drive is a hazardous job. If not performed correctly your current installation may stop working. Another easy solution is delete all partitions and reinstall Ubuntu freshly. Always have a backup of all necessary files before deleting anything.
Windows OS residing in /dev/sda5
in the figure you've shown. In your system it's the only ntfs
partition large enough to hold windows installation.
You can easily mount and see which partition containing what and decide to remove them. Like in Windows installation partition you'll find folders relevant to windows. To mount ntfs
file system in Linux you need ntfs-3g
driver, which usually comes inbuilt with Ubuntu. Otherwise install it using apt install ntfs-3g
.
In your system /dev/sda1
is mounted as /boot/efi
. So, it's containing grub
boot loader. So, don't delete it even by mistake. You can delete /dev/sda2-/dev/sda5
and sda6, sda7
.
If your main purpose is freeing up disk space I'll suggest you to delete /dev/sda5
only. Other partitions mentioned above has windows recovery, Windows bootloader etc. They may be helpful in case of a factory restore etc.
Now merging the entire 1 Tb disk is a tricky job. For that you've to first delete all drives except sda1, sda8 and sda9
. Then merge all the space and copy all contents of sda8
i.e. Linux root partition into the newly created partition using rsync
. Then you've to change /etc/fstab
entry properly and boot the system with new file system as root. Also change the root
parameter in grub
to the new partition.
Once the system is booted with new file-system as /
you can delete the existing root file-system i.e. /dev/sda8
and merge it with the new created root file system.
NOTE Changing root drive is a hazardous job. If not performed correctly your current installation may stop working. Another easy solution is delete all partitions and reinstall Ubuntu freshly. Always have a backup of all necessary files before deleting anything.
edited Dec 22 '17 at 19:20
answered Dec 22 '17 at 19:07
Abhik Bose
1,5341217
1,5341217
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412546%2fdeleting-hard-disk-partition-from-linux%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
what version of ubuntu? what is in /etc/fstab?
â John
Dec 22 '17 at 16:14
Look into
gparted
.â DopeGhoti
Dec 22 '17 at 16:14
I agree, personally I'd boot systemrescuecd, and use gparted in there, unless the system was installed with LVM. Then it's much more manual.
â John
Dec 22 '17 at 17:00
If you want specific guidance then post the output from
lsblk
and /orblkid
and when you boot from grub, is there a Windows option or only Ubuntu?â bu5hman
Dec 22 '17 at 17:36