• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  General Category / Success stories / Re: Managing a USB hard drive on the Plug on: November 14, 2010, 04:07:48 PM
I'm running Debian Squeeze on my plug and have two external drives with partitions mounted by UUID.

I have zero knolwedge of scripting but I have had a go at combining joosy and mgillespies scripts to meet my needs.

# Provides:          wait4usbdisks
# Required-Start:    checkfs
# Required-Stop:
# Should-Start:
# Should-stop:
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Delays boot to ensure USB disks are connected.

# If /etc/fstab has been configured to mount a USB drive, pause to give
# the USB drive devices time to show up in /dev.  If this is not done,
# checkfs.sh will fail, requiring manual intervention...

. /lib/lsb/init-functions

case "$1" in
        FS=`grep "^UUID" /etc/fstab | sed 's/^UUID=\([a-z0-9-]*\).*$/\/dev\/disk\/by-uuid\/\1/i'`
        for f in $FS ;
        for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
          [ -h $f ] && continue 2
          sleep 1
        exit 1

Does this look like it might work?

Also as I am running this from rcconf as suggested by mgillespie can I delete restamp's symlink?

# ln -s ../init.d/wait4usbdisks /etc/rcS.d/S25wait4usbdisks

Any feedback gratefully received.

2  Linux Stuff / General Linux questions / Re: NFS server and mapping of user ids on: November 12, 2010, 06:21:59 AM
I'm currently running an NFS server on my SheevaPlug to several Mac OS X clients.  I've set it up so that everything maps to a single user on the plug (so basically world-writable by everybody, which is okay since it's just my LAN) -- if you think this setup would work for you I can give you the details on getting Mac OS X to cooperate.

This is what I'm trying to do; more specifically to do Time Machine ( or rsync ) backups from a couple of MacBooks to a NAS attached to my plug which is running Debian Squeeze.

Any details gratefully received.
Pages: [1]