New issue 85 by cuoregr: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85
What steps will reproduce the problem?
1. Start Flyback
2.
3.
What is the expected output? What do you see instead?
Window "Create backup" shows:
* dropdown menu "Please select the folder"... (so far, everything OK)
* "And the device you want to backup to" gives an error: "In order to
create the backup, Flyback needs a hard drive other than your computer
boots up from (pref. external and removable)".
I didn't expect this message when another HD is already connected. (Yes, it
does show in "media").
Tried it again with the HD not yet connected, but connecting it after this
message, but the result stays the same.
What version of the product are you using? On what operating system?
Ubuntu 9.04 (9.10 on other computer, with same problem), flyback 0.6.4
Please provide any additional information below.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
I'm having a similar issue. I have an external hard disk which I've
partitioned into
Windows (sdb1) and Linux (sdb2) partitions.
Only the sdb1 (Windows) partition is selectable as a backup device in
flyback, but I
would like to backup to the sdb2 Linux partition.
gdi2k@x200:~$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 499.4 GB, 499405291520 bytes
255 heads, 63 sectors/track, 60715 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00021968
Device Boot Start End Blocks Id System
/dev/sdb1 1 20643 165814866 b W95 FAT32
/dev/sdb2 20644 60715 321878340 83 Linux
Running Ubuntu Karmic 64-bit.
Apologies, it seems my issue has to do with the fact that I do not have
write
permissions on the newly created ext4 Linux partition. Fixing that allows
me to
select the partition from flyback.
Sorry for the noise.
I have the exact same problem -- my USB disk actually shows up as a
selectable "to be
backed up" file system, but is not selectable as a back-up destination.
Same probleme here. But figured out that the hdd has to be FAT not EXT
I just stepped through the code on my ubuntu 10.10 installation what I
found was that the issue appears to be in device matching between the
output of "mount" and "udevadm". The string comparison in
get_mount_points_for_uuid was checking the output from mount which on my
machine was "/dev/sda1" and "/dev/sdb1" against the output from udevadm
which on my machine was "sda1" and "sdb1". To fix this I hacked
backup.get_dev_paths_for_uuid in an ugly way:
if line.startswith('E: DEVNAME='):
tmp_path = line[line.index('=')+1:].strip()
if "dev" not in tmp_path:
tmp_path = "/dev/" + tmp_path
dev_paths.add( tmp_path )
Once I did this my external drive showed up just fine.
Aloha,
paddy hannon
Hi Paddy Hannon,
Thanks a lot!
However, the source code of flyhigh has been modified a bits. It can not
directly apply your patch. I have made a new version based on your changes:
diff -r 31b813e38ca3 src/backup.py
--- a/src/backup.py Wed May 05 11:17:53 2010 -0500
+++ b/src/backup.py Sun Oct 30 19:40:58 2011 +0800
@@ -106,7 +106,10 @@
dev_paths = set()
for line in s.split('\n'):
if line.startswith('E: DEVNAME='):
- dev_paths.add( line[line.index('=')+1:].strip() )
+ tmp_path = line[line.index('=')+1:].strip()
+ if "dev" not in tmp_path:
+ tmp_path = "/dev/" + tmp_path
+ dev_paths.add( tmp_path )
if line.startswith('E: DEVLINKS='):
for path in line[line.index('=')+1:].strip().split():
dev_paths.add(path)
Hi Paddy Hannon,
Thanks a lot! In order to simply the patching process. I have made a patch
based on your code:
--- a/src/backup.py Wed May 05 11:17:53 2010 -0500
+++ b/src/backup.py Sun Oct 30 19:40:58 2011 +0800
@@ -106,7 +106,10 @@
dev_paths = set()
for line in s.split('\n'):
if line.startswith('E: DEVNAME='):
- dev_paths.add( line[line.index('=')+1:].strip() )
+ tmp_path = line[line.index('=')+1:].strip()
+ if "dev" not in tmp_path:
+ tmp_path = "/dev/" + tmp_path
+ dev_paths.add( tmp_path )
if line.startswith('E: DEVLINKS='):
for path in line[line.index('=')+1:].strip().split():
dev_paths.add(path)
Attachments:
patch 595 bytes
Just an observation -- this is a critical bug, and that's the way it should
be treated. If a user has an external drive with a USB connection, and
it's visible in Ubuntu's "Places" folders, and (in my case) has 2TB of free
space -- and Flyback can't find it -- there's something structurally wrong
with the application. Users should not have to enter complex code and
spend hours trying to get it to work. It's this kind of stuff that
continues to give Linux a black eye.