Issue 85 in flyback: No external HD selectable

71 views
Skip to first unread message

codesite...@google.com

unread,
Mar 14, 2010, 1:50:14 PM3/14/10
to flyback...@googlegroups.com
Status: New
Owner: ----

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

codesite...@google.com

unread,
Mar 16, 2010, 12:10:11 PM3/16/10
to flyback...@googlegroups.com

Comment #1 on issue 85 by gd...@gmx.net: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

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.

codesite...@google.com

unread,
Mar 16, 2010, 12:23:57 PM3/16/10
to flyback...@googlegroups.com

Comment #2 on issue 85 by gd...@gmx.net: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

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.

codesite...@google.com

unread,
Mar 17, 2010, 8:07:33 AM3/17/10
to flyback...@googlegroups.com

Comment #3 on issue 85 by LazyGun37: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

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.

codesite...@google.com

unread,
Apr 5, 2010, 6:06:32 PM4/5/10
to flyback...@googlegroups.com

Comment #4 on issue 85 by germar.reitze: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

Same probleme here. But figured out that the hdd has to be FAT not EXT

codesite...@google.com

unread,
May 6, 2010, 11:26:37 AM5/6/10
to flyback...@googlegroups.com

Comment #5 on issue 85 by specopsadmin: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

It isn't the file system that matters (FAT, EXT, etc.). For local disks the
only
qualifier is that Flyback has write permissions at the root of the mount.
So if you
have a USB disk mounted at /media/usbdrive, but you only have write
permission at
/media/usbdrive/myaccount/, Flyback will ignore it.

For network mapped drives, you have to make a connection with GVFS, and you
MUST be
part of the FUSE group in order for an entry to be created in ~/.gvfs. Same
rules
apply as above, you'll need write access to the root of the networked
mount. Once all
that is satisfied, Flyback will allow backups.

This information should be written up a little better and put in to a FAQ,
it would
eliminate a lot of headaches.

--
You received this message because you are subscribed to the Google Groups "flyback-discuss" group.
To post to this group, send email to flyback...@googlegroups.com
To unsubscribe from this group, send email to flyback-discu...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/flyback-discuss?hl=en

Project homepage: http://code.google.com/p/flyback/

codesite...@google.com

unread,
Oct 14, 2010, 2:30:13 PM10/14/10
to flyback...@googlegroups.com

Comment #6 on issue 85 by papaii: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

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


codesite...@google.com

unread,
Oct 30, 2011, 7:43:19 AM10/30/11
to flyback...@googlegroups.com

Comment #7 on issue 85 by xben...@gmail.com: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

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)


codesite...@google.com

unread,
Oct 30, 2011, 7:47:19 AM10/30/11
to flyback...@googlegroups.com

Comment #8 on issue 85 by xben...@gmail.com: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

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

codesite...@google.com

unread,
Nov 30, 2011, 9:57:49 AM11/30/11
to flyback...@googlegroups.com

Comment #9 on issue 85 by ken...@gmail.com: No external HD selectable
http://code.google.com/p/flyback/issues/detail?id=85

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.

Reply all
Reply to author
Forward
0 new messages