LinuxQuestions.org
Register a domain and help support LQ
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 08-30-2004, 10:10 AM   #1
tbartolucci
LQ Newbie
 
Registered: Jun 2004
Location: DC Metro
Distribution: debian
Posts: 16

Rep: Reputation: 0
Installing a SCSI Hard drive


I'm trying to install a new drive in a server. It's a Seagate SCSI drive.

Running sg_map shows that it has been detected at:

/dev/sg3 but it is not mapped to anything.

I need to map it to say: /dev/sdd

Then I know I need to run fdisk to partition it and mk2efs -j to create the file system then mount it.

So how do I map /dev/sg3 to /dev/sdd ?
 
Old 08-30-2004, 12:15 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Maybe I have got the wrong end of the stick but....
If the drive is detected at /dev/sg3 then you should be able to run fdisk like this:

#fdisk /dev/sg3

and then you can

#mk2efs -j /dev/sg3

then mount it.

If you also want to refer to it as /dev/sdd then perhaps you chould make a link?

Hope this helps
 
Old 08-31-2004, 08:57 AM   #3
tbartolucci
LQ Newbie
 
Registered: Jun 2004
Location: DC Metro
Distribution: debian
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by tredegar
Maybe I have got the wrong end of the stick but....
If the drive is detected at /dev/sg3 then you should be able to run fdisk like this:

#fdisk /dev/sg3

and then you can

#mk2efs -j /dev/sg3

then mount it.

If you also want to refer to it as /dev/sdd then perhaps you chould make a link?

Hope this helps
When I type fdisk /dev/sg3 nothing appears to happen, should it prompt me? it just seems to hang.

Last edited by tbartolucci; 08-31-2004 at 09:03 AM.
 
Old 08-31-2004, 09:34 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
You say "When I type fdisk /dev/sg3 nothing appears to happen,"

Well, something should happen. When I try that command, fdisk says "Unable to open /dev/sg3", which is not surprising as I do not have a /dev/sg3 (That strikes me as a weird device number anyway).

Let's start at the beginning.
You have installed a new SCSI drive. Did you set it's SCSI ID number correctly? Is the SCSI Bus terminated correctly? Does your SCSI controller "see" your new disk?

What SCSI controller are you using? If it's a Adaptec, there's usually something you can press at power-on to set up the controller ( a bit like the procedure to set up your PS's BIOS ) and make sure that it is scanning the SCSI bus for, and is seeing your new disk.

When I ran a SCSI unix system (years ago I admit), the SCSI disks appeared as /dev/sda /dev/sdb etc. Their partitons were then referred to as /dev/sda1 /dev/sda2 etc. "sg3" is weird.

I am unfamiliar with Debian, and do not know anything about sg_map.
 
Old 08-31-2004, 09:37 AM   #5
tbartolucci
LQ Newbie
 
Registered: Jun 2004
Location: DC Metro
Distribution: debian
Posts: 16

Original Poster
Rep: Reputation: 0
SG_MAP shows this: /dev/sg3 is the 3rd, newest, drive to be installed

nnco2:/var/log# sg_map
/dev/sg0 /dev/sda
/dev/sg1 /dev/sdb
/dev/sg2 /dev/sdc
/dev/sg3

SG_SCAN shows this:

nnco2:/var/log# sg_scan
/dev/sg0: scsi0 channel=0 id=0 lun=0 type=0
/dev/sg1: scsi0 channel=0 id=1 lun=0 type=0
/dev/sg2: scsi0 channel=0 id=2 lun=0 type=0
/dev/sg3: scsi0 channel=0 id=8 lun=0 type=3

Is the id number wrong? If so how do I change this? Its in an IBM eServer so I just mounted it in the tray and put it in.

If I type fdisk /dev/sdd I get unable to open /dev/sdd which makes sense.

Last edited by tbartolucci; 08-31-2004 at 09:40 AM.
 
Old 08-31-2004, 01:50 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Ok:
1] I have no idea what an "IBM eServer" is, but it probably doesn't matter. Is it a mainframe or desktop PC?
2] I still do not understand this sg business, but your "sg_map" and "sg_scan" appear to show that the latest device is:

/dev/sg3: scsi0 channel=0 id=8 lun=0 type=3

It's SCSI ID is 8, which may be OK as it is different from the other disks IDs, but some SCSI controllers only support 8 devices: it might be an idea to set this disk's SCSI ID to 3 (sort of logical if you look at how the other disks have been allocated SCSI IDs). You usually do this on the disk itself: there will be jumpers for you to set the ID number in a binary fashion: Check your disk's documentation - it should tell you, or get its model number and search seagate (or google).

The other thing that is worrying is that sg_scan shows your new disk to be of "type=3", whereas all the other disks are type=0. I cannot do "man sg_scan", as I do not have this utility, but you could. Find out what it means by "type".

fdisk -l (that's a lower case L) may give you some useful information on what is where.

PS what filesystem are you using? If it is RAID, then I am WAY out of my depth here.
Sorry to be slow replying, I have a real job as well
Hope this helps.
 
  


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
Second Hard Drive IDE vs SCSI OrganicX General 7 01-17-2006 08:23 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Scsi Hard Drive BittaBrotha Linux - Hardware 6 11-20-2005 07:12 PM
SCSI Hard Drive Not On the List (Installing 10.0) tonylmiller Mandriva 5 05-17-2004 01:36 AM
SCSI hard drive _ben_deb_ Debian 4 12-22-2003 09:03 AM


All times are GMT -5. The time now is 08:28 PM.

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