Koozali.org: home of the SME Server

IBays on seccond IDE drive

Technocod

IBays on seccond IDE drive
« on: August 05, 2002, 12:50:29 AM »
Is it possible to add a seccond IDE hard drive to an existing E-Smith server, and set any new IBays to use the space on this, without having to reinstall?

Nathan Fowler

Re: IBays on seccond IDE drive
« Reply #1 on: August 05, 2002, 06:12:29 AM »
Yes, it is quite easy.  Simply install the drive and modify /etc/fstab to point to the partition of the new drive.

Hope this helped,
Nathan

Johan

Re: IBays on seccond IDE drive
« Reply #2 on: August 05, 2002, 08:32:39 PM »
Hello, Technocod,

Read the follow topic off the forum

http://forums.contribs.org/index.php?topic=12043.msg45225#msg45225


This all what you need i think

Grtz

Johan

Technocod

Re: IBays on seccond IDE drive
« Reply #3 on: August 05, 2002, 10:41:07 PM »
Thankyou both for your posts - I'll try this out. I had tried to search the forums for my answer, but I guess I need to refine my search technique !

Thanks again

Technocod

Re: IBays on seccond IDE drive - oops, spoke too soon..
« Reply #4 on: August 06, 2002, 01:25:05 AM »
The thread says;

'look for the row

"LABEL=/boot "

Change here the row for a Ibay

example (in the orginal is it /dev/hdc1 /.....etc)

/dev/hdd1 /home/e-smith/files/ibays/mp3/html ext2 defaults 1 2

save the file with F10'

But my /etc/fstab contains;

LABEL=/boot             /boot                   ext2    defaults        1 2

rather than /dev/hdc1/....etc - as the post suggests.

You'll need to bear with me here, I know nothing much about Linux (which is what attracted me to esmith), so where am I going wrong? Do I just replace the seccond /boot for /dev/hdd1 or whatever the new drive becomes? TIA

Nathan Fowler

Re: IBays on seccond IDE drive - oops, spoke too soon..
« Reply #5 on: August 06, 2002, 02:04:50 AM »
Paste the contents of your existing /etc/fstab and tell me the name of the partition you are going to use for your new ibays folder and I'll give you the entry you need.

Thanks,
Nathan

Meert

Re: IBays on seccond IDE drive - oops, spoke too soon..
« Reply #6 on: August 06, 2002, 02:03:15 PM »
A quick related question:
what happens to files already in the original /home/e-smith/files/ibays/mp3/html folder once you mount a second IDE drive?

Nathan Fowler

Re: IBays on seccond IDE drive - oops, spoke too soon..
« Reply #7 on: August 06, 2002, 05:25:55 PM »
You would need to copy them to a temp folder and once mounted, copy them back to their original location.  I would recommend doing the following:

cd /home/e-smith/files
tar --create --gzip --file=/home/e-smith/files/ibays.tgz ibays
Then, once you have completed your changes and updated your mount point:

cd /home/e-smith/files
tar -zxvf ibays.tgz

Meert

Re: IBays on seccond IDE drive - oops, spoke too soon..
« Reply #8 on: August 06, 2002, 05:59:20 PM »
thanks, now if only I didn't want to do this with my movies ibay with 15 gig of movies :(

Technocod

Re: IBays on seccond IDE drive - oops, spoke too soon..
« Reply #9 on: August 07, 2002, 12:48:45 AM »
My fstab file;


File: fstab             Col 0              623 bytes                        100%


LABEL=/                 /                       ext2    usrquota,grpquota
 1 1
LABEL=/boot             /boot                   ext2    defaults        1 2
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
#none                    /dev/shm                tmpfs   defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/hda5               swap                    swap    defaults        0 0

The drive I'll be adding will be the primary slave, and will be formatted to one big partition - any ideas?

Nathan Fowler

Re: IBays on seccond IDE drive - oops, spoke too soon..
« Reply #10 on: August 07, 2002, 12:55:22 AM »
Add this line:
/dev/hd(X)          /home/e-smith/files/ibays       ext2       usrquota,grpquota    1,3


Where (X) is the partition number, such as /dev/hdb5, etc.

Hope this helped,
Nathan