Koozali.org: home of the SME Server

USB harddisk, mountpoint recognized, when i write to this its fills up sme hd

Offline painkiller

  • **
  • 66
  • +0/-0
i installed a usb harddisk on SME. In tail -f /var/log/messages the usb drive is mounted on usbdisk. When i let affa write to this destination the harddisk of sme is running full.
I won't write to the usb disk its look like its just a normal directoy then a mountpoint.
Someone has a idea how i can fix this?


Offline misnerspace

  • *
  • 58
  • +0/-0
What's the output when you execute the df command? Could you copy the results into your next post?

Offline painkiller

  • **
  • 66
  • +0/-0
partition table :

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       19457   156288321   83  Linux

Command (m for help):

tail -f /var/log/

Sep  5 19:41:31 server kernel: USB Mass Storage device found at 11
Sep  5 19:41:31 server scsi.agent[23892]: disk at /devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2:1.0/host8/target8:0:0/8:0:0:0
Sep  5 19:43:04 server kernel: usb 1-2: USB disconnect, address 11
Sep  5 19:43:25 server kernel: usb 1-2: new full speed USB device using address 12
Sep  5 19:43:25 server kernel: scsi9 : SCSI emulation for USB Mass Storage devices
Sep  5 19:43:25 server kernel:   Vendor: USB 2.0   Model: Storage Device    Rev: 0100
Sep  5 19:43:25 server kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Sep  5 19:43:25 server kernel: SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Sep  5 19:43:25 server kernel: sda: assuming drive cache: write through
Sep  5 19:43:25 server kernel: SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Sep  5 19:43:25 server kernel: sda: assuming drive cache: write through
Sep  5 19:43:25 server kernel:  sda: sda1
Sep  5 19:43:25 server kernel: Attached scsi disk sda at scsi9, channel 0, id 0, lun 0
Sep  5 19:43:25 server kernel: USB Mass Storage device found at 12
Sep  5 19:43:25 server scsi.agent[24131]: disk at /devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2:1.0/host9/target9:0:0/9:0:0:0


df

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/main-root
                     114178680  41040432  67338312  38% /
/dev/md1                101018      9579     86223  10% /boot
none                    257528         0    257528   0% /dev/shm


strange, know it won't mount at all

Offline byte

  • *
  • 2,183
  • +2/-0
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline misnerspace

  • *
  • 58
  • +0/-0
have you tried mounting it manually? i.e. something like

mount /dev/sdb1 /media/usbdisk1

you need to check which dev your usb disk it is, on mine sda1 is my hard disk and sdb1 is my usb disk

Offline painkiller

  • **
  • 66
  • +0/-0
If i connect the usb disk the log gives me the above answer this must be /dev/sda1 that's also the partition i made. Its has to be somethint else that isn't working.

Offline Arnie

  • ***
  • 81
  • +0/-0
  • Old Dog, New Tricks.
As you can see by the df output, the disk does not mount automatically. Plugging the disk in will result in SME automatically creating the /media/usbdisk directory, but you still have to manually mount the disk.

Code: [Select]
mount /media/usbdisk

Or, you can use the usb disk contrib and mount it via server-manager.
...

Offline misnerspace

  • *
  • 58
  • +0/-0

I had a similar 'problem' a while back. To make sure it was mounted a copied a large file to the mounted directory and checked to see if the usb disk's disk access lights flicked on (which they did). The big problem I had was identifying the device name

Can you copy and paste the contents of your /dev/ directory?

On mine I noticed the device files sdb, sdb1, sdb2 which turned out to the files for newly attached usb drive which I mounted by: mount /dev/sdb1 /media/usbdisk1

The following article really helped me out in terms of mounting the usb drive manually, although don't do step 5 (automount) unless you know what you're doing

http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm

« Last Edit: September 06, 2007, 10:08:09 AM by misnerspace »

Offline painkiller

  • **
  • 66
  • +0/-0
Thanks Arnie, that did't . How can i get it to automount, sme did't that before itself?

Offline painkiller

  • **
  • 66
  • +0/-0
Ok, this works i use affa for backup it has an option to automount, this is solved for me....

Thanks for your help

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: USB harddisk, mountpoint recognized, when i write to this its fills up sme h
« Reply #10 on: September 09, 2007, 08:37:23 PM »
Tried this also, but I don't seem to get DAR to make a backup to my USB-harddisk.
The harddisk is mounted to /mnt/BackupHD :

Code: [Select]
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/mapper/main-root
              ext3    39091656  20383968  16721948  55% /
/dev/md1      ext3      101018     48051     47751  51% /boot
none         tmpfs      127384         0    127384   0% /dev/shm
/dev/sda1     ext3   480719056    106544 475728672   1% /mnt/BackupHD

I use smeserver-dar2-0.0.1-3dmay.noarch.rpm to make backups, which works fine when backing up to a webshare on a WindowsXP workstation connected to the server.
But when I enter /mnt/BackupHD as target for the backup, DAR doesn't work.
Am I doing something wrong?
...

Offline painkiller

  • **
  • 66
  • +0/-0
Re: USB harddisk, mountpoint recognized, when i write to this its fills up sme hd
« Reply #11 on: September 09, 2007, 10:22:04 PM »
http://forums.contribs.org/index.php?topic=35466.msg155151;topicseen#msg155151

This dit it for me, in the server  manager you can mount it and enable automount the next time you plug your usb in it works again.

good luck

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: USB harddisk, mountpoint recognized, when i write to this its fills up sme h
« Reply #12 on: September 10, 2007, 08:51:45 PM »
Tried that, but it didn't do it for me. I've installed and removed it several times, but I can't get it to mount properly.
But if I do it manually like in
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm

 the USB-disk is mounted.
I've also tried to mount the harddisk to /home like in the HowTo,; maybe there's something left which disturbs the mounting point?
I just bought the USB-harddisk to make backups of the server and several WinXP-workstations, do you know a contrib that's better than Dar2?
...

Offline painkiller

  • **
  • 66
  • +0/-0
Re: USB harddisk, mountpoint recognized, when i write to this its fills up sme hd
« Reply #13 on: September 10, 2007, 10:31:30 PM »
MAybe affa suits you?

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: USB harddisk, mountpoint recognized, when i write to this its fills up sme h
« Reply #14 on: September 10, 2007, 10:56:28 PM »
Maybe, but I thought Affa was only commandline?
I'm no newby, but also not very good with commandline issues. I would like something which apears in the server-manager.
...