LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-22-2003, 02:06 AM   #1
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Rep: Reputation: 15
Thumbs up Configuring hard disk which has no OS


Hi all,
I am working in the following environment. Red Hat Linux 8.0, kernel 2.4.18-14 with Intel 810E chipset. I am having 2 hard disks. In the first hard disk I had installed the OS and the second is empty. Say suppose I am downloading a file. I want to save the file in the empty hard disk rather than the hard disk which contain the OS. How to do this ? How to configure the empty hard disk from the hard disk which contains the OS ?

With Regards,
S.Suriya Mohan.
 
Old 08-22-2003, 02:10 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
FIrst you'll need to set up its info.

You could use parted or other partitioning software to create its table. (List what partitions it has and of what type.)

Then format it with the correct filesystem.

Then mount it.
mkdir /mnt/newdisk
mount -t ext3 /dev/hdxx

Where xx is the partition your trying to mount. (I.e. if its one partition on the whole disk and its the slave on the primary IDE then its hdb1)
 
Old 08-22-2003, 02:10 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
'mkreiserfs' (or the fs of your choice) and then 'mkdir' and mount the drive/partition. Edit fstab to make it permanent.
 
Old 08-22-2003, 02:17 AM   #4
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
cfdisk /dev/hdX (the blank disk)
create a partition
then do this:
mkfs.ext3 /dev/hdX1
or
mkreiserfs /dev/hdX1

then you can moutn it like:
mount /dev/hdX1 /mnt/hd
then /mnt/hd is where it is until you umount /dev/hdX1 or reboot.
 
Old 08-22-2003, 09:04 AM   #5
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Original Poster
Rep: Reputation: 15
Thumbs up Accessing empty hard disk from hard disk with OS

Hi all,
Suggest me how to do hardware conncetions between the hard disk with OS and the empty hard disk. One hard disk is connected to the primary and the other to the secondary of the motherboard with 2 separate IDE cables. The output of df command is as follows.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdc8 18888420 4121624 13807316 23% /
/dev/hdc7 101089 17272 78598 19% /boot
none 62816 0 62816 0% /dev/shm

How to address the blank hard disk ? like /dev/hdX.
How to create partition ?
Can I use one IDE cable to connect 2 hard disks ? How to make the hardware connection in such a way that the hard disk with OS recognise the empty hard disk ?

With Regards,
S.Suriya Mohan.
 
Old 08-22-2003, 12:01 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Definitely, you can use the same cable, as long as it's got two connectors. I'd recommend that over two separate ones. It would be hdd, assuming an IDE drive, whereas now it'd maybe be hda or hdb. Put it on the middle of the cable, with the primary on the end. Then, on the back of the drive there are jumpers you're going to need to set - master as master and slave as slave. If you have problems after that, maybe poke around in the BIOS. If this is an unformatted disk, it should be brand new - aren't there manufacturers instructions?

Sorry for screwing it up and leaving out a somewhat important step but everybody else addressed your second question, though I prefer fdisk - '(c)fdisk /dev/hdd'.
 
  


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
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
Reclaim disk partition from hard disk installation EStester Linux - General 1 03-09-2005 11:25 AM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM
Configuring Hard disk meluser Linux - Hardware 3 06-11-2003 07:00 AM

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

All times are GMT -5. The time now is 06:25 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