[Apple Tv] Crystal HD and 1080p
#16
sudo parted -s /dev/sda mkpart primary ext3 6343453s 29296875s

requests a partition starting at 6343453s which is 29296875s in size.

According to your partition map, Partition #3 (linux-swap) ends at 6343453s. You can't start and end on the same sector. Add 1 to your starting point.
Reply
#17
Came home for a minute, sorry about the last mistake I have done it correctly many time but with the same result.


Code:
xbmc@AppleTV:~$ sudo parted -s /dev/sda mkpart primary ext3 6343454s 29296875s
[sudo] password for xbmc:
Warning: You requested a partition from 3248MB to 15.0GB.
The closest location we can manage is 3248MB to 4010MB.  Is this still acceptable to you?

Very strange it see's the disk but will not let me use it.

Craig
Reply
#18
iscraigh Wrote:Came home for a minute, sorry about the last mistake I have done it correctly many time but with the same result.


Code:
xbmc@AppleTV:~$ sudo parted -s /dev/sda mkpart primary ext3 6343454s 29296875s
[sudo] password for xbmc:
Warning: You requested a partition from 3248MB to 15.0GB.
The closest location we can manage is 3248MB to 4010MB.  Is this still acceptable to you?

Very strange it see's the disk but will not let me use it.

Craig


As i mention above you can use this command first
Code:
parted /dev/sda mkpart primary ext3

and type Fix then ENTER then ENTER then CTRL+C
and try to continue with
Code:
parted -s /dev/sda mkpart primary ext3 6343454s 29296875s

i hope that fix for you
Reply
#19
[CODE]As i mention above you can use this command first
Code:
parted /dev/sda mkpart primary ext3
and type Fix then ENTER then ENTER then CTRL+C
and try to continue with
Code:
sudo parted -s /dev/sda mkpart primary ext3 6343454s 29296875s
i hope that fix for you/CODE]

I had tried that and did try again It does not ask me to fix now but still does not work.

Craig
Reply
#20
Ok so I copied over a fresh download of sams image and Tried to get the partition table to print.

Code:
xbmc@AppleTV:/media/disk/nas4/video$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb3             2.4G  1.3G 1000M  56% /
varrun                122M   76K  122M   1% /var/run
varlock               122M     0  122M   0% /var/lock
udev                  122M   84K  122M   1% /dev
devshm                122M     0  122M   0% /dev/shm
/dev/sdc1             294G  244G   47G  84% /media/disk
/dev/sdc2             114M  4.1M  109M   4% /media/disk1
xbmc@AppleTV:/media/disk/nas4/video$



Code:
xbmc@AppleTV:/media/disk/nas4/video$ sudo parted /dev/sda unit s print
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system
believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?
Fix/Cancel? Fix                                                          
                                                                          

You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

    http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

    http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (1.7.1)
along with the error message below, the output of

    parted DEVICE unit co print unit s print

and additional information about your setup you consider important.

Assertion (n > 0) at ../../libparted/exception.c:112 in function ped_log2() failed.

Ignore/Cancel? Ignore                                                    


You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

    http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

    http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (1.7.1)
along with the error message below, the output of

    parted DEVICE unit co print unit s print

and additional information about your setup you consider important.

Error: SEGV_MAPERR (Address not mapped to object)Aborted
xbmc@AppleTV:/media/disk/nas4/video$ sudo partprobe
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?
Error: Error informing the kernel about modifications to partition /dev/sda2 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/sda2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Warning: The kernel was unable to re-read the partition table on /dev/sda (Device or resource busy).  This means Linux won't know anything about the modifications you made until you reboot.  You should reboot your computer before doing anything with /dev/sda.
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?
xbmc@AppleTV:/media/disk/nas4/video$


Code:
Same as last time so far, but after partprobe I can print the partition table.

xbmc@AppleTV:/media/disk/nas4/video$ sudo parted /dev/sda unit s print

Disk /dev/sda: 78140159s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start     End       Size      File system  Name     Flags
1      40s       69671s    69632s    hfs+         primary      
2      69672s    6427049s  6357378s  ext3         primary      
3      6427050s  7831518s  1404469s  linux-swap   primary      

Information: Don't forget to update /etc/fstab, if necessary.            

xbmc@AppleTV:/media/disk/nas4/video$

Now I try to make a partition any old partition.

