Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

format a hard drive in Linux


  • Please log in to reply
5 replies to this topic

#1 defurman

defurman

  • Members
  • 128 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Wales
  • Local time:12:53 AM

Posted 14 October 2010 - 04:13 AM

My friend was running Ubuntu 10.04 and decided to download the latest flavour of Ubuntu which is Ubuntu 10.10. Unfortunately the download stopped and she was informed that there wasn't enough disk space available to complete the download. So after un-installing all unnecessary software she still couldn't complete the download. So she opened up the Disk Usage Analyzer and immediately noticed the following:

Total filesystem capacity 100%
Total filesystem usage 100%

Now the computer she is using is 6 year old and the hard drive is the original that came with the machine when new. As my friend cannot afford a new hard drive and she is only accessing the Internet by using a "Live Ubuntu 10.10 CD". The computer only has a single hard drive. So would it be possible to format this hard drive whilst using the Live CD?

She intends to use this tutorial to format the hard drive.

Thanks

BC AdBot (Login to Remove)

 


#2 Ramchu

Ramchu

  • Members
  • 112 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA- Illinois
  • Local time:05:53 PM

Posted 14 October 2010 - 07:14 AM

As my friend cannot afford a new hard drive and she is only accessing the Internet by using a "Live Ubuntu 10.10 CD"


Did you mean Ubuntu 10.4 live cd - as you said that the Ubuntu 10.10 download did not complete ?

Why not save any files that she may want to keep to CD, USB stick, ect...
Then she could reinstall Ubuntu 10.4 from the live CD and from there - then - should be able to download Ubuntu 10.10 and burn it to a disc as a live CD and then install Ubuntu 10.10.

Doing the reinstall or a new install will format the HD there is no need to do a format first .

Edited by Ramchu, 14 October 2010 - 07:18 AM.


#3 ice2921

ice2921

  • Members
  • 177 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:VA
  • Local time:06:53 PM

Posted 14 October 2010 - 07:22 AM

Assuming you can still boot to the original install, I would suggest you look a little deeper into some things you could clean up. If you haven't already I would perform the following steps to clean up some space.

1. Package cleanup

from the terminal type the following:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

2. empty the trash. I know it sounds silly, but you would be surprised how much space it takes up if you forget.

-Empty the trash.

3. Go back through and double check for some programs that can be removed. Perhaps you have some old kernels that could be removed.


Remember you directly upgrade from 10.04 to 10.10 and the installation takes between 3-4 Gb hard drive space, and 8 - 10 Gb will be needed to run comfortably.

You can perform the upgrade like this:

1.Open the Software Sources application from the System -> Administration menu

2.Select the sub menu Updates from the Software Sources application and Change the Release Upgrade drop down to "Normal Releases" and close the application
3.Press Alt-F2 and type update-manager
4Click the Check button to check for new updates.
6.If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
7.A message will appear informing you of the availability of the new release.
8.Click Upgrade.
9.Follow the on-screen instruction

I know your original question was about formatting your drive via a live cd, but I just wanted to give some options before formatting. So to answer your original question; the best way to wipte a drive on a live cd is by using a tool called wipe. you can use the following procedure to wipte your drive:

wipe is part of the Universe repository, which is not enabled by default. you need to enable it by clicking on Settings > Repositories in the Synaptic Package Manager window.

Check the checkbox next to “Community-maintained Open Source software (universe)”. Click Close.

You’ll need to reload Synaptic’s ( if that's what you are using ) package list. Click -- >>Click reviews on the Reload button in the main Synaptic Package Manager window.

Wait until it reads “Quick search,” and then type “wipe” into the search field.

Click on the checkbox to the left of the label “wipe” and select “Mark for Installation”.

Click on the Apply button to start the installation process. Click the Apply button on the Summary window that pops up.

Once the installation is done, click the Close button and close the Synaptic Package Manager window.

Open a terminal window

You need to figure our the correct hard drive to wipe.

In the terminal window, type in:

sudo fdisk -l

A list of your hard drives will show up. A few factors will help you identify the right hard drive. One is the file system, found in the System column of the list. The other is the size of the hard drive.

To start the wiping process, type the following into the terminal:

sudo wipe /dev/"yourdrive"

Your hard drive will be completely wiped. It may take some time to complete, depending on the size of the drive you’re wiping.

hope this helps

#4 Ramchu

Ramchu

  • Members
  • 112 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA- Illinois
  • Local time:05:53 PM

Posted 14 October 2010 - 07:36 AM

Follow ICe2921 advice 1st.

I do not use Ubuntu I use PCLinuxOS and although Linux is basically Linux each Distro has its individual differences

Thanks for your added advice here Ice2921

#5 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:11:53 PM

Posted 14 October 2010 - 01:16 PM

What size of hard drive are we dealing with here?

#6 Chris_Pool

Chris_Pool

  • Members
  • 42 posts
  • OFFLINE
  •  
  • Local time:05:53 PM

Posted 19 October 2010 - 01:25 AM

GPARTED




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users