LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-31-2004, 11:11 AM   #1
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Rep: Reputation: 15
Formatting ?


Is there a way to format my hard drives from Suse 7.0. I am trying to install Mandrake 9.2. I know that Mandrake has a utility for that but it does NOT work. All the installs freeze before getting there... My technician is convinced that I loaded Distro's to many time on my hard drive and thats why its not letting me install. I WANT TO DO A LOW LEVEL FORMAT ON MY HARD DRIVES, i do not have internet access on suse 7.0 so i cannot download then directly... Anything I do will have to be burned on a CDRom from WIN XP and then booted up on my Suse 7.0 Machine. My hard drives are a quantum fireball CR 6.0GiG and a 3.4 WD Caviar. Please Help
 
Old 01-31-2004, 11:12 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
If you have IDE drives you better not do a low level format if you ever hope to use them again. To format a drive you just run mkfs.<fs> /dev/hdxy where x and y designate drive and partition.

I have probably formatted my drives 200 times and they are still kicking....
 
Old 01-31-2004, 11:16 AM   #3
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
what are the common hd designators... like hdb2 ... or what... sorry i am new to this
 
Old 01-31-2004, 11:22 AM   #4
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
is there a way to see your hardware and the designators like hd1, hdd2... i feel like i am so close...
 
Old 01-31-2004, 11:25 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
type mount and it should print out a list like this:

/dev/hde3 on / type reiserfs (rw,noatime)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev type devfs (rw)
none on /dev/pts type devpts (rw)
/dev/hde1 on /boot type reiserfs (rw,noatime,notail)
/dev/hdh1 on /storage type reiserfs (rw,noatime)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)

Now you can see from this that on my machine
/dev/hde1 is /boot
/dev/hde3 is /
/dev/hdh1 is /storage

If you are wondering where /dev/hde2 went, it happens to be my swap partition.
Of course mount only shows you mounted partitions. Typing dmesg will show you a list of your disk and how many partitions are on it, but you have to wade through it to find the list, because it outputs all the kernel messages.
 
Old 01-31-2004, 11:25 AM   #6
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
ok maybe this will help... i have the 3.4 gig on primary master and the 6 gig on primary slave
 
Old 01-31-2004, 11:27 AM   #7
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ya, but what is your partition layout on those disks?

hda is primary master, hdb is primary slave
hda1 is the first partition on primary master, hda2 is the 2nd partition, and so on.
Same goes for hdb.
 
Old 01-31-2004, 11:28 AM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Also keep in mind you can't really format your root partition when you are running off it, that could cause problems.
 
Old 01-31-2004, 11:35 AM   #9
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
oh ok... well here is where i am ...
bash-2.04# mount
/dev/hdb3 on / type ext2 (rw)
proc on /proc type proc (rw)
/dev/hdb1 on /boot type ext2 (rw)
usbddevfs on /proc/bus/usb type usbdevfs (rw)
devpts on /dev/pts type devpts (rw)
bash-2.04# mkfs.<fs> /dev/hdb3
bash: fs: No such file or directory
bash-2.04# mkfs.<fs> /dev/hdb1
bash: fs: No such file or directory
bash-2.04# mkfs.</dev/hdb3>
bash: syntax error near unexpected token 'mkfs. </dev/hdb3'
bash-2.04#

what should should the command be?
 
Old 01-31-2004, 11:38 AM   #10
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
ok well I am in root permission when i am doing these commands, should i be somewhere else... please help with command structure =)
 
Old 01-31-2004, 11:42 AM   #11
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
oh, sorry, by mkfs.<fs> I ment you need to substitute your file system type for <fs>. Examples are
mkfs.ext2
mkfs.ext3

Only exception is reiserfs which is mkreiserfs
 
Old 01-31-2004, 11:47 AM   #12
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
bash-2.04# mkfs.ext2 /dev/hdb3
mke2fs 1.18m 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
/dev/hdb3 is mounted; will not make filesystem here!
bash-2.04#
 
Old 01-31-2004, 11:47 AM   #13
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
do i need to login without X interface? then type it?
 
Old 01-31-2004, 12:34 PM   #14
kaz4u2dig
Member
 
Registered: Jan 2004
Distribution: Suse Pro 9.0
Posts: 84

Original Poster
Rep: Reputation: 15
i guess you cannot format your hard drive from linux... i suppose that makes sense... if you using it... but like in windows... you have dos to do that for you... is there any solution to my formatting problem... or any help with my command structure... or any ideas on how to help would be great....
 
Old 01-31-2004, 01:01 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,200

Rep: Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089Reputation: 6089
The MDK installer should be able to repartition and format the hard drive.
Explain the steps you are trying, maybe your just selecting the wrong option.

Go to www.linuxmakdrake.com and read the install documentation.

Yes, you can partition and format from linux but not on a partition that is in use. The best way if your trying to reformat the entire drive is to boot up from a CD or floppy boot disk.

So lets go back and explain what are the errors with installing Mandrake
 
  


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
Formatting??? Tipidy Linux - Software 5 03-21-2005 05:55 PM
help formatting Tinku Linux - General 17 01-04-2005 12:27 PM
Formatting Parradux Slackware 4 12-25-2004 05:54 PM
Formatting help. Ra1n Linux - Newbie 3 05-14-2004 10:42 PM
formatting bnumark Linux - Software 3 07-21-2003 03:24 AM

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

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