Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Refracta2USB doesnt see /dev/sdb1

Ask your questions here.

Re: Refracta2USB doesnt see /dev/sdb1

Postby Migilenik » Sat Sep 06, 2014 8:59 am

Hey, its working, Parted Magic 2014 iso was successfully "copied" to USB stick, but there is another problem, actually the same problem unetbootin has (for me in Debian Jessie and Fedora 20).

After boot, it cant load boot menu. Instead it shows this:
"Failed to load COM32 file menu.c32" and then it shows boot prompt.

After a while is Parted Magic successfully booted.

I believe it could be problem with syslinux, viz second comment here:
https://bugs.launchpad.net/unetbootin/+bug/1190256
(mentioned workaround doesnt work for me)
Migilenik
 
Posts: 11
Joined: Tue Aug 26, 2014 2:54 pm

Re: Refracta2USB doesnt see /dev/sdb1

Postby fsmithred » Sat Sep 06, 2014 11:50 am

Yes, it may be related to that bug. We had to make some changes to refractasnapshot to adjust for changes in syslinux. In the older versions of syslinux, the *.c32 files are in /usr/lib/syslinux. In the newer version (6.0.3) there are three sets of those files, each in a subdirectory of /usr/lib/syslinux/modules. The subdirectories are bios, efi32 and efi64.

I haven't done anything with those files in refracta2usb yet, and I'm not even sure if I need to. What task in refracta2usb did you use to create your parted magic usb? Did you select ISO from the main menu, or did you use one of the tasks from the advanced menu? Boot_ISO or Multiboot from the advanced menu are possible choices.

If the iso is one that was made with refractasnapshot 9.1.2, then the necessary modules are already in the isolinux directory for the live CD. If the iso is from somewhere else, whatever files are needed for booting should be in the isolinux directory. They would get copied into the /syslinux folder on the usb if you used ISO from main menu, and they would go into a different directory (that you get to name) if you use Multiboot. And if you used Boot_ISO, those modules would still be inside that iso file.

Take a look at the end of the Help file in refracta2usb. It shows a few different ways that the directory tree on the usb can be arranged, depending on which task you choose. That might help you understand what I'm talking about. I'll probably need to look at it, too. Then I might have a better idea of what I'm talking about.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta2USB doesnt see /dev/sdb1

Postby fsmithred » Sat Sep 06, 2014 5:45 pm

I was going to download the parted magic iso and check it out, specifically to look at the boot menu to see what options were used. Unfortunately, it costs money to get it, so I'll pass. I then looked at a description of what it can do, and it looks like the refracta iso can do everything that parted magic can do.

Anyway, take a look at its boot menu to see if you need to edit the boot menu on your usb. Some distros need special commands. Take a look at this thread to see some reports from people using the installer and snapshot tools on other distros. I know that antix and the debian netinstall cd need special commands. Can't remember what else. Oh yeah, solusos, but that's no longer being developed. And crunchbang needed some tweaks, too.
refracta-installer-and-snapshot-used-on-other-distros-t111.html
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta2USB doesnt see /dev/sdb1

Postby Migilenik » Sun Sep 07, 2014 12:39 am

I really like refracta, because its design and application set is very similar to my desktop, but im missing few applications i use in PartedMagic. Im going to play with it and edit refracta to the perfection for me. Anyway, you got PM.
Migilenik
 
Posts: 11
Joined: Tue Aug 26, 2014 2:54 pm

Re: Refracta2USB doesnt see /dev/sdb1

Postby fsmithred » Fri Dec 05, 2014 3:40 pm

Revisiting this after trying to update a live-usb with refracta2usb in jessie.

/sbin/blkid no longer works for user. Oh wait, this is only in my jessie-sysv installation. The command does work in a snapshot I made that has libsystemd0 installed. (But I had to boot with init=/bin/bash and then start udev and /sbin/init manually, as described by dzz in another thread.) It also works in jessie with systemd running (which boots just fine.)

Here's a partial solution - in the check_device function, around line 240 or so, change
Code: Select all
# Check that first partition exists
if ! $(/sbin/blkid -c /dev/null | grep -q "${device}1") ; then
   echo "${device}1 does not exist."
   exit_message="\nDevice ${device}1 does not exist.
Maybe you need to format it?"
   exit_dialog
fi

to this:
Code: Select all
# Check that first partition exists
if ! $(ls -l /dev/disk/by-id | grep -qs "${device##*/}1) ; then
   echo "${device}1 does not exist."
   exit_message="\nDevice ${device}1 does not exist.
Maybe you need to format it?"
   exit_dialog
fi


Still need to find a replacement test for vfat. I can't think of a way for unprivileged user to get the filesystem type for an unmounted filesystem.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Refracta2USB doesnt see /dev/sdb1

Postby fsmithred » Sat Dec 06, 2014 7:02 pm

Got it. Here's a replacement for /sbin/blkid to find the filesystem type of an unmounted filesystem.
As unprivileged user, this works in jessie-sysv:
Code: Select all
/sbin/fsck -N /dev/sdb1 | \
grep vfat
or
grep LUKS
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred