GithubHelp home page GithubHelp logo

wolfspyre / revodrive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martin-bts/revodrive

0.0 1.0 0.0 224 KB

OCZ RevoDrive 2x drivers for Linux kernels > 3.2.x

License: GNU General Public License v2.0

Shell 0.19% Batchfile 52.93% Makefile 2.58% C 38.97% Objective-C 5.32%

revodrive's Introduction

#OCZ RevoDrive 2x drivers for Linux kernels > 3.2.x

Some backgrounder. OCZ does not provide Linux support for older devices in RevoDrive series. However, drivers for 350 work OK, but the compilation fails out of the box. This is due to some changes in kernel functions. This source tree compiles OK, but does not provide any way to package the binary driver(s). You need to move stuff in place manually until I (or you) make correct packaging recipes for Fedora etc.

Please note: at least in my case, the drive is recognized as 2 separate disks. These are /dev/sde and /dev/sdf in my case. You can check the correct partitions with fdisk:

$ sudo fdisk -l
...
Disk /dev/sde: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc088ebc8

Device     Boot  Start       End   Sectors   Size Id Type
/dev/sde1  *      2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sde2       206848 468879359 468672512 223.5G  7 HPFS/NTFS/exFAT


Disk /dev/sdf: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc088ebc8
...

In this case, we get devices /dev/sde and /dev/sdf. In order to make a single usable device out of these, we must use mdadm:

$ sudo mdadm --build /dev/md0 --raid-devices=2 --level=0 /dev/sde /dev/sdf

This gives us /dev/md0 that has the correct drive geometry. Now you can just mount the device using whatever means you want. If you want to know what happens, just look at the command line parameters:

--build means we want to build a md device without metadata (ie. superblocks etc.)

/dev/md0 is the device we want to create

--raid-devices=2 means we have 2 devices

--level=0 tells that we want to build a striped drive

and finally /dev/sde and /dev/sdf are the devices to use for building the md0 array.

revodrive's People

Contributors

mikolas avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.