LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-10-2008, 12:25 PM   #1
Teenna
LQ Newbie
 
Registered: Nov 2008
Location: I'm not really sure
Distribution: Debian Etch 4.0
Posts: 17

Rep: Reputation: 0
Question Format Windows partition


Hello,
I want to format my windows partition /dev/hda1 and let it ready to use with my personal things under GNU/Linux OS. I don't know how to do that.

My GNU/Linux partition is in /dev/hda2 (ext3) and linux-swap in /dev/hda3. I have also an ullocated space that I can't format (don't know why and how it got there).

At start up my PC, Grub gives me the option to choose in which OS I want to go in.

I'm realizing now that I don't know how to ask.

Just want to have a partition with Debian and its updates and configurations, etc. and have a different partition to store whatever I want (movies, music, data,etc). And I don't' know how to make the format and how to configure it so Debian can read it like another "directory"

If someone can help me I really will appreciated and I promise to follow any instructions. I was googling and there's no good information neither I don't know what to do first... and second... and....

Be gentle please, I'm a really baby on GNU/LInux but I want to be FREE from Windows Empire now.
 
Old 12-10-2008, 01:09 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Teenna View Post

I want to format my windows partition /dev/hda1 and let it ready to use with my personal things under GNU/Linux OS.
This procedure will cause you to lose all data on /dev/hda1. Be sure to back up everything you want on /dev/hda1 to someplace else before you format /dev/hda1.

Open a terminal so that you can enter commands on the command line.

You may have an entry in /etc/fstab to automatically mount /dev/hda1 every boot. Edit /etc/fstab and remove any line that mounts /dev/hda1.

Unmount /dev/hda1 with the umount command:
sudo umount /dev/hda1

Format /dev/hda1 using the mkfs command. See:
man mkfs
for an explanation of how mkfs works. Most likely you will want to use an ext3 filesystem so the command for ext3 would be:
sudo mkfs -t ext3 /dev/hda1

Now create a directory to mount /dev/hda1 on. For example:
mkdir /home/yourusername/data

Mount /dev/hda1 on your mountpoint. For example:
mount -t ext3 /dev/hda1 /home/yourusername/data

Once you get things working the way that you want put a line in /etc/fstab to mount /dev/hda1 automatically at every boot.

You also may want to edit /boot/grub/menu.lst and remove the boot entry for Windows.

--------------------------
Steve Stites

Last edited by jailbait; 12-10-2008 at 01:15 PM.
 
Old 12-10-2008, 01:41 PM   #3
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 636
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
Some ideas about disk partitioning to consider

Your post also begs the question of whether or not it may make sense to reorganize your disk and set up a few partitions for specific use. If you really are intent on getting rid of Windows, congratulations, though my recommendation would be to back up what you had there, and also keep a "recovery disk" or CD that may have come with your system. Too many times I have heard of people who intended to say Goodbye to Windows, then later had some reason to come back - maybe even to try things out, such as showing newcomers how Windows and Linux can co-exist, or maybe running that one last application that you liked. Either way, with a small investment, you can make sure to at least allow that possibility, should the need ever arise. At the same time, I congratulate you on your choice! I have to use XP at work, and I have a copy at home, too, which I use a couple of hours a week in order to access FrontPage XP, but other than that, I run MANY Linux distros all the time.

I keep a single swap partition and share it among all of the distros. I did not use to make it very large because I like to avoid swap and run apps from memory instead of paging or swapping, as much as I can, but a swap partition is a good safety net, plus it enables you to use Hibernate and Suspend functions, which save power, but allow you to come up quickly after being away.

Therefore, if you are able, first back up everything you had.

Then, if you are willing, scrap even your Linux stuff and reorganize. You may want to create a specific partition for /home. Then when you reinstall or upgrade systems, /home need not get affected, it merely needs to be mounted following an installation. You may optionally also want to create one or more separate data partitions, such as /data, or /data1, etc., but as long as you have /home you can always store things there. If you intend to save a lot of media content, make the place where you are saving it the largest that you can.

You can probably get away with as little as 5 GB for your / partition, providing that you have /home somewhere else, but that leaves very little head room for growth, especially on larger distributions. 10 GB ought to be plenty, given that you are using separate /home and/or /data partitions, but if you want this to scale for years, perhaps even 20 GB might be worth it. My guess is that anything larger than that, you are likely to want to replace the system before all of that gets eaten up, unless you are a total software pack rat!

Let's say you have a 160 GB disk. How about carving it up this way?

1. /dev/sda1 - 10 GB for your primary OS.
2. /dev/sda2 - another 10 GB for another OS, maybe one to experiment with.
3. /dev/sda3 - 2 GB for swap - make it double memory if you can, so with 2 GB memory, make it 4 GB.
4. /dev/sda4 - Extended partition - make this take up the rest of the disk.
5. /dev/sda5 - /home - ext3 logical partition within the extended partition. If you want to have only a /home, then I suppose you do not even need an extended partition, just make /home be the rest of /dev/sda4. But if you want to divide the disk up more, such as the use of /data partitions, and maybe separate /var or /tmp partitions, then create the extended partition and then make a series of logical partitions, starting with 5. I'd make /home at least 80 GB unless you store your media stuff on one of those data partitions. In that case, make /home 20 GB and make those data partitions huge.

cfdisk is a great tool to carve up disk partitions. You can read about it at http://manual.sidux.com/en/part-cfdisk-en.htm
 
Old 12-10-2008, 04:25 PM   #4
Teenna
LQ Newbie
 
Registered: Nov 2008
Location: I'm not really sure
Distribution: Debian Etch 4.0
Posts: 17

Original Poster
Rep: Reputation: 0
I want never to get back to Windows. I think that what GNU/Linux (all distros) can't do, we -the GNU/Linux users- have to be able to create it. I'm a dreamer? No. I know this is true. I feel like part of a "new" generation of OS users that like to learn and create more than to obey. I had used from DOS 20 years ago to Windows XP two weeks ago and I am very good at it. But that "at it" means to be good reading instructions from programs that were created to obey their rules such as: "OOPPS we miss this so update yourself paying more for a license that your already had payed" or buying new equipment every 6 months because our OS is so full of sh.. that it never will fit in any space. I also need more space to say: -big swindle to our pocket, to our intelligence and also to our freedom.
OK sorry about all that, I think I just needed to take it out of my chest.

Masinick:
thank you very much for your answer. I'll take some advices from what you posted
Code:
keep a single swap partition and share it among all of the distros. I did not use to make it very large because I like to avoid swap and run apps from memory instead of paging or swapping, as much as I can, but a swap partition is a good safety net, plus it enables you to use Hibernate and Suspend functions, which save power, but allow you to come up quickly after being away.
My HD is not that big but I like the organization you suggested.

Code:
Let's say you have a 160 GB disk. How about carving it up this way?

1. /dev/sda1 - 10 GB for your primary OS.
2. /dev/sda2 - another 10 GB for another OS, maybe one to experiment with.
3. /dev/sda3 - 2 GB for swap - make it double memory if you can, so with 2 GB memory, make it 4 GB.
4. /dev/sda4 - Extended partition - make this take up the rest of the disk.
5. /dev/sda5 - /home - ext3 logical partition within the extended partition. If you want to have only a /home, then I suppose you do not even need an extended partition, just make /home be the rest of /dev/sda4. But if you want to divide the disk up more, such as the use of /data partitions, and maybe separate /var or /tmp partitions, then create the extended partition and then make a series of logical partitions, starting with 5. I'd make /home at least 80 GB unless you store your media stuff on one of those data partitions. In that case, make /home 20 GB and make those data partitions huge.
jailbait:
I will follow your instructions step by step. I already backup my personal data from /dev/hda1.

Thank you both for answering.
 
Old 12-10-2008, 04:40 PM   #5
Teenna
LQ Newbie
 
Registered: Nov 2008
Location: I'm not really sure
Distribution: Debian Etch 4.0
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
Open a terminal so that you can enter commands on the command line.

You may have an entry in /etc/fstab to automatically mount /dev/hda1 every boot. Edit /etc/fstab and remove any line that mounts /dev/hda1.
--------------------------
Steve Stites
OK...
first thing, this is my /etc/fstab and I can't find any mountpoint for hda1
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda3       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda4 /mnt/zip250.0 vfat noauto,user 0 0
When I open GParted it said:

Code:
/dev/hda1  ntfs  /mountpoint/ubsdisk  boot(flags)
I recalled that at first I can't mount this partition, so to be able to "see it" I follow instructions to mount it like this.

Is this a problem, what can I do?
 
  


Reply



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
Format Windows partition inside linux. How? lebabyg Linux - Newbie 9 03-17-2006 03:23 PM
Windows partition asks for FORMAT!!!! FLX Linux - Software 5 04-08-2005 01:40 PM
Windows partition has bad sectors. Will 'dd' work in place of low level format? gkneller Linux - Software 5 02-26-2004 11:35 PM
partition format with windows compatiblity jpc82 Linux - General 4 10-11-2003 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:21 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
Open Source Consulting | Domain Registration