![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Nov 2010
Location: Columbia, SC
Device: Kindle 3
|
Errno 30 : Read-Only filesystem
Solved: fsck.vfat -a /dev/sdb1 resolved
I've been a-googling with little luck, so I figured I'd post here. No matter what I seem to do I can't get Calibre to get past the read-only error. 1) Calibre does mount the device as I believe it should, using umask 077 and suchlike... No dice even though it does mount to the proper location with said umask. 2) I ran fsck.vfat just in case there were errors on the FS (Saw a post saying that would fix it), no dice. 3) I've tried removing the calibre-mount-helper so that it can't mount things and then mounting the device myself, I get the same error even when mounted as below: /dev/sdb1 on /media/Kindle Main Memory type vfat (rw,noexec,nosuid,nodev,umask=000,uid=1000,gid=100 ,user=vry) With the above I can manually move files to the device, but I get the same error from Calibre everytime. Kinda at my wits end :'( Code:
[Errno 30] Read-only file system: u'/media/Kindle Main Memory/metadata.calibre' Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/device.py", line 69, in run self.result = self.func(*self.args, **self.kwargs) File "/usr/lib/calibre/calibre/gui2/device.py", line 311, in _books mainlist = self.device.books(oncard=None, end_session=False) File "/usr/lib/calibre/calibre/devices/kindle/driver.py", line 177, in books bl = USBMS.books(self, oncard=oncard, end_session=end_session) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 164, in books self.sync_booklists((bl, None, None)) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 305, in sync_booklists write_prefix(self._main_prefix, 0) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 303, in write_prefix with open(self.normalize_path(os.path.join(prefix, self.METADATA_CACHE)), 'wb') as f: IOError: [Errno 30] Read-only file system: u'/media/Kindle Main Memory/metadata.calibre' Code:
Linux aria 2.6.35-ARCH #1 SMP PREEMPT Sat Oct 30 21:22:26 CEST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux local/calibre 0.7.27-1 ![]() Last edited by Vryali; 11-08-2010 at 11:10 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Can you manually create files in /media/Kindle Main Memory
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Nov 2010
Location: Columbia, SC
Device: Kindle 3
|
Using both calibre-mount-helper and a manual mount command fail with a read-only FS. Basically I can mount it manually, read/write as expected with a umask=000, but when I open Calibre, with or without calibre-mount-helper, the FS goes to ro?
Text blob of the commands/output below: Code:
$ cat /etc/fstab | grep Kindle /dev/sdb1 /media/Kindle\040Main\040Memory vfat auto,user,rw,umask=000,noexec,uid=1000,gid=100 0 0 $ mount /dev/sdb1 $ calibre & [1] 9885 ... QGtkStyle was unable to detect the current GTK+ theme. Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover [Errno 30] Read-only file system: u'/media/Kindle Main Memory/metadata.calibre' Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/device.py", line 69, in run self.result = self.func(*self.args, **self.kwargs) File "/usr/lib/calibre/calibre/gui2/device.py", line 311, in _books mainlist = self.device.books(oncard=None, end_session=False) File "/usr/lib/calibre/calibre/devices/kindle/driver.py", line 177, in books bl = USBMS.books(self, oncard=oncard, end_session=end_session) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 164, in books self.sync_booklists((bl, None, None)) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 305, in sync_booklists write_prefix(self._main_prefix, 0) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 303, in write_prefix with open(self.normalize_path(os.path.join(prefix, self.METADATA_CACHE)), 'wb') as f: IOError: [Errno 30] Read-only file system: u'/media/Kindle Main Memory/metadata.calibre' $ cd / $ umount /dev/sdb1 $ sudo fsck.vfat /dev/sdb1 dosfsck 3.0.10, 12 Sep 2010, FAT32, LFN /documents/Sanderson, Brandon/Alcatraz versus the Evil Librarians (Alcatraz 1) - Sanderson, Brandon.mobi Contains a free cluster (9088). Assuming EOF. /documents/Sanderson, Brandon/Alcatraz versus the Evil Librarians (Alcatraz 1) - Sanderson, Brandon.mobi File size is 363737 bytes, cluster chain length is 319488 bytes. Truncating file to 319488 bytes. Leaving file system unchanged. /dev/sdb1: 77 files, 5667/405900 clusters $ mount /dev/sdb1 $ cd /media/Kindle\ Main\ Memory/ $ touch test $ ls audible documents music system test $ ls audible documents music system test $ calibre & [2] 10124 $ QGtkStyle was unable to detect the current GTK+ theme. Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover Failed to read MOBI cover [Errno 30] Read-only file system: u'/media/Kindle Main Memory/metadata.calibre' Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/device.py", line 69, in run self.result = self.func(*self.args, **self.kwargs) File "/usr/lib/calibre/calibre/gui2/device.py", line 311, in _books mainlist = self.device.books(oncard=None, end_session=False) File "/usr/lib/calibre/calibre/devices/kindle/driver.py", line 177, in books bl = USBMS.books(self, oncard=oncard, end_session=end_session) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 164, in books self.sync_booklists((bl, None, None)) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 305, in sync_booklists write_prefix(self._main_prefix, 0) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 303, in write_prefix with open(self.normalize_path(os.path.join(prefix, self.METADATA_CACHE)), 'wb') as f: IOError: [Errno 30] Read-only file system: u'/media/Kindle Main Memory/metadata.calibre' $ touch test2 touch: cannot touch `test2': Read-only file system $ mount | grep Kindle /dev/sdb1 on /media/Kindle Main Memory type vfat (rw,noexec,nosuid,nodev,umask=000,uid=1000,gid=100,user=vry) Thanks, by the by, for your prompt response, I appreciate your help =) Edit: I then umount and remount it and it's rw again, until I open calibre, and then the FS goes back to ro. Last edited by Vryali; 11-08-2010 at 09:21 PM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That means you have errors on your filesystem. Run a fsck on the filesystem (the linux kernel remounts a filesystem ro when errors happen during a filesystem operation).
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Nov 2010
Location: Columbia, SC
Device: Kindle 3
|
Quote:
/var/log/messages also shows nothing, I've been running fsck.vfat, did you have another recommendation? Edit: Additionally, my device works fine on my fiancee's netbook, which is running eeebuntu. This problem only exists and persists on my laptop. She is running version 0.6.42 of calibre, at a quick glance over at hers, while mine is running 0.7.27. Edit 2: Just tested hers again just now as a sanity check, no problems. Went back to mine and same issue :'( Last edited by Vryali; 11-08-2010 at 11:02 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Nov 2010
Location: Columbia, SC
Device: Kindle 3
|
Just put everything in one post, not seeing how to delete this post for some reason.
Last edited by Vryali; 11-08-2010 at 11:03 PM. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Nov 2010
Location: Columbia, SC
Device: Kindle 3
|
I'm a retard, my sincere apologies and thanks again for your time. It helps if you run the fsck.vfat with the -a flag so it actually fixes things. It's working fine now.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
IOError: [Errno 22] Invalid argument | jkcoder | Calibre | 5 | 09-25-2010 09:28 AM |
IOError: [Errno 13] Permission denied | s3ntient | Calibre | 3 | 02-20-2010 02:01 PM |
IOError errno 5? | codemac | Calibre | 11 | 10-22-2009 02:36 PM |
astak ezreader, read-only filesystem | scar | Astak EZReader | 7 | 07-28-2009 02:20 AM |
[Errno 2] in any2epub | deegee | Calibre | 0 | 12-14-2008 10:36 AM |