Ask your questions here.
Post a reply

Refracta2USB doesnt see /dev/sdb1

Tue Aug 26, 2014 2:58 pm

Hey i have problem using refracta2usb on Debian Jessie amd64.

I installed packages live-boot live-config zenity fuseiso pmount hwinfo and refracta2usb from your web repository.
It starts normally, but then fails with this error:
Image

System does see that partition, i even successfully ran
Code:
[email protected]:~$ sudo mkfs.vfat /dev/sdb1
mkfs.fat 3.0.26 (2014-03-07)
[email protected]:~$ sudo blkid
/dev/sdb1: UUID="F227-2A5F" TYPE="vfat"
[email protected]:~$


Any idea what is wrong? Thanks.

Re: Refracta2USB doesnt see /dev/sdb1

Tue Aug 26, 2014 9:39 pm

Check the error log. It's in a hidden directory in your home: ~/.refracta2usb/refracta2usb.log
What shows up with 'fdisk -l' and 'blkid -c /dev/null'?

If the answer isn't obvious in the error log, run it in debug mode:
Code:
refracta2usb -d

Re: Refracta2USB doesnt see /dev/sdb1

Wed Aug 27, 2014 8:11 am

Hi, i feel stupid, i even could see the problem in terminal.

It looks like problem with zenity package. I will try alternative which dpkg offered to it.

So the log:
Code:
** (zenity:10770): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


The same message shows up in the debug mode.

Re: Refracta2USB doesnt see /dev/sdb1

Wed Aug 27, 2014 10:30 am

I'm not sure that's the right error message. Look for 'fdisk -l' in the debug log.

Re: Refracta2USB doesnt see /dev/sdb1

Wed Aug 27, 2014 10:41 am

It says that /dev/sdb1 is not connected.

But fdisk -l and even blkid do see /dev/sdb1.

When i mount it, refracta2usb fails because "its mounted".

Re: Refracta2USB doesnt see /dev/sdb1

Wed Aug 27, 2014 6:14 pm

Could you post the debug log, so I can see the whole thing? It might be too big to post here, but you can put it on http://paste.debian.net/ and post the link here.

It is correct that the script should fail if the usb is mounted. If it gets mounted and then unmounted, you might need to unplug it and then plug it in again. If your desktop automatically mounts drives that you plug in, you'll have to disable that feature first.

Re: Refracta2USB doesnt see /dev/sdb1

Thu Aug 28, 2014 8:13 pm

There it is. It doesnt say much.
http://paste.debian.net/118078/

The last line is "device /dev/sdb1 is not connected" in czech.

It wasnt mounted.

Re: Refracta2USB doesnt see /dev/sdb1

Fri Aug 29, 2014 12:43 am

That looks like the output from the terminal where you started the script. I need to see the error log when you run it in debug mode. (~/.refracta2usb/refracta2usb.log) It will show every command that the script executes, and maybe I can see where it goes wrong.

The error message you're getting (device /dev/sdb1 is not connected) is not coming from refracta2usb, it's coming from one of the commands used in the script.

Re: Refracta2USB doesnt see /dev/sdb1

Fri Aug 29, 2014 11:56 am

There is not directory ~/.refracta2usb/.

[email protected]:~$ ls -a | grep refracta
refracta2usb.log

Content of this log is the same like the terminal output i posted last time.

Re: Refracta2USB doesnt see /dev/sdb1

Sat Aug 30, 2014 12:17 pm

What version of refracta2usb are you using??? If it's 0.9.6, your error log should be in /home/hans/.refracta2usb/, and if you're using 0.9.1, there is no error log. When you run it in debug mode, there should be a lot more in the error log, and the lines should start with + or ++.

And are you using zenity, or did you install yad? If using yad, which version is it?

With the usb stick plugged in and not mounted, run the following command as unprivileged user (not root)
Code:
/usr/sbin/hwinfo --usb --short|grep "/dev/sd"
What does it show?
Post a reply