pro native install: reiser borked: can't login to repair?
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
If you have a native install small enough you can create a loop filesystem on e: copy the contents of your hda2 into it then reformat the drive in ext3 and copy everything back. If you have too much stuff installed on to your linux partition you could swap your harddisk into a PC and copy the files onto a drive there. Or you could move the partition using Acronis. Copy the data from the old partition to the new one, reformat the old one, copy the data back to the old one, delete the new one and resize the old one back using acronis.
If you keep an open mind, will your brain fall out?
Hinobspangle wrote:If you have a native install small enough you can create a loop filesystem on e: copy the contents of your hda2 into it then reformat the drive in ext3 and copy everything back. If you have too much stuff installed on to your linux partition you could swap your harddisk into a PC and copy the files onto a drive there. Or you could move the partition using Acronis. Copy the data from the old partition to the new one, reformat the old one, copy the data back to the old one, delete the new one and resize the old one back using acronis.
Thanks for the pointers.
The loop file system sounds the easiest.
I’m using the default pro install, and haven’t installed anything else yet (until I get reiserfs off it)
How do I create the loop file system on e: ?
I’ll have to have a read, else pls enlighten me J
cheers
scooby
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
To create the loop file system
Then you will have to boot your system using the stardust CD use ctrl+c to get out of the installer.
Reboot and check everything still works then
By the way I have never used stardust so I am assuming that it mounts the Xbox E drive by default on startup in /mnt/fatx/e
Also I am assuming you have 2.5Gb of free space on E for the rootfs I am also assuming that as you haven't yet installed anything in Gentoox that you won't ming when I don't have a clue what I am on about and everything goes wrong, still you've got to learn somehow
Code: Select all
dd if=/dev/zero of=/mnt/fatx/e/rootfs count=2500 bs=1024k
yes | mkreiserfs -f /mnt/fatx/e/rootfs
Code: Select all
mkdir /mnt/rootfs
mkdir /mnt/hda2
mount -t reiserfs -o loop /mnt/fatx/e/rootfs /mnt/rootfs
mount -t reiserfs /dev/hda2 /mnt/hda2
cp -avx /mnt/hda2/* /mnt/rootfs/
umount /mnt/hda2
mke2fs -j /dev/hda2
mount /dev/hda2 /mnt/hda2
cp -avx /mnt/rootfs/* /mnt/hda2/
umount /mnt/rootfs
umount /mnt/hda2
Code: Select all
rm /mnt/fatx/e/rootfs
Also I am assuming you have 2.5Gb of free space on E for the rootfs I am also assuming that as you haven't yet installed anything in Gentoox that you won't ming when I don't have a clue what I am on about and everything goes wrong, still you've got to learn somehow
If you keep an open mind, will your brain fall out?
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
Thanks for the tipsnobspangle wrote:To create the loop file systemThen you will have to boot your system using the stardust CD use ctrl+c to get out of the installer.Code: Select all
dd if=/dev/zero of=/mnt/fatx/e/rootfs count=2500 bs=1024k yes | mkreiserfs -f /mnt/fatx/e/rootfs
Reboot and check everything still works thenCode: Select all
mkdir /mnt/rootfs mkdir /mnt/hda2 mount -t reiserfs -o loop /mnt/fatx/e/rootfs /mnt/rootfs mount -t reiserfs /dev/hda2 /mnt/hda2 cp -avx /mnt/hda2/* /mnt/rootfs/ umount /mnt/hda2 mke2fs -j /dev/hda2 mount /dev/hda2 /mnt/hda2 cp -avx /mnt/rootfs/* /mnt/hda2/ umount /mnt/rootfs umount /mnt/hda2
By the way I have never used stardust so I am assuming that it mounts the Xbox E drive by default on startup in /mnt/fatx/eCode: Select all
rm /mnt/fatx/e/rootfs
Also I am assuming you have 2.5Gb of free space on E for the rootfs I am also assuming that as you haven't yet installed anything in Gentoox that you won't ming when I don't have a clue what I am on about and everything goes wrong, still you've got to learn somehow
This fails >>> mount -t reiserfs -o loop /mnt/fatx/e/rootfs /mnt/rootfs
still trying variations, probably will end up doing it on the pc.
cheers
scooby
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
What is the error you get?
if you get a "No such file or directory" then I assume that the e drive isn't mounted automatically in stardust.
to solve this check which mounts are defined using mount you are looking for something like this
or this
if this line is missing (there will be others) you need to mount the e drive manually
if you get a "No such file or directory" then I assume that the e drive isn't mounted automatically in stardust.
to solve this check which mounts are defined using mount you are looking for something like this
Code: Select all
# mount
/dev/hda50 on /mnt/fatx/e type fatx (rw)
Code: Select all
# mount
/dev/ide/host0/bus0/target0/lun0/part50 on /mnt/fatx/e (rw)
Code: Select all
mkdir /mnt/fatx
mkdir /mnt/fatx/e
mount -t fatx /dev/ide/host0/bus0/target0/lun0/part50 /mnt/fatx/e
If you keep an open mind, will your brain fall out?
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
Code: Select all
sed -e "s/reiserfs/ext3 " /mnt/hda2/etc/fstab > /tmp/fstab
mv /tmp/fstab /mnt/hda2/etc/fstab
chmod 644 /mnt/hda2/etc/fstab
If you keep an open mind, will your brain fall out?
Did it the harder way but its done now, this is a neater way for me doing my other xbox, thx.nobspangle wrote:that should sort you outCode: Select all
sed -e "s/reiserfs/ext3 " /mnt/hda2/etc/fstab > /tmp/fstab mv /tmp/fstab /mnt/hda2/etc/fstab chmod 644 /mnt/hda2/etc/fstab
Still not quite there. There must be somewhere else that the disks are mounted, not just fstab.
The machine halts, as it can't find a reiserfs on hda2.
Is there a fstab in the initrd.gz on /mnt/fats/e ? thats mounts the disks on boot?
I'll mount the initrd and see if I can find anything...
cheers scooby
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
Thanks for your help on this!nobspangle wrote:There is I think it's in linuxrc you've probably found it by now
you can probablly do a "sed -e "s/reiserfs/ext3 /" /mnt/initrd/linuxrc" or something similar to sort it out
That files, got alot of crap in it, do I have to do something special with it?
Also do you know how to package the mounted initrd back as a file.
More reading, ho hum!
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
once you have mounted the initrd loop (say in /mnt/initrd)
to gzip the initrd file just type "gzip ./initrd" or whatever path you have the initrd in
Code: Select all
sed -e "s/reiserfs/ext3/" /mnt/initrd/linuxrc > /tmp/linuxrc
rm -rf /mnt/initrd/linuxrc
mv /tmp/linuxrc /mnt/initrd/linuxrc
chmod 700 /mnt/initrd/linuxrc
umount /mnt/initrd
If you keep an open mind, will your brain fall out?