How do you format a disk?

How do you format a disk?

Post by Tony Mejia Rosari » Sat, 12 Jul 2003 09:48:39



How would you format/slice/newfs/mount a disk on Linux. ?
currently im running Red Hat 8 on Intel.
On Sun Solaris I ll normally attached the disk run devfsadm,
format -partition-label
newfs the slice, and then mount whatever directory I would like to use.

Thanks

Tony Mejia

 
 
 

How do you format a disk?

Post by Dances With Crow » Sat, 12 Jul 2003 10:33:23


On Fri, 11 Jul 2003 00:48:39 GMT, Tony Mejia Rosario staggered into the
Black Sun and said:

Quote:> How would you format/slice/newfs/mount a disk on Linux. ?  currently
> im running Red Hat 8 on Intel.
> On Sun Solaris I ll normally attached the disk run devfsadm, format
> -partition-label newfs the slice, and then mount whatever directory I
> would like to use.

There are typically 2 steps:

Partitioning-- "cfdisk DISK", where DISK is the device name of the whole
disk you want to partition.  DISK is /dev/hda for the IDE disk on the
primary master, /dev/hdb for primary slave, /dev/hdc for secondary
master, etcetera.  DISK is /dev/sda for the first SCSI disk, /dev/sdb
for the second, etcetera.

Making a filesystem (newfs)-- "mke2fs -j PARTITION" or "mkreiserfs
PARTITION".  PARTITION is typically something like /dev/hda1 or
/dev/sda5 .  If you're not familiar with the way the x86 handles
partitions, you can have up to 4 primary partitions on one disk.  One of
those primary partitions can be an "extended" partition, which can
contain many "logical" partitions.  Primary partitions are numbered 1-4.
Logical partitions are numbered 5-15 (SCSI) or 5-63 (IDE).

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /
http://www.brainbench.com     /  "He is a rhythmic movement of the
-----------------------------/    penguins, is Tux." --MegaHAL

 
 
 

How do you format a disk?

Post by Carl Fin » Sat, 12 Jul 2003 11:58:58


In addition to what the friend of corvines posted, may I suggest that
a quick look at www.tldp.org would have found the "Hard Disk Upgrade
Mini-HOWTO" which has lots and lots of information for you.
--

Jabootu's Minister of Proofreading
http://www.jabootu.com
 
 
 

How do you format a disk?

Post by Skylar Thompso » Sat, 12 Jul 2003 11:53:36



Quote:> How would you format/slice/newfs/mount a disk on Linux. ?
> currently im running Red Hat 8 on Intel.
> On Sun Solaris I ll normally attached the disk run devfsadm,
> format -partition-label
> newfs the slice, and then mount whatever directory I would like to use.

The standard tool to create partitions (Linux doesn't use slices) is fdisk.
There is also GNU parted, which does much the same thing, but has a friendlier UI.

After creating the partition, use the mkfs tools, with the appropriate -t
flag to specify filesystem type.

Once done with that, use mount to mount the filesystem at whatever
mount-point you want. Again, use the -t flag to specify the filesystem.

--

-- http://os2.dhs.org/~skylar/

 
 
 

1. SLS's a2-disk - DOS-formatted or raw-formatted??

I am confused. I don't know if for the SLS installation I need to have
disk-a2 raw-formatted (as disk-a1) or DOS-formatted.
Currently, I have it DOS-formatted having the following:

   BIN4     TGZ    161664 07-25-93   2:47a
   DISKA2             896 07-25-93   2:47a
   DOSEMU   TGZ    157568 07-25-93   2:53a
   FAQ      TAR     92160 07-25-93   2:57a
   IMAGE    TGZ    257280 07-25-93   3:06a
   LILO     TGZ     63360 07-25-93   3:08a
   SC       TGZ     90880 07-25-93   3:12a
   SHLIBS   TGZ    125184 07-25-93   3:16a
   TERM107  TGZ    131968 07-25-93   3:21a
           9 file(s)    1080960 bytes
                         131584 bytes free

.. but it failed to satistfy the 'doinstall' procedure.

In the -  "Answers to FAQ about Linux" -FAQ- Version 1.18 - it says

on 5.2.1 (page 27):
  "The Softlanding Linux System Release ......
   The first disk must be "rawriteen" (using rawrite.exe) on the floppy
   and the rest of the images are put onto DOS format floppies."
and on page 29:
   "The files in the a2,a3 and a4 directories. These must be copied to
   MS-DOS formatted floppies."

B U T  in 5.2.5 (page 31):
  "For the SLS release, ......
   You need the README's there. Basically, you use rawrite to copy
   thae a1 and a2 images onto floppies.

          ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?
          W h a t   i s  t h e   r i g h t   a n s w e r
          ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?  ?


Many thanks! yotam

2. Extended partition question

3. can't format a dos-formatted floppy disk

4. fonts worry in Sol.2.6

5. How do I get my disk drive to read DOS formatted disks?

6. Does 2.0.30 support EAPCI?

7. Help - Jaz disk: DOS-formatting on Solaris2.5?

8. modem prob. (not winmodem issue)

9. Reading files off a DOS formatted floppy disk

10. dos formatted iomega disks under solaris ?

11. copying files onto DOS formatted disk

12. Reading/Using DOS formatted disk with Linux

13. How to mount a floppy disk of DOS format?