Code:
xbmc@AppleTV:/media/disk/nas4/video$ sudo parted -s /dev/sda mkpart primary ext3 6343453s 77000000sWarning: You requested a partition from 3248MB to 39.4GB.
The closest location we can manage is 4010MB to 4052MB.  Is this still acceptable to you?
xbmc@AppleTV:/media/disk/nas4/video$

Same result but sams image is slightly bigger so I can now go up to 4052MB

If I am doing something wrong or any one has a suggestion as to what might be happening here please let me know, I am open to any suggestions at all, send me a command I will run it.

Thanks

Craig
Reply
#21
iscraigh Wrote:Ok so I copied over a fresh download of sams image and Tried to get the partition table to print.

Code:
xbmc@AppleTV:/media/disk/nas4/video$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb3             2.4G  1.3G 1000M  56% /
varrun                122M   76K  122M   1% /var/run
varlock               122M     0  122M   0% /var/lock
udev                  122M   84K  122M   1% /dev
devshm                122M     0  122M   0% /dev/shm
/dev/sdc1             294G  244G   47G  84% /media/disk
/dev/sdc2             114M  4.1M  109M   4% /media/disk1
xbmc@AppleTV:/media/disk/nas4/video$



Code:
xbmc@AppleTV:/media/disk/nas4/video$ sudo parted /dev/sda unit s print
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system
believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?
Fix/Cancel? Fix                                                          
                                                                          

You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

    http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

    http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (1.7.1)
along with the error message below, the output of

    parted DEVICE unit co print unit s print

and additional information about your setup you consider important.

Assertion (n > 0) at ../../libparted/exception.c:112 in function ped_log2() failed.

Ignore/Cancel? Ignore                                                    


You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

    http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

    http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (1.7.1)
along with the error message below, the output of

    parted DEVICE unit co print unit s print

and additional information about your setup you consider important.

Error: SEGV_MAPERR (Address not mapped to object)Aborted
xbmc@AppleTV:/media/disk/nas4/video$ sudo partprobe
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?
Error: Error informing the kernel about modifications to partition /dev/sda2 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/sda2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Warning: The kernel was unable to re-read the partition table on /dev/sda (Device or resource busy).  This means Linux won't know anything about the modifications you made until you reboot.  You should reboot your computer before doing anything with /dev/sda.
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?
xbmc@AppleTV:/media/disk/nas4/video$


Code:
Same as last time so far, but after partprobe I can print the partition table.

xbmc@AppleTV:/media/disk/nas4/video$ sudo parted /dev/sda unit s print

Disk /dev/sda: 78140159s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start     End       Size      File system  Name     Flags
1      40s       69671s    69632s    hfs+         primary      
2      69672s    6427049s  6357378s  ext3         primary      
3      6427050s  7831518s  1404469s  linux-swap   primary      

Information: Don't forget to update /etc/fstab, if necessary.            

xbmc@AppleTV:/media/disk/nas4/video$

Now I try to make a partition any old partition.

Code:
xbmc@AppleTV:/media/disk/nas4/video$ sudo parted -s /dev/sda mkpart primary ext3 6343453s 77000000sWarning: You requested a partition from 3248MB to 39.4GB.
The closest location we can manage is 4010MB to 4052MB.  Is this still acceptable to you?
xbmc@AppleTV:/media/disk/nas4/video$

Same result but sams image is slightly bigger so I can now go up to 4052MB

If I am doing something wrong or any one has a suggestion as to what might be happening here please let me know, I am open to any suggestions at all, send me a command I will run it.

Thanks

Craig

You use ssh through Apple TV Ubuntu Linux running you should do it through atv bootloader patchstick through telnet after you write your image do as i mention in my previous post
Reply
#22
Okay the problem was that the version of parted on sams image is not the version that the apple tv needs. I unintsalled it and followed Davilla's directions to install the patched one.

http://code.google.com/p/atv-bootloader/...tallParted

And now I am well on my way.

Thanks you every one (Davilla especially) and hopefully this helps some other hapless soul.


Craig
Reply
#23
iscraigh Wrote:Okay the problem was that the version of parted on sams image is not the version that the apple tv needs. I unintsalled it and followed Davilla's directions to install the patched one.

http://code.google.com/p/atv-bootloader/...tallParted

And now I am well on my way.

Thanks you every one (Davilla especially) and hopefully this helps some other hapless soul.


Craig

* davilla readies a trout for Sam Smile
Reply
#24
Had another problem.. despite using this command


Code:
xbmc@AppleTV:/$ sudo mount -t hfsplus -o rw,force /dev/sda1 dst

I could not mount the partition read write

