I'm having some troubles mounting a Windows share drive on my Ubuntu 8.04 machine. It works, but the problem is that it's not writable. If I try to create a test file "testing.txt" on the share, nano gives me an error that says:
Error writing /mnt/fs_backup/test.txt: No such file or directory
1. The first thing I did was edit my /etc/fstab file and add the drive. The server name is fileserv and the share name is backup-disk. It's a 2-terabyte external hard drive.
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/cciss/c0d0p1
UUID=b540af75-18cf-4f2a-8e00-03d2b46a70a2 / ext3 relatime,errors=remount-ro 0 1
# /dev/cciss/c0d0p5
UUID=8acb4aab-1490-4dca-9cf7-c20ddd34a326 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
//fileserv/backup-disk /mnt/fs_backup cifs exec,credentials=/etc/cifspw 0 0
2. Next, I created the credentials file at /etc/cifspw:
Code:
username=daemon
password=mysecretpassword
3. I ran the command mount -a.
4. I went into the /mnt/fs_backup folder and everything appears correct so far.
5. Used nano to create a new file: testing.txt
6. Typed some random letters and hit CTRL-X to exit and save. When I tell it to save, that's when it gives the error message.
I know I'm probably doing something wrong but I've never needed to mount a network share for anything more than read-only before, so this is new to me. Thanks
EDIT: I also tried adding rw to the fstab:
Code:
//fileserv/backup-disk /mnt/fs_backup cifs exec,rw,credentials=/etc/cifspw 0 0
It still gives the same error
Bookmarks