Operating Systems > Linux and UNIX

formatting

(1/2) > >>

Stryker:
I have 2 hard drives right now, I need to have the second one be a backup drive to the first one. I wrote a simple script to do it, but I need to partition and format the disk. How would I go about doing this?

KernelPanic:
You want the formatting as part of the script?

Stryker:
no, just a one time thing. like the format command in windows.

KernelPanic:
First fdisk the disk and make your neccesary partitions using

--- Code: ---
--- End code ---

then do


--- Code: ---
--- End code ---

to format it.

Next you need to mount it using the 'mount' command. Or put it in mtab/fstab.

Stryker:
Alright, I got it. mke2fs /dev/hdb1

Navigation

[0] Message Index

[#] Next page

Go to full version