Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Persistence.txt enhancements #19

Closed
nikmartin opened this issue Mar 5, 2013 · 2 comments
Closed

Persistence.txt enhancements #19

nikmartin opened this issue Mar 5, 2013 · 2 comments

Comments

@nikmartin
Copy link
Contributor

It would be helpful for users if Persistence.txt showed how to gather the information required for the udev rules:

1) Change <cache_match_expr> to ENV{ID_SERIAL}=="<ID SERIAL OF YOUR CACHE DEVICE>", ENV{DEVTYPE}==<DEVICE TYPE OF YOUR CACHE DEVICE>

2) Change <source_match_expr> to ENV{ID_SERIAL}=="<ID SERIAL OF YOUR HARD DISK>", ENV{DEVTYPE}==<DEVICE TYPE OF YOUR SOURCE DEVICE>

Find <ID SERIAL OF YOUR xxx DEVICE> and <DEVICE TYPE OF YOUR xxx DEVICE> by running:
    udevadm info --query=env --name=/dev/<source disk or partition name>
and in the output, find the items:
ID_SERIAL
and
DEVTYPE
respectively.
@sanoj-stec
Copy link
Contributor

I will add a script for this soon
The script will add udev rules during cache creation and remove it on cache deletion

@sanoj-stec
Copy link
Contributor

added the script for rule file generation in commit e17e850

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants