(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) System Configuration : (Category) Disks :
How do I convert my filesystems to little-endian?
first, BACK-UP!!! if this goes wrong, or the power goes out, you'll be screwed
unless you back-up! there's no way to fix a partly converted file system.

now, reboot in single user mode (hit 's' at the mklinux booter panel), or type
'telinit 1' as root.

first you want to convert all the non-root partitions. for this example, we'll
assume you have /usr at /dev/sda5 at / at /dev/sda3. substitute these with your
own setup, which you can find out by doing 'df'.

make sure you have e2fsprogs version 1.10-0B or higher. now type 'umount /usr'
to unmount the /usr slice. type 'e2fsck -f /dev/sda5' and type 'y' to fix any
problems that come up. now type 'e2fsck -a -v /dev/sda5'. now for the actual
conversion: type 'e2fsck -a -v -s /dev/sda5'. repeat for each non-root
partition. then type 'telinit 6' to reboot and hit 's' at the boot panel to
enter single user mode, again.

converting the root slice can be a little tricky. MAKE SURE YOU ARE IN SINGLE
USER MODE, or things could get confused. now unmount all your other partitions
('umount [name]' where '[name]' is the mount point or /dev/ entry). type
'mount -n -o remount,ro /' to re-mount / as read-only.

as before, type 'e2fsck -f /dev/sda3', and fix any errors. now type'e2fsck -a -v
/dev/sda3'. and finally, to convert, type
'e2fsck -a -v -s /dev/sda3'. after that, commands won't work, so type 'sync',
and then hit the restart button.

upon boot, everything should work fine. it may say some partitions where not
unmounted cleanly, and check them fully. this is normal and can be ignored.

now go have fun with you new little-endian filesystems!
thomassr@erols.com
[Append to This Answer]
Previous: (Answer) Can I use a PD/CD-ROM drive with linux?
Next: (Answer) How do I install quota?
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=321
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo