On Tuesday 09 November 2004 21:39, Dylan wrote:
On Tuesday 09 Nov 2004 20:58 pm, David James Pettifor wrote:
Hi,
I'm looking for some advice with regards using a second hard disk with SUSE Linux Professional 9.1. So far I have carried out the following. Logged in as root user and partitioned my new hard disk with fdisk, using the command fdisk /dev/hdb1. I then formatted the partition with the following command, mke2fs /dev/hdb1.
What I want to know now, is how I go about mounting the drive?
First, you need to decide where you want to mount it and create the mount point. I have my second drive mounted at /media/data so I'll assume that here.
So, create the mount point:
md /media/data
then mount it 'manually' to make sure all is fine:
mount -t ext2 /dev/hdb1 /media/data
substitute ext3 for ext2 if you told mke2fs to create the journal. You can get info on the mount options by typing
man mount
in a terminal/console, or
man:mount
in konqueror. Now, just type:
mount
to see if it's mounted. You should see:
/dev/hdb1 on /media/data type ext(2/3) (<some parameters>)
along with other stuff. To be extra sure, type:
df -h
to have the machine tell you how much space is on each mounted fs. You should see something like:
Filesystem Size Used Avail Use% Mounted on /dev/hda1 6.0G 966M 4.7G 17% / tmpfs 126M 8.0K 126M 1% /dev/shm /dev/hdc2 7.6G 881M 6.3G 13% /home /dev/hdg2 111G 36G 70G 34% /srv/nfs/data /dev/hdg1 40G 13G 25G 35% /srv/nfs/install
with your new drive in the list.
So far, so good. Now to make it mount on boot. Open /etc/fstab in your favourite text editor and add the line:
/dev/hdb1 /media/data ext2 defaults 1 1
again, use ext3 is appropriate, and you can find out about the options in man mount. Next, unmount the fs with
umount /dev/hdb1
use mount on its own to make sure it is unmounted, and make the machine mount it by reading /etc/fstab :
mount -a
use mount on its own again to make sure it has mounted. You will need to set the permissions on the mount point to your requirements while it is mounted.
HTH
Dylan
I want the second hard drive to act as extra space for my own documents, such as mp3's, photos, movie files etc.
Any advice, most appreciated. -- David
.~. / ^ \ /| |\ simply change .\ /. .^.
-- "I see your Schwartz is as big as mine" -Dark Helmet Wow!
That sure did help! I have not tried anything out as yet but I sure will do with such thorough advice. One thing though, what does the following mean?
substitute ext3 for ext2 if you told mke2fs to create the journal. -- David
.~. / ^ \ /| |\ simply change .\ /. .^.