c0rp-aubakirov / flyback

Automatically exported from code.google.com/p/flyback
0 stars 0 forks source link

Flyback 0.6.5.1 does not detect removable drives correctly #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When flyback is run, not all drives are detected. I have traced the problem to 
backup.py, method get_dev_paths_for_uuid(uuid).

For most of my drives, DEVNAME=sda1, but "mount" returns "/dev/sde1". Now, when 
get_mount_point_for_uuid(uuid) calls "if dev_path in dev_paths" it naturally 
returns false as it compares "/dev/sde1" with "sde1".

Adding this in get_dev_paths_for_uuid after "if line.startswith('E: DEVNAME=')" 
did the trick:
109a110
>       dev_paths.add( '/dev/' + line[line.index('=')+1:].strip() )
131a133
> 

This all happens on:
-  2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:26:05 UTC 2010 x86_64 
GNU/Linux
- Python 2.6.6
- Ubuntu 10.10

Original issue reported on code.google.com by verynot...@gmail.com on 21 Oct 2010 at 9:53

GoogleCodeExporter commented 9 years ago
thanx a lot
I could start to use flyback

Original comment by trasoug...@gmail.com on 5 Nov 2010 at 11:08

GoogleCodeExporter commented 9 years ago
Thanks,

I used your edit and it sort of worked. I get 2 partitions out of 3, /dev/sd1, 
/dev/sd2 but not /dev/sd3 if I use Flyback version 0.6.5. I get sd1 and sd3 in 
v0.5. Not sure at all what is going on!!

Original comment by KnowTheT...@gmail.com on 29 Mar 2011 at 11:49

GoogleCodeExporter commented 9 years ago
Thumbs up

Original comment by Mikolaj....@gmail.com on 7 Apr 2011 at 9:53