LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 03-13-2004, 09:38 AM   #1
osward
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
Question How to add additional hard disc after installation


Hi all,

I am only a week into linux, so my quiestion might look stupid.

I have two hard disk on my linux box and I accidentally missed one during installation. I am running Trustix 2.0 which has no GUI

How am I going to have linux see this hard disk. I supposed it would be in /mnt if this had been define during installation but don't know how I can make it work.

Thanks is advance for your insight

Regards,

Osward
 
Old 03-13-2004, 09:46 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,
To see it for the first time, you need to mount it. So define a mount point, for example /mnt/disk (I suppose this directory doen't exist so create it with mkdir). Then do:
Code:
mount /dev/hdb1 /mnt/disk
It may ask you a filesytem... So try the -t option. For more informations about mount command:
Code:
man mount
After succeeding, you may want to mount it at each boot. To do that, edit /etc/fstab and put the good options in the good column
 
Old 03-13-2004, 10:31 AM   #3
osward
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the advise, However I couldn't really get it done.

I had created a directory /mnt/music

When I type mount /deb/hdb1 -t /mnt/music it asked me for a file system.

The facts is this is a blank hard disc and I do not know which file system should I put. The hard disc itself is a 80G SATA hard disc

Where should I go from here

Regards,

Osward
 
Old 03-13-2004, 10:45 AM   #4
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
The action failed because your command was wrong. It should have been something like

mount -t vfat /dev/hdb1 /mnt/music

However, your partitiontype could be ntfs too. Then you have to replace vfat by ntfs. But try

mount /dev/hdb1 /mnt/music first, that should do the trick.

Another thing that could have gone wrong: I don't know which of your disk is the first, where you installed linux and how you partitioned you other disk. If your first disk is for the music it would be hda, instead of hdb. If you have a logical partition it would be a 5 or more, instead of a 1. If it's your second partition on that disk it would be 2 etc. Maybe you should give more information, like disk, partitioning scheme and filesystem, so we can help better. Than I could also tell you how to make linux automatically mount that partition when booting.

Corien
 
Old 03-13-2004, 11:11 AM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
If the disk is totally blank, or formally held windows, you may want to convert it to ext3 using:
Code:
mke2fs -j /dev/hdb1
Then try:
Code:
mount /dev/hdb1 /mnt/music
 
Old 03-13-2004, 11:43 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,561

Rep: Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684
Where you installed the drive determines its device id? Where is it installed?
You posted the drive is blank but is it partitioned?
Did you format the drive?
 
Old 03-13-2004, 07:02 PM   #7
osward
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the advise

The command
Code:
mke2fs -j /dev/hdb1
returns the following error
Quote:
mke2fs: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
My drive ia a SATA hard disc. I had reboot the system and go into the BIOS and it said :
Quote:
SATA Port1 Configure as [IDE Pri. Slave]
This drive is just out of the box, I did not make any partition to it

Regards
 
Old 03-14-2004, 07:21 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,561

Rep: Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684
You need to partition it before you can format. Use the fdisk command.
fdisk /dev/hdb

Once partitioned then you can format the drive.
 
Old 03-15-2004, 11:05 PM   #9
osward
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for all the advise and help but still couldn't work

I tried a stupid way and install another copy of Trustix in my 2nd hard disc and I can mount the dirive with my orginal copy.

Another problem I had created and/or screwed up with this is , it looks for the 2nd copy in my second hard disc during bootup, I use Grub as bootloader

I managed to change the bootloader to boot from /dev/hdb1 to /dev/hda1 and it use my first copy.

When I removed all the content in hdb and put in other content, when I reboot, the system couldn't boot say that Grub error.

The distribution disc comes with a rescue option for me to boot from CD and can access the drive as mnt/sysimage.

Please advise where should I modified the gurb so I can boot from my first harddisc

Thanks for your help

Regards
 
Old 03-28-2004, 11:14 AM   #10
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
Think you must boot into the OS on your first harddisk, and then reinstall grub. Must be a command like grub -v install or something, but check the manpage first, cause I've nearly forgotten the command.

But not very sure, quite an uncommon situation...
 
Old 03-28-2004, 06:01 PM   #11
osward
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the advise sterrenkijker

I have to end up reinstall the system and it's OK now. This is a good exercise for me though and I can be more familiar with how linux and programs were being installed

Thanks again guys for all the time

Regards

Osward
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add additional checking edhan Linux - Newbie 9 06-11-2005 10:02 PM
HELP: Fedora corrupted my Windows hard disc/installation roddy Linux - Software 1 09-17-2004 07:28 PM
Very easy method to add additional port for SSH? aulix Linux - Networking 6 07-17-2004 08:50 PM
Add Additional Hard Drives rawdave Linux - Newbie 3 03-17-2004 09:47 AM
RH8, would it be possible to add additional language support after installation? luoluotu Linux - Newbie 3 12-20-2002 05:11 AM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration