PS3Hax - Sony Fears Us  

Go Back   PS3Hax - Sony Fears Us > OtherOS Resources > Gentoo Linux
Register FAQ Members List Calendar Mark Forums Read

Gentoo Linux An up and comer for the PS3

Reply
 
LinkBack Thread Tools
  #11 (permalink)  
Old 03-04-2008, 02:33 AM
nightcrawla's Avatar
nightcrawla   is offline
PS3Hax Active Hacker
 
Join Date: Mar 2008
Location: Texas
Posts: 13
Default

PART 2

livecd ~ # fdisk /dev/ps3da

The number of cylinders for this disk is set to 1305.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1305, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): +9000M

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1096-1305, default 1096):
Using default value 1096
Last cylinder or +size or +sizeM or +sizeK (1096-1305, default 1305):
Using default value 1305

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap / Solaris)
Command (m for help): a
Partition number (1-4): 1
Command (m for help): p

Disk /dev/ps3da: 10.7 GB, 10737414144 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ps3da1 * 1 1095 8795556 83 Linux
/dev/ps3da2 1096 1305 1686825 82 Linux swap / Solaris

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
livecd ~ #
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 03-04-2008, 02:44 AM
nightcrawla's Avatar
nightcrawla   is offline
PS3Hax Active Hacker
 
Join Date: Mar 2008
Location: Texas
Posts: 13
Default

PART 3

livecd ~ #mkfs XFS -j /dev/ps3da1 (<<<<Thats the comand i used)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1154176 inodes, 2303996 blocks
115199 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2361393152
71 block groups
32768 blocks per group, 32768 fragments per group
16256 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
livecd ~ # mkswap /dev/ps3da2
Setting up swapspace version 1, size = 1299181 kB
no label, UUID=b621cc50-67db-496c-ad2a-32ec415d6516
livecd ~ # swapon /dev/ps3da2
livecd ~ #
================================================== ==============
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 03-04-2008, 03:00 AM
nightcrawla's Avatar
nightcrawla   is offline
PS3Hax Active Hacker
 
Join Date: Mar 2008
Location: Texas
Posts: 13
Default

Part 4

Lastly, mount the root filesystem so you can begin installing the software.

livecd ~ # mount /dev/ps3da1 /mnt/gentoo/

Install the base system ¶

The next series of steps will install the stage4 software on to your PS3 hard drive.

livecd ~ # cd /mnt/gentoo/
livecd gentoo / # wget [Please register to see this link. ] (If already downloaded in advance, copy the file to /mnt/gentoo now)
livecd gentoo / # tar -xjpf stage4-970-ps3_32ul.tar.bz2
livecd gentoo / # mount -t proc none /mnt/gentoo/proc
livecd gentoo / # mount -o bind /dev /mnt/gentoo/dev
livecd gentoo / # cp /etc/resolv.conf /mnt/gentoo/etc
livecd gentoo / # chroot /mnt/gentoo/ /bin/bash
livecd / # export PS1="(chroot) $PS1"
(chroot) livecd / # env-update && source /etc/profile
--- 'profiles/arch.list' is empty or not available. Empty portage tree?
>>> Regenerating /etc/ld.so.cache...
(chroot) livecd / # emerge --sync (Skip this step if your PS3 is not connected to the internet.)

(after this step it will ask you to update portage) (This is that comand to update emerge –u portage)

(Also it will ask to update your etc file) (This is that comand etc-update and choose option -5)

livecd / # export PS1="(chroot) $PS1"
================================================== ==============
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 03-04-2008, 03:17 AM
nightcrawla's Avatar
nightcrawla   is offline
PS3Hax Active Hacker
 
Join Date: Mar 2008
Location: Texas
Posts: 13
Default

Part 5

Final configuration steps
Setting timezone:

(chroot) livecd / ls /usr/share/zoneinfo
(Suppose you want to use GMT)
(chroot) livecd / cp /usr/share/zoneinfo/GMT /etc/localtime

Configuring kboot:

(chroot) livecd / # e2label /dev/ps3da1 /
(chroot) livecd / # cd /etc
(chroot) livecd etc / # cp kboot.conf.example kboot.conf
(chroot) livecd etc / # nano -w kboot.conf

************THIS NEXT PART IS VERY IMPORTANT FOR NEWBIES LIKE I AM, FOLLOW THIS PART EXACTLY HOW YOU SEE IT DON'T SKIP, OR IT WILL NOT LOAD PROPERLY (TRUST ME I KNOW)

Now that thats out of the way let's continue

# The following is an example kboot configuration file. Edit it
# to suit your needs before attempting to reboot your system or
# you may be unable to boot the new install.

# default: the default kernel label to boot should the user not make
# a selection. Uncomment the following line and set a default kernel label.
default=gentoo

# timeout: number of seconds to wait for user input before the default
# kernel label is booted. Uncomment the following line and set timeout.
# timeout=20

# The format from this point on is within a kernel label. At a minimum,
# you must pass the kernel and root device. The syntax is as follows:
#
# label='device:<path_to_kernel> initrd=device:<path_to_initrd> kernel_options'
#
# You should also pass the video options as well. An example of video
# options are as follows:
#
# 480i = ps3fb:mode:1
# 576i = ps3fb:mode:6
# 720p = ps3fb:mode:3
# 1080i = ps3fb:mode:4
# 1080p = ps3fb:mode:5
#
# You can review all possible video modes using the ps3videomode application
# provided by the ps3pfutils package. i.e. ps3videomode -v will display
# possibilities.

# The following is an example kernel label. Uncomment and edit as needed.
gentoo='ps3da1:/boot/kernel initrd=ps3da1:/boot/initrd root=/dev/ram0 real_root=/dev/ps3da1 init=/linuxrc video=ps3fb:mode:8 rhgb' (Where it says mode: change that number according to your T.V since i have standard T.V and not a high-def T.V yet, the mode is 1 and leave the rest of that line alone.
================================================== ==============
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 03-04-2008, 03:41 AM
nightcrawla's Avatar
nightcrawla   is offline
PS3Hax Active Hacker
 
Join Date: Mar 2008
Location: Texas
Posts: 13
Default

Part 6 (Don't worry we're just about done )

(After u edit the kboot press ctrl X and then ctrl y and hit enter and it will take u back to the prompt ***for newbies, dont change the name of the kboot when it ask you to save,
I'm not trying to belittle anyone reading this I would just like to let people know that are completely new to linux, what not to do, because those small things can trip you up , in the installation phase of linux)

Now continuing
*****************THIS IS ALSO IMPORTANT FOR NEWBIES WHAT YOU SEE IS WHAT YOU TYPE(BE EXTRA CAREFUL THAT THINGS ARE RIGHT AND LINED UP CORRECTLY BEFORE YOU MOVE ON TO THE NEXT STEP)

Edit /etc/fstab ¶

Given the prior disk partitioning scheme, you need to make sure /etc/fstab reflects the proper device naming. Here is an fstab entry with that assumption in mind:

/etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs> <mountpoint> <type> <opts> <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/ps3da1 / xfs noatime 0 1
/dev/ps3da2 none swap sw 0 0
/dev/sr0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
none /spu spufs default 0 0

================================================== ===============
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 03-04-2008, 03:50 AM
nightcrawla's Avatar
nightcrawla   is offline
PS3Hax Active Hacker
 
Join Date: Mar 2008
Location: Texas
Posts: 13
Default

Part 7 Last Step

Set root password ¶

You must set the root password using the 'passwd' utility.
Add a default non-root user ¶

You should now add a default user, in this case John, and set his password.

(chroot) / # useradd -m -G users,wheel,audio -s /bin/bash john (<<<whatever name u like)
(chroot) / # passwd john (<<<the name u chose in the line above)
Password: (Enter the password for john) (the name you chose)
Re-enter password: (Re-enter the password to verify)

Exit the chroot, unmount filesystems, and reboot ¶

You can now exit the chroot in order to reboot. Be sure to unmount the filesystems prior to rebooting.

(chroot) etc # exit
exit
livecd mnt # cd /mnt/
livecd mnt # umount gentoo/proc/ gentoo/dev/ gentoo/
livecd mnt # umount /mnt/usb/ (if you don't have a usb flash drive conected to the ps3 you can skip and just type reboot)
livecd mnt # reboot

Eject the Install CD when the PS3 power-cycles.
Enjoy! ¶

when it(the ps3) reboots and you just see a kboot tab until you see kboot:gentoo hit enter, let linux finish loading and then sign in and enjoy

You now have a working install on your PS3. When you reboot to the hard drive, it will boot up and gdm will start. You can login with your new user and it will load the XFCE4 window manager automatically.
Installing GRP packages ¶

******I didn't create the whole tutorial solely by myself, I used several sites and friends helped me to get pass certain error messages, no errors should be in this tutorial because all that was fixed in the tweaks, in the lines of codes posted Thanks for reading
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 03-04-2008, 09:57 AM
oobuk's Avatar
oobuk   is offline
Fish & Game Patrol
 
Join Date: Feb 2008
Posts: 47
Default Thanks nightcrawla

These instructions look very good. I hope to try them out this weekend.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Guide for Ubuntu on PS3 H.axen Ubuntu Linux 17 Yesterday 07:13 PM
How to Install Fedora Core 8 haxen Fedora Core 8 18 12-09-2008 01:38 PM
Backup your Blu-Ray Disc haxen PS3 & PS2 Games 11 11-03-2008 05:57 PM
Resistance 2 Release Date On PS3 Set For September - dBTechno Clank Resistance 2 1 03-31-2008 08:51 PM
How to Install Gentoo Linux haxen Gentoo Linux 40 09-09-2007 09:38 AM


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


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by 3.0.0
© PS3Hax.com 2007 & 2008