-   Linux - Newbie (
-   -   How to add additional hard disc after installation (

osward 03-13-2004 10:38 AM

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.:scratch:

Thanks is advance for your insight



Oliv' 03-13-2004 10:46 AM

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:

mount /dev/hdb1 /mnt/disk
It may ask you a filesytem... So try the -t option. For more informations about mount command:

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 ;)

osward 03-13-2004 11:31 AM


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



sterrenkijker 03-13-2004 11:45 AM

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.


Komakino 03-13-2004 12:11 PM

If the disk is totally blank, or formally held windows, you may want to convert it to ext3 using:

mke2fs -j /dev/hdb1
Then try:

mount /dev/hdb1 /mnt/music

michaelk 03-13-2004 12:43 PM

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?

osward 03-13-2004 08:02 PM

Thanks for the advise

The command

mke2fs -j /dev/hdb1
returns the following error

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 :

SATA Port1 Configure as [IDE Pri. Slave]
This drive is just out of the box, I did not make any partition to it


michaelk 03-14-2004 08:21 AM

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

Once partitioned then you can format the drive.

osward 03-16-2004 12:05 AM

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:p

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


sterrenkijker 03-28-2004 12:14 PM

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...

osward 03-28-2004 07:01 PM

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



All times are GMT -5. The time now is 09:08 AM.