Skip to content

RootFS on USB hard Disk [fixed] #75

Closed

Description

@RaTTuS-BIG

when putting the Root FS on a external hard disk
on of the cheapest options is a
http://www.amazon.co.uk/gp/product/B007HMDB4Q
however this has a cypress chipset which is compiled as a module and thus will not work.

2379c2379

< CONFIG_USB_STORAGE_CYPRESS_ATACB=m

CONFIG_USB_STORAGE_CYPRESS_ATACB=y
will fix the issue, though making the kernel bigger .
other device option in the same area may be worth considering

Activity

  1. asb commented on Aug 20, 2012

    @asb

    Can you confirm this module is actually required to be built in to the kernel for you to boot? Looking at the help text for that option, it looks to me like your drive would be supported fine as a usb mass storage device - you'd just get extra functionality (hdparm/smartctl).

  2. RaTTuS-BIG commented on Aug 21, 2012

    @RaTTuS-BIG
    Author

    even with root delays it would not boot, I will test again today as I have an opportunity so will post again in a few hours

  3. RaTTuS-BIG commented on Aug 21, 2012

    @RaTTuS-BIG
    Author

    yes it is required to boot ,
    even with root_delay and bootdealy options set uncomfortably high
    the kernel will not find the device until the module is loaded so it needs to be built in.

  4. idlemoor commented on Aug 21, 2012

    @idlemoor

    << the kernel will not find the device until the module is loaded >>

    Roll yourself an initrd. This is exactly what initrd is intended for. See the ramfsfile and ramfsaddr params in config.txt, and the initrd kernel param (add it to cmdline.txt). e.g. config.txt
    ramfsfile=initrd.gz
    ramfsaddr=0xa00000

    and cmdline.txt
    initrd=0xa00000,0x279dfd
    where 0x279dfd is the size of the initrd.gz file in hex

  5. RaTTuS-BIG commented on Aug 21, 2012

    @RaTTuS-BIG
    Author

    umm someone will have to hold my hand on this one ...
    how do I go about making an initrd for this

  6. Ferroin commented on Aug 21, 2012

    @Ferroin
    Contributor

    Unless you absolutely can't afford to use a bigger kernel, it's just easier to compile the driver into core.
    An initrd image is just a (optionally compressed) cpio archive with a particular directory structure, I know there is a package in Debian called initramfs-tools that can be used to do most of the work, but I don't know if such package exists in any other distributions.

  7. RaTTuS-BIG commented on Aug 22, 2012

    @RaTTuS-BIG
    Author

    I can, and do , build my own kernels, as this adapter is so cheap , it will [IMO] become popular for RaspberryPis it's the only one that I've hit a problem with moving the root FS onto it .

  8. kripton commented on Aug 22, 2012

    @kripton

    I have an external USB-2,5"-SATA-HDD-case that looks EXACTLY like the one from amazon you posted the link to and I'm using it for the root-fs for my RPi. Works without any problems using the normal USB-mass-media-support in the Linux-kernel.
    I'll try to see if I can get some photos or chipset-information from the enclosure.

  9. RaTTuS-BIG commented on Aug 22, 2012

    @RaTTuS-BIG
    Author

    Chip set here is
    Medi
    MA6116a
    CO423c-1207
    MAN 32037 1
    http://imgur.com/ZqJxL

    I only come though this because rootfs would not boot - on my other usb HD adapter [with the same HD] it booted this one was cheaper and smaller

  10. RaTTuS-BIG commented on Aug 24, 2012

    @RaTTuS-BIG
    Author

    just a FYI
    on the latest 3.2.27 kernel release [raspbian + all updates] the system still hangs at the same point - building with the module as in the 1st post fixes it.

  11. popcornmix commented on Sep 9, 2012

    @popcornmix
    Collaborator

    Without evidence of a significant number of people wanting this, I'm going to reject it.
    Moving modules into the kernel and causing a (perhaps modest) memory hit for hundreds of thousands of users doesn't seem to weigh up in making life easier for one.

  12. RaTTuS-BIG commented on Sep 10, 2012

    @RaTTuS-BIG
    Author

    it's not a problem as I know how to fix it I just have to be careful when I do updates.

  13. 10 remaining items

  14. added a commit that references this issue on Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions