The problem is, once you format /dev/hda55 as reiserfs it "disappears". The xbox nolonger recognises it as a valid partition so it does not report it as existant. This means that the partition is not shown to linux.
Youve done absolutely everything right except for one part
. What you need to do is partition the drive. Make a linux partition right where the fdrive boundary is to the end of the disk. This should then make a /dev/hda1, format this as reiserfs, then copy your contents to /dev/hda1. To take a tool out of stardust distro, what you need to do is this:
1) make a script containing this (call it /tmp/mkpartition):
Code: Select all
#!/bin/bash
###
# Settings for fdisk when making swap, then root partitions
###
FDISKSWAP=/tmp/fdisk.swap
FDISKROOT=/tmp/fdisk.root
DEVICE="/dev/hda"
#START=15657985
###
# Start block for the end of the standard 8gb hdd
###
START=15633072
SWAPSIZE="+256M"
###
# Options for deleting all possible partitions from the drive
###
echo -e "d\n1\nd\n2\nd\n10\nd\n9\nd\n8\nd\n7\nd\n6\nd\n5\nd\n3\nd\n4\nw" > /tmp/make.fdisk
###
# Get the information needed to make the swap partition
###
sed -e "s/@SIZE@/$SWAPSIZE/g" -e "s/@START@/$START/g" < $FDISKSWAP > /tmp/make.fdisk
fdisk -u $DEVICE < /tmp/make.fdisk > /dev/null 2>&1
rm -f /tmp/make.fdisk
###
# Get the information needed to make the root partition
###
START=`fdisk -u -l ${DEVICE} | grep ${DEVICE}1 | awk -F' ' '{ print $3; }'`
START=`expr $START + 1`
sed -e "s/@SIZE@//g" -e "s/@START@/$START/g" < $FDISKROOT > /tmp/make.fdisk
fdisk -u $DEVICE < /tmp/make.fdisk > /dev/null 2>&1
rm -f /tmp/make.fdisk
###
# Initialize the swap partition
###
mkswap /dev/ide/host0/bus0/target0/lun0/part1 1> /dev/null 2> /dev/null
if [ $? != "0" ]; then
/bin/led rxrx
clear
echo "An error occurred, halting"
echo "[Error making swap]"
sleep 10
halt
sleep 1000
fi
###
# Format the root partition
###
yes | /sbin/mkreiserfs /dev/ide/host0/bus0/target0/lun0/part2 1> /dev/null 2> /dev/null
if [ $? != "0" ]; then
/bin/led rxrx
clear
echo "An error occurred, halting"
echo "[Error making root filesystem]"
sleep 10
halt
sleep 1000
fi
2) Make the following files, note the path is important! Leave them in /tmp and dont change the filename unless you update the above script:
a) /tmp/fdisk.swap
b) /tmp/fdisk.root
Also note that the formatting of the above two files is absolutely crucial. There should be no trailing newlines and no leading newlines. I.e. both files must start with "n" on the first line and end with "w" on the last line.
Finally, execute the /tmp/makepartition script. This should make you a 256MB swap partition on /dev/hda1 and use the remaining space on /dev/hda2 as a linux reiserfs partition. After youve done this, mount /dev/hda2 then copy over the contents of your rootfs
Note that this works for stardust, I dont guarantee it will work for you. BACKUP ALL OF YOUR DATA FIRST!!! And goodluck