LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-04-2008, 03:42 AM   #1
jweseth
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Format hard drive


Hello all

can any one help me how to format hard drive imean get ready for linux software i have used always windows but now will try linux but little confused.
waiting for reply you can mail me at dilwalaa@hotmail.com
Thanks
Jweseth
 
Old 12-04-2008, 04:04 AM   #2
skob
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
if i understand correct you want to install linux on an hard disk?

most linux distros installer do guide you through the partitioning, where the formatting will be done.
all you need is a free partition or free space on your hard drive.
 
Old 12-04-2008, 04:08 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Hi,

When you install linux, it will format the drive for you, the way you want it.
You can use the whole drive, partition the drive, hence you can even install both OSes on the same drive.
If you want dual boot, first partition the drive, then install windows, then install linux and the bootloader.
 
Old 12-04-2008, 04:11 AM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
In addition if you already use windows for a while it is better to defrag the windows partition before resizing it for linux.
Assuming you are going to dual boot

Last edited by ronlau9; 12-04-2008 at 04:12 AM. Reason: add info
 
Old 12-04-2008, 05:55 AM   #5
lakedude
Member
 
Registered: Jun 2005
Distribution: Puppy, Sabayon
Posts: 141

Rep: Reputation: 16
Quote:
Originally Posted by jweseth View Post
Hello all

can any one help me how to format hard drive imean get ready for linux software i have used always windows but now will try linux but little confused.
waiting for reply you can mail me at dilwalaa@hotmail.com
Thanks
Jweseth
My advice would be not to install Linux at all, at least at first.

Most all Linux distro will work from a "Live CD" with no need what so ever to be properly installed to a hard drive.

Play around with a few different distros and see if you can find one you like for sure before erasing your tried and true Windows OS.
 
Old 12-04-2008, 06:54 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,765
Blog Entries: 27

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Hi,

Welcome to LQ!

A lot of newbies or new LQ members really don't know where to start. LQ is a great forum, especially the Slackware forum. I'm biased towards Slackware and the Slackware-LQ forum. I want to be able to give back and this is one of the avenues that I've chosen.

I would first read the LQ-Rules. Believe me this will save you a lot of heart ache and problems. I know from experience. I re-read them occasionally just to remind myself.

After that you should look at Find Your LQ Answer to search for a possible answer to your queries before posting. Most newbie questions or problems have been addressed already.

I would then read How to Ask Questions the Smart Way. Sometimes you need a hint or a push in the right direction on how to formulate a question about a problem.

I like to suggest that a new Linux user get counted by registering at the Linux Counter. And if you think you can pass the Nerd Test then you should register at the Linux Counter.

I try too maintain the 'Slackware-Links' .
This wiki has a lot of GNU/Linux and Slackware links that are helpful to all.

I would suggest that you look at 'Rute Tutorial & Exposition', 'Linux Newbie Admin Guide' & 'Linux Command Guide' to get some good background.

I refer you too 'The LiveCD List' to choose a LiveCD. Not all distributions have a LiveCD.


I hope this is helpful to you.
 
Old 12-04-2008, 07:10 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
And even MORE advice: Don't put your e-mail address in a post.

1. Replies will get posted in the thread and not privately (a private response defeats the purpose of the forum)

2. You are inviting a SPAM attack.
 
Old 12-04-2008, 05:16 PM   #8
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
Remember, if you want a dual-boot installation

If you have Vista, you should use Vistas own partitioning tool to change the size of your Vista installation to free space for linux.
 
Old 12-04-2008, 05:31 PM   #9
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
dd can also format.
 
Old 12-04-2008, 05:39 PM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Quote:
Originally Posted by geniushasan View Post
dd can also format.
If you mean the same "dd" tool that we use to copy directly from block devices, no, it can't. And it's not intended to format anything.

dd will only read bytes from a file and put them into another. It usually is used on device nodes which points to massive storage devices. But it can be used to copy from/to files.

dd doesn't care at all about file systems, it doesn't know what a file system is, and hence, if can't format nor translate filesystems. I will just read your disk byte by byte, and dump those raw bytes wherever you tell them to do so.

Definitely, dd is not a tool that I would instruct a newbie to use unless it's on a very well justified situation, and with very concrete instructions, since it can completely destroy everything in your disk(s) irrecoverably.
 
Old 12-04-2008, 05:42 PM   #11
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
irrecoverably this is why i am suggesting it, people who are watching porno its the best deal for them to format using dd ( its no way i am relating to anyone here ), i came to know that the data is non recoverable from The Great Zero Challenge.
 
Old 12-04-2008, 05:45 PM   #12
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
and thanks for correcting me dd is not a formating tool, although i have used dd several times on my hard drive to format so that the lost data cannot get recovered.
 
Old 12-04-2008, 05:58 PM   #13
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Well, that's still not formating. That's "overwriting". In that case, dd will not only overwrite the drive with zeros, but also wipe any filesystem that is there around. If you dd with zeros a partition or drive you can't mount it back because the file system is gone.

So you still need to format the drive after doing that with mke2fs or whatever the correct tool for your fs is. Maybe a graphical frontend does it for you but the drive needs a proper format. Formatting and filling with zeros is not the same. Otherwise, there wouldn't be a difference between the zeros of a FAT volume and an Ext3 one
 
Old 12-04-2008, 06:43 PM   #14
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
For those who still want or need Vista

I understand that having Vista shrink its own partition preserves its ability to boot. Linux partition tools will move Vista, but not to the benefit of its function.
 
Old 12-04-2008, 08:36 PM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,765
Blog Entries: 27

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Hi,

I am stepping into this 'formatting issue'.

Code:
excerpt from 'man dd';

DD(1)                            User Commands                           DD(1)

NAME
       dd - convert and copy a file

SYNOPSIS
       dd [OPERAND]...
       dd OPTION

DESCRIPTION
       Copy a file, converting and formatting according to the operands.
Code:
excerpt from 'man mke2fs'
:~# man mke2fs
Formatting page, please wait...
SYNOPSIS
       mke2fs [ -c | -l filename ] [ -b block-size ] [ -f fragment-size ] [ -g
       blocks-per-group ] [ -i bytes-per-inode ] [ -I inode-size ] [ -j ] [ -J
       journal-options  ] [ -N number-of-inodes ] [ -n ] [ -m reserved-blocks-
       percentage ] [ -o creator-os ] [ -O feature[,...]  ] [ -q ]  [  -r  fs-
       revision-level  ]  [  -E  extended-options ] [ -v ] [ -F ] [ -L volume-
       label ] [ -M last-mounted-directory ] [ -S ] [ -T filesystem-type  ]  [
       -V ] device [ blocks-count ]

       mke2fs -O journal_dev [ -b block-size ] [ -L volume-label ] [ -n ] [ -q
       ] [ -v ] external-journal [ blocks-count ]

DESCRIPTION
       mke2fs is used to create an ext2/ext3 filesystem  (usually  in  a  disk
       partition).   device  is  the  special file corresponding to the device
       (e.g /dev/hdXX).  blocks-count is the number of blocks on  the  device.
       If  omitted,  mke2fs  automagically  figures  the file system size.
The command 'dd' can be used to format a device to a known set. 'DD' can be used to clear a device but don't expect a filesystem unless that is what you will be doing; 'dd if=/dev/sda1 of=/dev/sda2 bs=4096 conv=notrunc,noerror' will copy partition sda1 to '/dev/sda2'. If sda1 contains a filesystem then a copy will be on '/dev/sda2'. If sda1 is smaller than 'sda2' then be certain to run rsync. 'Learn the DD command' is a good LQ post too reference.

The filesystem you create on the block device will be used to store files within. That is why you would use the 'mke2fs' to create a ext2/ext3 filesystem on a partition or device. You could choose to use other filesystem types but the idea is the same.

So too close, you can use 'dd' to format but not create a filesystem but 'dd' can be used to convert a file or copy to a device. To make a filesystem on a device you must create one with the disk utilities. The type must be selected by the user.
 
  


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
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 06:30 AM
format hard drive mav69_1999 Linux - Newbie 5 07-08-2004 04:53 PM
Can't format hard drive aisphording Linux - Hardware 5 06-14-2004 04:02 PM
format hard drive trackrat Linux - General 3 02-25-2004 10:40 PM
I can't format my hard drive! help! justin9 Linux - Newbie 9 07-09-2003 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:52 AM.

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