Gonzalo
I backup my PBX in 2 places.
1. I have a permanent USB disk mounted as /mnt/kd/USB/ and a script in the
crontab takes care of the backup:
0 4 * * * tar czf /mnt/kd/USB/backup.`date "+%Y-%m-%d"`.tar.gz $(ls -1 /mnt/kd/
| sed -e "s/^cdr-.*//" -e "s/^USB$//" -e "s/^monitor$//" -e
> The idea was to mount the disk not only at startup but each time the disk is
> plugged and keep it switched off most of the time but I'll have to mount it
> with a custom script instead of automatically.
Gonzalo, Make certain you 'umount' before unplugging or powering down the USB
disk.
Hi,
Thank you Ionel and Lonnie.
The idea was to mount the disk not only at startup but each time the disk is
plugged and keep it switched off most of the time but I'll have to mount it
with a custom script instead of automatically.
I have a remote controlled switch which I use to power on the
Yes I do LOL. How did that get in there? When? How many years ago :) I had
this PBX for like 15 years or so. Told you I am an idiot :)
HOME-PBX durep # cat /mnt/kd/rc.local
##
disk_dev="/dev/sdb1"
disk_mnt="/mnt/kd/USB"
mkdir -p "$disk_mnt"
echo "$disk_dev $disk_mnt ext3 noauto,noatime 0
Ionel, are you certain you don't have a 'mount' command in either
/mnt/kd/rc.local or /mnt/kd/rc.elocal ?
Lonnie
> On Apr 28, 2023, at 7:13 PM, Ionel Chila via Astlinux-users
> wrote:
>
> Lonnie, I got nothing in /etc/udev/rules.d LOL.
>
> The fstab is the only thing I changed and it
Lonnie, I got nothing in /etc/udev/rules.d LOL.
The fstab is the only thing I changed and it works fine every reboot
I guess old school Linux :) Sorry for providing the wrong guidance :)
[1.684661] usb-storage 1-3:1.0: USB Mass Storage device detected
[1.685122] scsi host4:
Ionel, Did you have to edit/add anything to /etc/udev/rules.d to make that
work? Puzzled.
Gonzalo, If you only wanted it to mount on startup, create /mnt/kd/rc.local and
make script executable (vfat example).
-- /mnt/kd/rc.local --
#!/bin/sh
DISK="/dev/sdb1"
DISK_MP="/tmp/USB"
mkdir -p
A line in /etc/fstab will do the trick. Figure out what what dev is your USB
drive and the partition type and change the line accordingly
My example below is for my 256G USB drive I use for backing up my configs
/dev/sdb1 /mnt/kd/USB ext3 noauto,noatime 0 0
> On Apr 28, 2023, at 5:34 PM,