Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2nd. SATA on FC3 1

Status
Not open for further replies.

nctechno

Technical User
Sep 10, 2005
67
US
I'd like to ask how to make FC3 see a second SATA HD and format it so that the system sees both HDs?
 
First thing to do it plug it in and see what the system sees it as.
Run "dmesg | less" in a terminal and page through it (with the spacebar) slowly until you see the SATA hard disks. Now note down what device they are registered as.
For reference, mine are sda and sdb as shown below:
Vendor: ATA Model: ST3120026AS Rev: 3.05
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
SCSI device sda: drive cache: write back
sda: sda1
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: ATA Model: ST3120026AS Rev: 3.05
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sdb: 234441648 512-byte hdwr sectors (120034 MB)
SCSI device sdb: drive cache: write back
SCSI device sdb: 234441648 512-byte hdwr sectors (120034 MB)
SCSI device sdb: drive cache: write back
sdb: sdb1 sdb2 sdb3
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Next you'll need to partition it up and format it.
When you have the devices, come back here.
BTW: It would also be useful for you to examine your /etc/fstab to see which device is active and which is not.
You'll need to partition and format the new drive and then add it to fstab.
We'll talk about it when you get that far.


Trojan.
 
They are both there. Both bios and FC3 see both drives. As far as which is active or inactive, I have to say the first drive since I just added the second HD after os was running. Where do I go from here to partition and format the second drive?
 
You need to know what each is referred to as. That's why I suggested you check dmesg.
mine are /dev/sda and /dev/sdb respectively, yours could be different.
Also check /etc/fstab to see which one appears in there so that you don't partition and format the wrong drive!!!
Post all results please and I'll help further.


Trojan.
 
This is what I got. The second HD is the same make and model of the first drive. This is what I see for the first drive: SDA: sda1 sda2

For the second drive, after SDB: unknown partition table.

So I would assume that it is sdb that needs to be partitioned and formatted????
 
Yes, sounds cool.
Just trying to make sure you don't destroy all your hard work!
Now run up a terminal session and type "su -". Then give it the "root" password to become superuser.
Now type "fdisk /dev/sdb" (and I hope you're right it's sdb).
Yhis is the tool that will allow you to add partitions to your disk.
You could try "parted /dev/sdb" instead but I've never tried parted before. You might find it easier.
Now add your partitions.
If you need help with that, drop me another line with the details of how you want to partition the drive.
When you're done, we'll move on. Keep the terminal open, you're gonna need it!!!! ;-)


Trojan.
 
I'm on it now. I am logged as root already. You may want to send me the info on adding partitions as I don't know how to go about that.
 
I have done the fdisk /dev/sdb. It gave me some info and warnings on dos and non-dos partitions. Then I typed N for add a partition, made it primary and W for write table and exit. How do I format that partition now?
 
ok, you need to set the type with "t" to linux (82 I think).
Once you've done that you format it with "mkfs.ext3".
You'll probably find the only param you'll need will be the device file for the partition in question.
e.g.
"mkfs.ext3 /dev/sdb1"
Each partition is numbered from 1 upwards so this will format ("create a filesystem on" in linux talk) the first partition.


Trojan.
 
In type, 82 is for Linux Swap and 83 is for Linux. Which one should I use. this is not to be a raid system. Just a secondary HD.
 
Cool
Where are you on the planet?
Europe? Stateside?
What time is it with you now?
It's 9:30pm here (UK) so I wont get to help much more tonight.


Trojan.
 
Im at the root of the terminal and when I type mkfs.ext3/dev/sbd1, I get "no such file or directory"

I went back and verified the partition and it is there. Should I have done something else between setting the partition and attempting to format it?
 
Trojan I am in the western US. about 1:30 pm now. I got to leave for now too. Mom's B'day today. I sure hope I can finish thig thing soon; it is taking all my time.
 
Yep but with respect, you're a bit of a newbie with linux and you're trying to act as a seasoned sysadmin.
You're doing well but it's gonna take time for each step.
I'll try to catch up with you again tomorrow then.
Best wishes to mum (or mom as you guys say) for me please!


Trojan.
 
I will, and thank you for all the assistance you have provided me today. I sure hope to hear from you tomorrow. I can use every bit of guidance you can provide.
 
Again, Im at the root of the terminal and when I type mkfs.ext3/dev/sbd1, I get "no such file or directory"

I went back and verified the partition and it is there. Should I have done something else between setting the partition and attempting to format it?

At what point in my screen do I type the command? I tried it at the very first screen of the terminal and that is when I got the error message noted above.
 
You need a space between a command and it's parameters
Spaces are crucial in linux.
"mkfs.ext3 /dev/sbd1"
OK?



Trojan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top