Results 1 to 4 of 4

Thread: mfstools for a USB drive (byteswap)?

  1. #1
    Join Date
    Dec 2002
    Posts
    73

    mfstools for a USB drive (byteswap)?

    I want to operate on a Series 1 drive, mounted on a laptop using a usb enclosure. Is there a version that will do the byteswapping properly for pdisk and mfsrestore?

    The kernel byteswap parameter seems to be strictly for the ide driver, not the /dev/sdX drives.

  2. #2
    Join Date
    Aug 2004
    Posts
    4,075
    mfsrestore does byte swapping internally, so you don't need to boot with byteswap enabled to do that.

    You do need byteswapping if you want to mount any of the partitions to install hackes, etc.

    Seems like mfslive supports both byte swapping and usb disks, though perhaps not together. You might ask over there.

  3. #3
    Join Date
    Dec 2002
    Posts
    73
    Quote Originally Posted by Jamie View Post
    Seems like mfslive supports both byte swapping and usb disks, though perhaps not together. You might ask over there.
    As it turns out, not together. The byte swapping is an option in the ide driver, but not in the usb drive support.

  4. #4
    Join Date
    Aug 2004
    Posts
    4,075
    Quote Originally Posted by kmt View Post
    As it turns out, not together. The byte swapping is an option in the ide driver, but not in the usb drive support.
    There is a way to do byteswapping using the device-mapper in the 2.6 kernels, but you need an extra "dm-byteswap" module (ftp://ftp.kernel.org/pub/linux/kerne....6.4-rc1.patch). I thought maybe spike2k5 had put this into mfslive. It would be useful because, as you say, the byte swapping in the ide driver is a hack and you can't use it with other drivers, while the dm solution can be used with any underlying device, or even a file via a lookback device.

    There some discussion about dm_mapper in this thread.
    Last edited by Jamie; 04-19-2007 at 11:13 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •