public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* Re: Recognizing a hard drive
   ` Hugh Esco
@    ` Doug
     ` Shaun Oliver
  1 sibling, 0 replies; 7+ messages in thread
From: Doug @  UTC (permalink / raw)
  To: speakup

Run dmesg to show the boot messages, and look for the
hard drive letter assigned, for example hda, hdb, hdc.
It will usually show the vendor name (toshiba, ibm, etc)
so you can tell which drive is which. It also usually
shows number of cylinders, tracks, and heads.

fdisk or cfdisk can be used to partition the drive.
sfdisk can also be run from scripts to do this.

 > Use mkfs2ext, I think it is, again as root, to build
 > the file systems.

mke2fs /dev/hda3

(change the drive letter and partiton number)

You can change the file system to ext3 after
by using the tune2fs command.

   -- Doug



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Recognizing a hard drive
@  erik burggraaf
   ` Hugh Esco
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: erik burggraaf @  UTC (permalink / raw)
  To: speakup

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

Hi,  I've just put a new data drive in my toy linux box.  I know the drive is set up properly.  The jumpers are right, and everything, and I know the drive is functioning, because I can run it on it's own.
How do I go about mounting it and formatting it to ext2 for linux use?

Thanks,

Erik

[-- Attachment #2: Type: text/html, Size: 792 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Recognizing a hard drive
   Recognizing a hard drive erik burggraaf
@  ` Hugh Esco
     ` Doug
     ` Shaun Oliver
   ` Joseph C. Lininger
   ` Shaun Oliver
  2 siblings, 2 replies; 7+ messages in thread
From: Hugh Esco @  UTC (permalink / raw)
  To: erik burggraaf; +Cc: speakup

Use fdisk from a root prompt to set the partitions and the file system
types for each.  Use mkfs2ext, I think it is, again as root, to build the
file systems.  I may have that second command wrong.  Its in the /sbin or
/usr/sbin directories of your linux installation.

-- Hugh

On Mon, 14 Jul 2003, erik burggraaf wrote:

> Hi,  I've just put a new data drive in my toy linux box.  I know the drive is set up properly.  The jumpers are right, and everything, and I know the drive is functioning, because I can run it on it's own.
> How do I go about mounting it and formatting it to ext2 for linux use?
>
> Thanks,
>
> Erik
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Recognizing a hard drive
   Recognizing a hard drive erik burggraaf
   ` Hugh Esco
@  ` Joseph C. Lininger
   ` Shaun Oliver
  2 siblings, 0 replies; 7+ messages in thread
From: Joseph C. Lininger @  UTC (permalink / raw)
  To: speakup

Hello,
How much Linux experience do you have? This way, I know how much detail to go in to on the matter.

-- 
Joseph C. Lininger
jbahm@pcdesk.net

On Mon, 14 Jul 2003, erik burggraaf wrote:

> Hi,  I've just put a new data drive in my toy linux box.  I know the drive is set up properly.  The jumpers are right, and everything, and I know the drive is functioning, because I can run it on it's own.
> How do I go about mounting it and formatting it to ext2 for linux use?
>
> Thanks,
>
> Erik
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Recognizing a hard drive
   Recognizing a hard drive erik burggraaf
   ` Hugh Esco
   ` Joseph C. Lininger
@  ` Shaun Oliver
  2 siblings, 0 replies; 7+ messages in thread
From: Shaun Oliver @  UTC (permalink / raw)
  To: speakup

*SNIP*
How do I go about mounting it and formatting it to ext2 for linux use?

first of all, you don't mount the drive until after you've formatted it.
you need to repartition it in anycase before reformatting.
use fdisk or cfdisk for that task, fyi, I meant the linux version of
fdisk.

once you've partitioned the drive you can format it and then mount it on
whatever mount point you desire.
hth

-- 
Shaun Oliver
"Becareful of the toes u step on today, they maybe connected to the ass you have to kiss tomorrow!"

EMAIL: shaun_oliver@optusnet.com.au
ICQ: 76958435
YAHOO: blindman01_2000
MSN: blindman_2001@hotmail.com
AIM: captain nemo 200
IRC: irc.awesomechat.net:6666
IRCNICK: blindman
CHANNELS: #awesomeradio #mircpopup-magic #linux #help #ourworld #audiofile #mauisun


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Recognizing a hard drive
   ` Hugh Esco
     ` Doug
@    ` Shaun Oliver
       ` Joseph C. Lininger
  1 sibling, 1 reply; 7+ messages in thread
From: Shaun Oliver @  UTC (permalink / raw)
  To: speakup

*SNIP*
Use mkfs2ext, I think it is, again as root, to build the
file systems.  I may have that second command wrong.

you're right about it being wrong,
the command is mke2fs /dev/xxx where xxx is the partition number you
want to format.
if I remember some of my basics correctly, and anyone feel free to jump
down my throat and tell me to go learn it again if I have it wrong,
your ide devices are listed as follows.
/dev/hda the primary master,
/dev/hda1 through 4 are the first 4 primary partitions on the disk
/dev/hda5 is an extended partition and anything above that is a logical
partition.
/dev/hdb if memory serves is the second ide device on the first ide
channel.
and /dev/hdc is the secondary master on the second ide channel and
/dev/hdd is the secondary slave on that second ide channel.
I hope I got it right please god let it be so.

-- 
Shaun Oliver
"Becareful of the toes u step on today, they maybe connected to the ass you have to kiss tomorrow!"

EMAIL: shaun_oliver@optusnet.com.au
ICQ: 76958435
YAHOO: blindman01_2000
MSN: blindman_2001@hotmail.com
AIM: captain nemo 200
IRC: irc.awesomechat.net:6666
IRCNICK: blindman
CHANNELS: #awesomeradio #mircpopup-magic #linux #help #ourworld #audiofile #mauisun


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Recognizing a hard drive
     ` Shaun Oliver
@      ` Joseph C. Lininger
  0 siblings, 0 replies; 7+ messages in thread
From: Joseph C. Lininger @  UTC (permalink / raw)
  To: speakup

You have it mostly right. The only correction I'd make is that the extended partition is not listed as a /dev/hda<x>. Rather, /dev/hda5 is just your first logical drive. There wouldn't really be any reason to list the extended partition as a number anyway since you can't do anything with it except use it to get around the 4 partition limit.

-- 
Joseph C. Lininger
jbahm@pcdesk.net

On Tue, 15 Jul 2003, Shaun Oliver wrote:

> *SNIP*
> Use mkfs2ext, I think it is, again as root, to build the
> file systems.  I may have that second command wrong.
>
> you're right about it being wrong,
> the command is mke2fs /dev/xxx where xxx is the partition number you
> want to format.
> if I remember some of my basics correctly, and anyone feel free to jump
> down my throat and tell me to go learn it again if I have it wrong,
> your ide devices are listed as follows.
> /dev/hda the primary master,
> /dev/hda1 through 4 are the first 4 primary partitions on the disk
> /dev/hda5 is an extended partition and anything above that is a logical
> partition.
> /dev/hdb if memory serves is the second ide device on the first ide
> channel.
> and /dev/hdc is the secondary master on the second ide channel and
> /dev/hdd is the secondary slave on that second ide channel.
> I hope I got it right please god let it be so.
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Recognizing a hard drive erik burggraaf
 ` Hugh Esco
   ` Doug
   ` Shaun Oliver
     ` Joseph C. Lininger
 ` Joseph C. Lininger
 ` Shaun Oliver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).