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 Regards, Osward |
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 Code:
man mount |
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 |
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 |
If the disk is totally blank, or formally held windows, you may want to convert it to ext3 using:
Code:
mke2fs -j /dev/hdb1 Code:
mount /dev/hdb1 /mnt/music |
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? |
Thanks for the advise
The command Code:
mke2fs -j /dev/hdb1 Quote:
Quote:
Regards |
You need to partition it before you can format. Use the fdisk command.
fdisk /dev/hdb Once partitioned then you can format the drive. |
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 Regards |
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... |
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 |
All times are GMT -5. The time now is 01:03 PM. |