LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-31-2011, 11:31 PM   #1
lee_can
Member
 
Registered: Mar 2011
Posts: 118

Rep: Reputation: 1
How to clean hard disk from partitions.


Hi all,
I am using Ubuntu 11.10 as main operating system.
On Virtualbox machine, i have installed several operating system.
I will explain by an example:
Hard disk size = 100 GB.
4 operating system installed on virtualbox:OS1,OS2,OS3,OS4.
The hard disk size for each installed operating system is 10 GB.

Now, if i want to remove totaly OS2 and OS4, first thing to do is to delete them from my virtualbox, but the problem i think is that i format the two 10 GB (out of 100 GB) to install OS2 and OS4 them on each 10 GB.
So my question is how to remove the partition used for OS2 and for OS4 from my hard disk.
I just used Gpartition but didnt success.
Anyone can advise please?
Cheers
 
Old 11-01-2011, 02:58 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

if I understand correctly you just want to delete the disk images or vdi files for your virtual machines (these are not real partitions). Is that correct? AFAIK, by default these will be under ~/.VirtualBox/Machines/*/*.vdi

Evo2.
 
1 members found this post helpful.
Old 11-01-2011, 03:12 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
try posting under linux virtualization you might get absolute answers, but if the partition you're trying to remove you created under virtual box just delete the vdi file as evo2 suggested.

partition created in virtual box is just a virtual partition as well, it won't appear if you use gpartition.
 
1 members found this post helpful.
Old 11-01-2011, 08:24 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by JJJCR View Post
partition created in virtual box is just a virtual partition as well, it won't appear if you use gpartition.
That migt be the case, but what the OP wrote kind of makes it look like they might be separate VMs. The OP needs to come back and clarify.
 
1 members found this post helpful.
Old 11-01-2011, 11:38 AM   #5
lee_can
Member
 
Registered: Mar 2011
Posts: 118

Original Poster
Rep: Reputation: 1
Thanks guys for your quick replies.
If it is enough just to delete the *.vdi will be very good.

thanks again
 
Old 11-01-2011, 11:47 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by lee_can View Post
Thanks guys for your quick replies.
If it is enough just to delete the *.vdi will be very good.
If they are separate VMs that you created, then they are not on partitions. They use their own separate virtual disks.

If you created one VM in VirtualBox and dual-booted it (just like you would install multiple OSes on a real computer), they they are probably on partitions of the same virtual disk.

Last edited by MTK358; 11-01-2011 at 11:48 AM.
 
Old 11-02-2011, 01:14 PM   #7
lee_can
Member
 
Registered: Mar 2011
Posts: 118

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by MTK358 View Post
If they are separate VMs that you created, then they are not on partitions. They use their own separate virtual disks.

If you created one VM in VirtualBox and dual-booted it (just like you would install multiple OSes on a real computer), they they are probably on partitions of the same virtual disk.
I am sorry MTK358, but didn't understand well cause i don't have good experience in these.
"If they are separate VMs that you created" : i am not sure if i am answering correctly but i have installed the OS's on one Oracle VM VirtualBox and all OS's are separated from each other.

"If you created one VM in VirtualBox and dual-booted it" also not sure if i will reply correctly but you mean for example if i we took OSa, then on the same OSa i have installed another operating system OSb, so when i start the system, it will ask me what you want to choose OSa or OSb?

i am sorry man but i am not so familiar with these.

Best regards
 
Old 11-02-2011, 08:11 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by lee_can View Post
I am sorry MTK358, but didn't understand well cause i don't have good experience in these.
"If they are separate VMs that you created" : i am not sure if i am answering correctly but i have installed the OS's on one Oracle VM VirtualBox and all OS's are separated from each other.
Correct.

Quote:
Originally Posted by lee_can View Post
"If you created one VM in VirtualBox and dual-booted it" also not sure if i will reply correctly but you mean for example if i we took OSa, then on the same OSa i have installed another operating system OSb, so when i start the system, it will ask me what you want to choose OSa or OSb?
Correct, just like on a dual-booted physical machine.

This means that what you wanted to do when you posted the thread actually had nothing to do with partitions, instead you want to delete the virtual machines.
 
1 members found this post helpful.
Old 11-03-2011, 04:27 AM   #9
lee_can
Member
 
Registered: Mar 2011
Posts: 118

Original Poster
Rep: Reputation: 1
Thanks a lot MTK358.
Now it is clear.

Thanks again for all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hard disk partitions sarat @ IIT ROORKEE Linux - Newbie 3 10-02-2010 11:52 AM
How to clean the hard disk? aladin Linux - Software 2 08-30-2005 08:41 AM
Which sizes on hard-disk partitions? andersh3 Linux - Newbie 1 05-28-2004 11:22 AM
Hard Disk Partitions thenebula Linux - Newbie 8 10-24-2003 11:16 PM
Hard Disk Partitions bumsbunny Linux - Newbie 5 07-10-2001 09:10 PM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration