Koozali.org: home of the SME Server

Problem adding 1TB Sata hdd as extra drive

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Problem adding 1TB Sata hdd as extra drive
« on: August 03, 2008, 10:53:39 AM »
Hi,

I've read the manual http://wiki.contribs.org/AddExtraHardDisk. Situation is this:
SME with two 160GB IDE drives in software raid.

I have an i-Bay called 'intern' I want to link to a Sata 1 TB harddrive to store all kinds of
large files to be shared on LAN.

When I do df -T I get:

Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/mapper/main-root
                   ext3   156526460  98023496  50551812  66% /
/dev/md1      ext3      101018     16555     79247  18% /boot
none            tmpfs      224928         0    224928   0% /dev/shm
/dev/sda1     ext3   961432072    110680 912483392   1% /mnt/newdisk

Whet I reboot I get:
Aug  2 14:45:45 server rc.sysinit: Checking filesystems succeeded
Aug  2 14:45:45 server mount: mount: special device /dev/sda1 does not exist
Aug  2 14:45:45 server rc.sysinit: Mounting local filesystems:  failed

I Fstab I added line:
/dev/sda1 /mnt/newdisk ext3 userquota, grpquota 0 0

I also tried:
/dev/sda1 /mnt/newdisk ext3 usrquota,grpquota 1 2

I always get the same error:
special device /dev/sda1 does not exist

Is it possible 1 TB is just too large? Should I try making it use 2 partitions?

Any help or suggestions? Much appreciated.

Regards,

Jan
...............

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #1 on: August 03, 2008, 08:07:14 PM »
Here's everything I know about mounting USB disks: http://wiki.contribs.org/USBDisks

According to Wikipedia the ext3 file system supports volumes ranging from from 2TB to 16TB

One of the joys of USB drives on SME is that they might connect to /dev/sda today, but /dev/sdb tomorrow (or after reboot)...

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #2 on: August 03, 2008, 10:14:29 PM »
Hi Mmccarn,

Its good to know it isn't a problem of a too large a disk. However its an internal sata disk and not an USB version.

Maybe its the fstab afterall?

If there are any more suggestions I'm very interested.

With kind regards,

Jan
...............

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #3 on: August 05, 2008, 12:05:05 PM »
Maybe I made a mistake in the fstab? Here it is:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/main/root        /                       ext3       usrquota,grpquota        1 1
/dev/md1               /boot                 ext3       defaults                      1 2
none                     /dev/pts             devpts    gid=5,mode=620           0 0
none                     /dev/shm            tmpfs      defaults                      0 0
none                     /proc                  proc       defaults                      0 0
none                     /sys                   sysfs      defaults                      0 0
/dev/main/swap      swap                  swap      defaults                      0 0
/dev/sda1              /mnt/newdisk       ext3       usrquota,grpquota        0 0
/dev/hdc                /media/cdrom      auto       pamconsole,exec,noauto,managed 0 0

Hope this helps identify my mistake... assuming I made one ;-)

With kind regards,

Jan
...............

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #4 on: August 05, 2008, 02:42:44 PM »
Can you mount the new drive manually (mount /dev/sda1 /mnt/newdisk)?

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #5 on: August 05, 2008, 02:47:55 PM »
Yes I can.
...............

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #6 on: August 05, 2008, 03:55:33 PM »
What happens if you replace
/dev/sda1              /mnt/newdisk       ext3       usrquota,grpquota        0 0

with
/dev/sda1              /mnt/newdisk       ext3       defaults        0 0

Why not mount the drive directly to the i-bay:
/dev/sda1  /home/e-smith/files/ibays/intern/files  ext3  defaults  0 0

or
/dev/sda1  /home/e-smith/files/ibays/intern  ext3  defaults  0 0
(after emptying .../intern...)

Also, even though the earlier-referenced howto is for USB disks, everything mentioned would work perfectly well with any disk.

You could label your drive using e2label, which will keep it mounting at the same location in your file system even if you move the drive itself to another sata connector (assuming you mount it using the LABEL=... syntax).

Since you can mount it from the command line, you should be able to mount it using a custom template-fragment in /etc/e-smith/events/local, if you can't get fstab figured out.

What do you get in /etc/mtab after manually mounting /dev/sda1?

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #7 on: August 09, 2008, 12:33:34 AM »
Hi Mccarn,

I tried mounting it directly to the i-Bay. When rebooting it still insists sda drive does not exist.
When I mount the drive manually mtab shows:

/dev/mapper/main-root / ext3 rw,usrquota,grpquota 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/md1 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sda1 /home/e-smith/files/ibays/intern/files ext3 rw 0 0

I really do not know what I am overlooking here.

the fstab file btw shows:
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/fstab/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/main/root          /                       ext3    usrquota,grpquota      $
/dev/md1                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/main/swap          swap                    swap    defaults        0 0
/dev/sda1 /home/e-smith/files/ibays/intern/files ext3   defaults        0 0


If you have any idea what I am doing wrong here please let me know. Help
is always welcome! :-)

With kind regards,

Jan
...............

Offline slords

  • *****
  • 235
  • +3/-0
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #8 on: August 09, 2008, 03:58:57 AM »
Try this piece of code and see if it helps.  Before running it please ensure that the drive you want mounted on boot is mounted.

Code: [Select]
for ver in $(ls /lib/modules)
do
    [ -r /boot/initrd-${ver}.img ] && mkinitrd -f /boot/initrd-${ver}.img $ver
done
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline jreijsenbach

  • ****
  • 71
  • +0/-0
    • http://www.bh24.net
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #9 on: August 10, 2008, 06:55:48 AM »
Hello Slords,

When running the code no error messages or other messages are displayed.

I still get message on reboot reading: mount special device /mnt/sda1 does not exist.

Any ideas?

Regards,

Jan
...............

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Problem adding 1TB Sata hdd as extra drive
« Reply #10 on: August 13, 2008, 03:09:50 AM »
SME may be mounting filesystems before loading USB drivers - in which case your only option would be to run some sort of script after the usb drivers finish loading.