Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: k0r54 on April 13, 2007, 06:33:43 PM
-
Hi,
For some reason when i mount my usb hdd (which has plenty of room) to sme and start copyin across the ibays to back them up. It copies so much and then stopped. After trying many times, i done df -h to check the size and my usb had plenty of space left but my sme hard drive was full, after i remove it from the usb drive and then reboot the system its fine again. The hdd on sme is 180Gb and i am using about 160gb (about 50gb on ibays). My usb has plenty of room on it it is a 320gb.
Any ideas why it is doing that?
Thanks
k0r54
-
Hi
check that your usb drive is correctly mounted where you expect it to be.
use "df -P "
Looks like you are performing the backup on a mount point where nothing is attached so it's only a directory entry on you main hdd
G.
-
hi,
yes it is mounted to the right place.
Thanks
k0r54
-
hi,
yes it is mounted to the right place.
Thanks
k0r54
How/where did you mount it?
Show output of:
# df -P
Before and after you mount the USB drive.
-
hi
I have mounted it by mount /dev/sda2 /media/backup/
df -P before
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/main-root 190103268 153305412 27141128 85% /
/dev/md1 101018 18926 76876 20% /boot
none 517208 0 517208 0% /dev/shm
and after
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/main-root 190103268 153305448 27141092 85% /
/dev/md1 101018 18926 76876 20% /boot
none 517208 0 517208 0% /dev/shm
/dev/sda2 109082784 32812 104544384 1% /media/backup
Thanks
k0r54
-
That all looks good. Lets see:
# fdisk -l /dev/sda
(-l is a lower case L)
# cat /etc/fstab
Also, how are you attempting to copy files?
-
Hi,
Ok i go to the ibay directory cp * /media/backup
the fdisk is
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 6374 51199123+ c W95 FAT32 (LBA)
/dev/sda2 6375 20397 112639747+ 83 Linux
/dev/sda3 20398 38913 148729770 7 HPFS/NTFS
and fstab
#------------------------------------------------------------
# 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 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
LABEL=LinuxBackup /media/backup auto auto,defaults 0 0
/dev/sda3 /media/WHSBackup ntfs pamconsole,exec,noauto,managed 0 0
/dev/sda2 /media/LinuxBackup ext3 pamconsole,exec,noauto,managed 0 0
/dev/sda1 /media/SEA_DISC vfat pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
Thanks
k0r54
-
"I have mounted it by mount /dev/sda2 /media/backup/"
I didn't see that before, don't mount it that way because it doesn't match your fstab entries. Mount it like this:
mount /dev/sda2
and let fstab mount it correctly. Then show df -P
-
hey,
ok it now looks like
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/main-root 190103268 153306336 27140204 85% /
/dev/md1 101018 18926 76876 20% /boot
none 517208 0 517208 0% /dev/shm
/dev/sda2 109082784 32812 104544384 1% /media/LinuxBackup
looks the same though?
Thanks
k0r54
-
Look closer, they are different:
Old way:
/dev/sda2 109082784 32812 104544384 1% /media/backup
New way:
/dev/sda2 109082784 32812 104544384 1% /media/LinuxBackup
Now you should be able to copy using:
cp * /media/LinuxBackup
-
and check you do not have a large /media/backup directory created previously :
du -sk /media/*
G.
-
and check you do not have a large /media/backup directory created previously :
du -sk /media/*
G.
Oh ya, that too :-)
-
Hi,
Worked a treat,
Thanks very much
Adam