Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mount a shared drive
#2

// First you need a file to store your user/pass info. You should keep it somewhere secure like in /root, so for an example we will use /root/.cred Here is a quick way to create the needed file. Supply your own username and password of course. //

 

echo "username=Administrator" > /root/.cred

echo "password=YOURPASSWORD" >> /root/.cred

 

// Note the first line uses a single > and the second uses two >> to append to the file. //

 

// Make a backup of fstab and add this line to the current one. //

 

cp /etc/fstab /etc/fstab.bak && echo "//xbox/f /mnt/xbox smbfs defaults,credentials=/root/.cred 0 0" >> /etc/fstab

 

// Now to test it. First make sure its not mounted. //

 

umount /mnt/xbox

mount -a

 

// This will read /etc/fstab and attempt to mount all entries. If successful it will drop you back to the prompt. Now you can cd /mnt/xbox to verify. //

Reply


Messages In This Thread
Mount a shared drive - by Sheriff - 2004-01-26, 10:59 PM
Mount a shared drive - by grep420 - 2004-01-29, 12:54 AM
Mount a shared drive - by freak - 2004-03-07, 02:16 AM
Mount a shared drive - by znx - 2005-04-13, 08:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)