After some googling I came across this command for osx to repair a partition and force it to write new data, So I figured what the heck see if linux supports it.

Code:
sudo fsck.hfsplus -r /dev/sda1

It repaired the partition and allowed me to mount it R/W to edit the boot.plist.

Next stop updating drivers and xbmc.

Craig
Reply
#25
i think you did not use my method described in the first post to resize you use a running image of Ubuntu Linux from a USB am i right ?
Reply
#26
Quote:change the first UUID=xxxxxxxxxxxxxxx with the one from previous ls -l
change the second UUID=xxxxxxxxxxxxx refrance to swap to /dev/sda3

i have already had the correct UUID for /dev/sda2, so i do not need to update it..

the second UUID=xxxxx refrance to swap.... i'm not quit sure what i have to do here? can you please explain me how it should look like?

/dev/sda3 is the swap partition, so what should i do here?

strangely i have an activating swapfile swap failed error during the boot... any ideas here?

thanks in advance!
Reply
#27
if you follow the resize method i explain your swap partition will have different UUID so you have 2 option
1- make the swap line in the fstab like this
Quote:/dev/sda3 none swap sw 0 0
2- create new UUID to swap
Quote:uuidgen /dev/sda3
this will give you result UUID use it again to mksawp with this command
Quote:mksawp /dev/sda3 -U (the UUID you get from pervious command)
then use this uuid in the fstab

i hope this help
Reply
#28
iwaleed Wrote:if you follow the resize method i explain your swap partition will have different UUID so you have 2 option
1- make the swap line in the fstab like this

2- create new UUID to swap

this will give you result UUID use it again to mksawp with this command

then use this uuid in the fstab

i hope this help

thanks for you help, but both did not help.

i changed the uuid and edit it in /etc/fstab without success..
mksawp UUID /dev/sda3 -U did also not help..

For testing purpose, i boot the atv directly from usb stick and remarked that also the message "Activating swapfile swap fail" appears.

I create a boot-stick with an other usb stick with a fresh downloaded crystalbuntu image, but the the activating swapfile also failed here.. Is it a general problem, perhaps?

Is it possible to delete the swap file and create a new one?
Do i need parted version 1.8.8 or can i take the latest?

MasterOe
Reply
#29
Hi iwalled,


first of all thanks for your guide!!!

after reading and reading i get it work with pin78a's image .Nod

But i'm not quit sure which step should bring a better performance.

As i understand you do following steps:

1. create a new partition (sda4) with around 144GB,
2. you copied the content from sda2 to sda4,
3. delete partion sda2 and sda3 (swap).
4. you create this two partions again with a resizing from sda2 from 2,5GB to 16 GB
5. you copied back the content from sda4 to sda2
6. edit com.apple.Boot.plist to start from sda2

This means that when you boot the ATV, you have only win around 13,5 GB (sda2) harddisk space. The created partition sda4 , which is used as backup, is around 144 GB and not been used any more.

Am I wrong?

I have also a 160GB Disk and take the same sector sizes as you used and with the parted -s /dev/sda print i could see the created partions in MB.


Model: ATA SAMSUNG HM160HC (scsi)
Disk /dev/sda: 312581808s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 40s 409639s 409600s fat32 EFI System Partition boot
2 409640s 460639s 51000s hfs+ Recovery atvrecv
3 460640s 29296875s 28836236s ext3 primary
4 29296876s 30345452s 1048577s linux-swap primary
5 30345453s 312319663s 281974211s ext3


Model: ATA SAMSUNG HM160HC (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 236MB 26.1MB hfs+ Recovery atvrecv
3 236MB 15.0GB 14.8GB ext3 primary
4 15.0GB 15.5GB 537MB linux-swap primary
5 15.5GB 160GB 144GB ext3



I edit the fstab and mount the sda4 also (i delete the backup files before), to get the additional free space.
Can you tell if i misunderstand something here?

And i have also two questions:
1st:
Quote:add missing file required to enable menu sound found in the link in step 2
Is this one for Sound over HDMI, because i don't use HDMi for the sound..:

and 2nd:
Quote:remove the configuration comes with this image and start from default
i deleted this , but does it bring better performance?
Don't know how this could help...

MasterOe
Reply
#30
My guide was for Full Image Download and the Minimalised Disk Image by pin87a need other guide to have it work will with the auto adjust refresh rate and gives you better performance i will post it later Smile
Reply

Logout Mark Read Team Forum Stats Members Help
[Apple Tv] Crystal HD and 1080p0