Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: jreijsenbach 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
-
Here's everything I know about mounting USB disks: http://wiki.contribs.org/USBDisks
According to Wikipedia (http://en.wikipedia.org/wiki/Ext3) 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)...
-
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
-
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
-
Can you mount the new drive manually (mount /dev/sda1 /mnt/newdisk)?
-
Yes I can.
-
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?
-
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
-
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.
for ver in $(ls /lib/modules)
do
[ -r /boot/initrd-${ver}.img ] && mkinitrd -f /boot/initrd-${ver}.img $ver
done
-
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
-
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.