You are not logged in.

#1 2009-01-15 22:55:59

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

[SOLVED] /bin/tar: Cannot utime: Read-only file system

While doing a tar backup on my servers, I get this error:

/bin/tar: /usr/local/bin/sendEmail: Cannot utime: Read-only file system

The error happens on all files in /usr that I'm trying to backup. I know why the error is happening -- I deliberately mount /usr as read-only.

I'd like to know why tar is trying to "utime" my files and how I can stop that behaviour if possible?

This is my tar command:

tar cjf /mnt/backup/backup.tar.bz2 --label='backup_090116' --atime-preserve --no-wildcards-match-slash --files-from=/root/backup.include --exclude-from=/root/backup.exclude

TIA smile

Last edited by fukawi2 (2009-01-17 07:53:02)

Offline

#2 2009-01-15 23:50:36

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] /bin/tar: Cannot utime: Read-only file system

Isn't it quite pointless to preserve timestamps on files from a filesystem on which timestamps aren't modified? Maybe tar tries to update the timestaps prior to archiving the file and is that giving troubles.

Offline

#3 2009-01-17 07:52:49

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] /bin/tar: Cannot utime: Read-only file system

Offline

Board footer

Powered by FluxBB