mgh;590968 Wrote: 
> I did not know what the IP address was.  I booted to XP, opened the web
> interface, and got the IP from that.
> 
> Now I have a question about scanning my music folder.
> 
> I can find and access all my Windows partitions, but when I go to
> squeezeboxserver,to settings, and browse for my music folder, the
> partitions are not available.  I can find my documents folder, so I
> tried pasting a link to my music folder, but that did not work, the
> link is not visible.
> 
> I can access, and play my music when I navigate to the folder, but
> within the sqeezeboxserver interface, the partitions are not
> available.
> 
> So far so good, just one more step.
> 
> Thanks for the help.
To get SBS to allow you to use a directory on your NTFS formatted drive
as the Music Folder, you'll need to explicitly mount the drive in fstab.
This is the script I use to configure fstab for this purpose.  You may
need to modify this or do the similar steps manually as this script
assumes that the system only has a single NTFS partition.

config-fstab.sh

Code:
--------------------
    
  #!/bin/bash
  #-------------------------------------------------------
  # Script to set the 1st ntfs formatted device to auto-mount
  # via fstab using its UUID
  #
  
  MOUNTPOINT=/mnt/media
  
  #-------------------------------------------------------
  # Backup fstab...
  MOUNTFILE=/etc/fstab
  cp -f $MOUNTFILE $MOUNTFILE.bak
  
  #-------------------------------------------------------
  # Set up mount points..
  
  if [ ! -d "$MOUNTPOINT" ];
  then
  echo "Creating $MOUNTPOINT"
  mkdir "$MOUNTPOINT"
  chmod 777 "$MOUNTPOINT"
  fi
  
  if [ ! -d /mnt/backup ];
  then
  echo 'Creating /mnt/backup'
  mkdir /mnt/backup
  chmod 777 /mnt/backup
  fi
  
  if [ ! -d /mnt/usb ];
  then
  echo 'Creating /mnt/usb'
  mkdir /mnt/usb
  chmod 777 /mnt/usb
  fi
  
  #-------------------------------------------------------
  # Remove any existing ntfs-3g mount points..
  
  sed -i '/ntfs-3g/d' $MOUNTFILE
  
  #-------------------------------------------------------
  # Get the 1st NTFS formatted device..
  NTFSDEV=`blkid | grep "ntfs" | sed -e 's/\(^.*\)\:.*$/\1/'`
  ISMOUNTED=`mount -l | grep "$NTFSDEV"`
  
  if [ -n "$NTFSDEV" ];
  then
  if [ -n "$ISMOUNTED" ];
  then
  echo "Unmounting $NTFSDEV.."
  umount "$NTFSDEV"
  fi
  else
  echo 'No NTFS formatted devices found!!'
  exit 0
  fi
  
  #get the UUID for the device..
  HDUUID=`/sbin/blkid -o value -s UUID $NTFSDEV`
  if [ -n "$HDUUID" ];
  then
  echo "Setting $NTFSDEV to automount in $MOUNTFILE using uuid $HDUUID.."
  echo "UUID=$HDUUID                                                    
/mnt/media                      ntfs-3g         rw,defaults,noatime,umask=0000  
0               2" >>$MOUNTFILE
  mount -a
  echo 'Device mounted:'
  mount -l | grep "fuseblk"
  exit 0
  else
  echo "No UUID for device $NTFSDEV !!!"
  exit 0
  fi
  
  exit 0
  
  
--------------------

You should end up with an entry like:

Code:
--------------------
    
  UUID=9C2C008A5C00233E                                                 
/mnt/media                      ntfs-3g         rw,defaults,noatime,umask=0000  
0               2
  
--------------------

..in your /etc/fstab file.
If you then:
# mount -a

..your ntfs partition should end up mounted at: /mnt/media and you can
point SBS to the appropriate directory off of that.

If you somehow screw up /etc/fstab and the machine hangs on boot, just
press "s" on the keyboard and the system should continue booting up and
you'll be able to fix or delete the offending fstab entry.  (Thanks to
epoch1970 for telling me about that!)

Re finding the SBS ip address: static IPs are your friends.  Again,
here's a script I use for configuring static ips.  Modify this so you
get the IP address you want and so that it matches your subnet (i.e.
your subnet may be 192.168.1.x or 10.0.0.x rather than 192.168.0.x. 
Check the IP address of the machine when running under windows and you
could safely set the static IP to that.).  

Code:
--------------------
    
  #!/bin/bash
  echo 'Configuring networking..'
  cp /etc/network/interfaces /etc/network/interfaces.org
  
  echo 'Configuring eth0..'
  
  chkconfig network-manager off
  chkconfig networking on
  
  cat >/etc/network/interfaces <<NET1;
  # This file describes the network interfaces available on your system
  # and how to activate them. For more information, see interfaces(5).
  
  # The loopback network interface
  auto lo
  iface lo inet loopback
  
  # The primary network interface
  auto eth0
  iface eth0 inet static
  address 192.168.0.102
  gateway 192.168.0.1
  netmask 255.255.255.0
  network 192.168.0.0
  broadcast 192.168.0.255
  NET1
  
  /etc/init.d/networking restart
  
  
--------------------


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=83471

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to