LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   ipod (read only file system) (http://www.linuxquestions.org/questions/fedora-35/ipod-read-only-file-system-746310/)

hDUQUE 08-09-2009 07:41 PM

ipod (read only file system)
 
hi guys,
i am getting a problem with my ipod.

I have reformated my ipod in order to have an hfsplus without journaling file system. The ipod has been working fine since May 2009 (for 3 months) and i have al my music there, but now gtkpod reports problems when trying to transfer files to the ipod.

From root i have checked it and it suposse to be a RW file system:

Code:

mount
/dev/sdc2 on /media/iPod type hfsplus (rw,nosuid,nodev,uhelper=hal)

however, when i try to write into the ipod, it looks like a read-only filesystem:

Code:

chmod 777 /media/iPod/
chmod: changing permissions of `/media/iPod/': Read-only file system

i wonder how it happened?

any ideas ?

thanks in advance,

Hector

pd. i have fedora 10.

hDUQUE 08-09-2009 08:51 PM

hi guys,

it looks like the Filesystem was not cleanly unmounted:

Code:

dmesg | tail -n 25
scsi10 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 13
usb-storage: waiting for device to settle before scanning
usb 1-8: New USB device found, idVendor=05ac, idProduct=1261
usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-8: Product: iPod
usb 1-8: Manufacturer: Apple Inc.
usb 1-8: SerialNumber: 000A2700139D1935
usb-storage: device scan complete
scsi 10:0:0:0: Direct-Access    Apple    iPod            1.62 PQ: 0 ANSI: 0
sd 10:0:0:0: [sdc] 29255991 4096-byte hardware sectors (119833 MB)
sd 10:0:0:0: [sdc] Write Protect is off
sd 10:0:0:0: [sdc] Mode Sense: 68 00 00 08
sd 10:0:0:0: [sdc] Assuming drive cache: write through
sd 10:0:0:0: [sdc] 29255991 4096-byte hardware sectors (119833 MB)
sd 10:0:0:0: [sdc] Write Protect is off
sd 10:0:0:0: [sdc] Mode Sense: 68 00 00 08
sd 10:0:0:0: [sdc] Assuming drive cache: write through
 sdc: [mac] sdc1 sdc2
sd 10:0:0:0: [sdc] Attached SCSI removable disk
sd 10:0:0:0: Attached scsi generic sg3 type 0
hfs: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended.  mounting read-only.
SELinux: initialized (dev sdc2, type hfsplus), uses genfs_contexts
hfs: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended.  mounting read-only.
SELinux: initialized (dev sdc2, type hfsplus), uses genfs_contexts


how can i make an fsck.hfsplus?

best regards,

Hector

hDUQUE 08-09-2009 09:22 PM

Code:

fsck.hfsplus -pd /dev/sdc2
/dev/sdc2: starting
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
hfs_swap_HFSPlusBTInternalNode: catalog key #13 invalid length (0)
  Invalid key length
(4, 60)
** Volume check failed.
volume check failed with error 7
        volume type is pure HFS+
        primary MDB is at block 0 0x00
        alternate MDB is at block 0 0x00
        primary VHB is at block 2 0x02
        alternate VHB is at block 234047294 0xdf3473e
        sector size = 512 0x200
        VolumeObject flags = 0x07
        total sectors for volume = 234047296 0xdf34740
        total sectors for embedded volume = 0 0x00

any ideas?

hector

hDUQUE 08-09-2009 09:40 PM

ok guys,
it looks it was repared :-(
thanks ...

Code:



fsck.hfsplus -rd /dev/sdc2
** /dev/sdc2
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
** Rebuilding Catalog B-tree.
hfs_UNswap_BTNode: invalid node height (1)
hfs_swap_HFSPlusBTInternalNode: catalog key #13 invalid length (0)
  Invalid key length
(4, 60)
** Rechecking volume.
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
  Missing thread record (id = 39)
  Incorrect number of thread records
(4, 198)
** Checking Catalog hierarchy.
  Invalid directory item count
  (It should be 63 instead of 72)
  Missing thread record (id = 39)
  Invalid directory item count
  (It should be 68 instead of 77)
** Checking volume bitmap.
  Volume Bit Map needs minor repair
** Checking volume information.
  Invalid volume free block count
  (It should be 19897713 instead of 29246825)
        invalid VHB nextCatalogID
  Volume Header needs minor repair
(2, 0)
  Verify Status: VIStat = 0xa000, ABTStat = 0x0000 EBTStat = 0x0000
                  CBTStat = 0x0800 CatStat = 0x4200
** Repairing volume.
        FixOrphanedFiles: Deleted thread record for id=181 (err=0)
        FixOrphanedFiles: Deleted thread record for id=740 (err=0)
        FixOrphanedFiles: Deleted thread record for id=1060 (err=0)
        FixOrphanedFiles: Deleted thread record for id=1090 (err=0)
        FixOrphanedFiles: Deleted thread record for id=1572 (err=0)
        FixOrphanedFiles: Deleted thread record for id=1801 (err=0)
        FixOrphanedFiles: Deleted thread record for id=2082 (err=0)
        FixOrphanedFiles: Deleted thread record for id=2388 (err=0)
        FixOrphanedFiles: Deleted thread record for id=2533 (err=0)
        FixOrphanedFiles: Deleted thread record for id=3054 (err=0)
        FixOrphanedFiles: Deleted thread record for id=3123 (err=0)
        FixOrphanedFiles: Deleted thread record for id=3192 (err=0)
        FixOrphanedFiles: Deleted thread record for id=3276 (err=0)
        FixOrphanedFiles: Deleted thread record for id=3673 (err=0)
        FixOrphanedFiles: Deleted thread record for id=3952 (err=0)
        FixOrphanedFiles: Deleted thread record for id=4002 (err=0)
        FixOrphanedFiles: Deleted thread record for id=4184 (err=0)
** Rechecking volume.
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
** Checking Catalog hierarchy.
** Checking volume bitmap.
** Checking volume information.
** The volume iPod was repaired successfully.



All times are GMT -5. The time now is 11:24 PM.