Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Technocod on August 05, 2002, 12:50:29 AM

Title: IBays on seccond IDE drive
Post by: Technocod 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?
Title: Re: IBays on seccond IDE drive
Post by: Nathan Fowler 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
Title: Re: IBays on seccond IDE drive
Post by: Johan 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
Title: Re: IBays on seccond IDE drive
Post by: Technocod 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
Title: Re: IBays on seccond IDE drive - oops, spoke too soon..
Post by: Technocod 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
Title: Re: IBays on seccond IDE drive - oops, spoke too soon..
Post by: Nathan Fowler 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
Title: Re: IBays on seccond IDE drive - oops, spoke too soon..
Post by: Meert 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?
Title: Re: IBays on seccond IDE drive - oops, spoke too soon..
Post by: Nathan Fowler 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
Title: Re: IBays on seccond IDE drive - oops, spoke too soon..
Post by: Meert 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 :(
Title: Re: IBays on seccond IDE drive - oops, spoke too soon..
Post by: Technocod 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?
Title: Re: IBays on seccond IDE drive - oops, spoke too soon..
Post by: Nathan Fowler 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