LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-19-2002, 08:57 PM   #1
lusterko
LQ Newbie
 
Registered: Mar 2002
Posts: 1

Rep: Reputation: 0
Question new hard drive


hello and good evening everyone. i had the opportunity to pick up a sparc 20 machine at a great price, so i took advantage of the opportunity. i also purchased a new scsi hd that i had no problems installing into my machine. [it shows up during regular boot up phase] this is my very first *nix machine and i'm running red hat 6.2 -- my problem is that i do not know how to access this hard drive!

i noticed during bootup that i get configuration messages stating something about 'sdb#' ... i've tried to mount these file systems but i've not had any luck whatsoever. i'm in drastic need of storage space, and am desperate for someone to help me out so that i can access this drive.. :-)

thank you in advance,
-lusterko
 
Old 03-19-2002, 09:47 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Talking

well, first you have to setup partitions and format your new hard drive, you do this with fdisk


since you said it appears at boot up as sdb
s
type fdisk /dev/sdb where the is the new hd


partition the HD (type m for help on partitioning)


you will need to calculate blocks to MB or KB if you plan to configure more than one partition on the drive
fdisk, i believe allows you to configure up to 4 primary partions otherwise you create an extended partition, i don't use fdisk much so i don't know much about this, but once you are done, make sure the partition types are linux (hex code 83) or linux swap (hex code 82), write the partition table in fdisk, quit, then use mkfs -t ext2 /dev/sdbX where sdb is your drive and X is the partition number


mkswap if you want to make a swap partiton


then create directories in the /mnt directory (or anywhere really) as mount points for the new volumes (the partitions on the new drive)


then enter the volumes into the fstab along with the mount points and a few other arguments for each (emacs, or whatever editor you use /etc/fstab), or use linuxconf if you have it


once this is done, your new drive should be up and ready to go


note, inputting the new hd isn't 100% crucial for it to work, but if you do enter it into the fstab it can automatically mount at boot time, and be fscked at boot time as well


hope this helps, cheers

Last edited by frieza; 03-19-2002 at 09:58 PM.
 
  


Reply



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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:14 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
Open Source Consulting | Domain Registration