Tag Archives: ubuntu

Mounting a Windows Drive on Ubuntu

We have a development system that is separate from our regular corporate system. Unfortunately, that means that any off-site backups aren’t happening. In order to allow for a backup of data we need to keep, I needed to mount a Windows drive to a Linux box, to copy the files over to the corporate system for backup.

I tried for half a day to accomplish this, using both NFS and CIFS mounts. The first thing I discovered was that the drive I was trying to mount to was not a physical drive on the box I was trying to access. Apparently, that’s not acceptable for NFS. And, to my chagrin, CIFS would allow it, but I could never write to the drive. Next issue I found was that the mount didn’t like network logins; I needed to use a login from that machine, and I needed to make sure the drive had write permission for that user. Perhaps that’s why I couldn’t write to the non-local drive.

So, with a local login, and a local drive to the Windows box, I was able to accomplish my task.

On the Windows box, I did a simple share. And I made sure the drive had write permissions for the local user I would use. On the Ubuntu box, I used the following in the fstab file:

//server/share /ubuntu/mountpoint cifs user=windowslocaluser,password=userpw,defaults 0 0

Cyrus Upgrade Error on Ubuntu

For several months now, I’ve been getting an error every time I tried to do an upgrade of my ubuntu system:

 Converting from /var/lib/cyrus/deliver.db (berkeley-nosync) to /tmp/deliver.db.cOT3kOvz (skiplist)
 fatal error: can't open old database
 dpkg: error processing cyrus-common-2.4 (--configure):
 subprocess installed post-installation script returned error exit status 75
 dpkg: dependency problems prevent configuration of cyrus-pop3d-2.4:
 cyrus-pop3d-2.4 depends on cyrus-common-2.4 (= 2.4.12-2); however:
 Package cyrus-common-2.4 is not configured yet.
 dpkg: error processing cyrus-pop3d-2.4 (--configure):
 dependency problems - leaving unconfigured
 dpkg: dependency problems prevent configuration of cyrus-pop3d:
 cyrus-pop3d depends on cyrus-pop3d-2.4; however:
 Package cyrus-pop3d-2.4 is not configured yet.
 dpkg: error processing cyrus-pop3d (--configure):
 dependency problems - leaving unconfigured

I tried removing cyrus altogether. But there were so many inter-dependencies that it wasn’t an option.

I finally found a clue as to how to fix it here, but I had to modify it a bit for my own situation.

I moved the deliver.db and tls_sessions.db files, then ran the upgrade command and voila! everything worked!

 sudo su -
 cd /var/lib/cyrus
 mv deliver.db deliver.db.old
 mv tls_sessions.db tls_sessions.db.old

Once the upgrades are done, the ‘old’ files can be removed. Yes, you might be able to get away with just deleting those files in the first place. But I like to play it safe.

Note: does this mean that there may be local mail not delivered? It could. But my local mail is only used for notifications, so it wasn’t a big deal to me.