Kodi Community Forum

Full Version: Problem with resizing ATV partition for linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
*Worked it out for myself, Just deleted the partition like it says on the boot-loader site.

I planed on doing the linux install to day but when I try and resize the media partition I get this error

Code:
Warning: The journal is not empty.  Parted must replay the transactions before opening the file system.  This will modify the file system.

This is what the disk looks like

Code:
Model: ATA WDC WD1600BEVE-4 (scsi)
Disk /dev/sda: 312581808s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start     End         Size        File system  Name      Flags  
1      40s       69671s      69632s      fat32        EFI       boot  
2      69672s    888823s     819152s     hfs+         Recovery  atvrecv
3      888824s   2732015s    1843192s    hfs+         OSBoot          
4      2732016s  312319663s  309587648s  hfs+         Media

Any help would be appreciated.
DV3B Wrote:*Worked it out for myself, Just deleted the partition like it says on the boot-loader site.

I planed on doing the linux install to day but when I try and resize the media partition I get this error

Code:
Warning: The journal is not empty.  Parted must replay the transactions before opening the file system.  This will modify the file system.

This is what the disk looks like

Code:
Model: ATA WDC WD1600BEVE-4 (scsi)
Disk /dev/sda: 312581808s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start     End         Size        File system  Name      Flags  
1      40s       69671s      69632s      fat32        EFI       boot  
2      69672s    888823s     819152s     hfs+         Recovery  atvrecv
3      888824s   2732015s    1843192s    hfs+         OSBoot          
4      2732016s  312319663s  309587648s  hfs+         Media

Any help would be appreciated.

before playing with parted;

fsck.hfsplus /dev/sda4
davilla Wrote:before playing with parted;

fsck.hfsplus /dev/sda4

Thanks I'll remember that for next time Smile
i am also stuck at this same error message, "Warning: The journal is not empty. Parted must replay the transactions before opening the file system. This will modify the file system."

I am following the instructions here:

http://wiki.xbmc.org/index.php?title=HOW...he_AppleTV

appletv 40gb, factory restored, upgraded to 3.02, atvusbcreator to install launcher and xbmc nightly build, and crystal tv driver r26.

when I run: "fsck.hfsplus /dev/sda4" it says "this volume is journaled. no checking performed. use the -f option to force checking." i do that, and it says the volume appears to be okay.

re-run parted, and still get same error.

help?
trevorcobb Wrote:i am also stuck at this same error message, "Warning: The journal is not empty. Parted must replay the transactions before opening the file system. This will modify the file system."

I am following the instructions here:

http://wiki.xbmc.org/index.php?title=HOW...he_AppleTV

appletv 40gb, factory restored, upgraded to 3.02, atvusbcreator to install launcher and xbmc nightly build, and crystal tv driver r26.

when I run: "fsck.hfsplus /dev/sda4" it says "this volume is journaled. no checking performed. use the -f option to force checking." i do that, and it says the volume appears to be okay.

re-run parted, and still get same error.

help?

unmount it, then do the fsck.hfsplus. if this does not work, then turn off the journaling for it under atv(osx).
Resize your partition to a larger size, then incrementally decrease. You most likely have files in the space it is trying to shrink
not able to unmount the partition in Linux booted off of USB memory stick, no matter what I tried. also could not disable journaling when SSH'd into the ATVOS.

kcarney's suggestion to incrementally downsize the parition using parted worked. I first did it to 70000000s then 65000000s etc... all the way down to 54525951s.

ubuntu is now downloading components for install.

thanks guys!
I have the same problem and i get the same errors with this line.
Also tried to make it bigger but the same problem persist.
Any ideas how to go further?

my disks looks like this now:

Code:
number start        end              Size            File System  name        Flags
1         40s          69671s         69632s         FAT32        EFI           boot
2         69672s     888823s        819152s       hfs+           Recovery  atvrecv
3         888824s   2732015s       1843192s     hfs+           OSBoot
4         2732016s  312319663s   309587648s  hfs+           Media
after deleting the partition 4 and re-adding the media partition at the right size it all worked.

it also shows in the print its hfs formatted.

now i added the sda5 and sda6 with
parted -s /dev/sda mkpart primary ext3 54525952s 77091549s
parted -s /dev/sda mkpart primary linux-swap 77091550s 78140126s


and doing the partprobe /dev/sda

but if i look now at the disks it shows a nice 6 partitions but after sda5 and sda6 the is no file system table to show.

so with my next command:
mkfs.ext3 -b 4096 -L Linux /dev/sda5
it comes back with: could not stat /dev/sda5 --- no such file or directory.


What can i do about this one? Smile
davilla Wrote:unmount it, then do the fsck.hfsplus. if this does not work, then turn off the journaling for it under atv(osx).

To turn off journal, in atvos:

diskutil disableJournal /dev/disk04s

where "disk04s" is the name of the device returned by mount command.

Turn it back on again: "diskutil enableJournal /dev/disk04s"