-   Linux - General (
-   -   Running openSUSE live from second partition of USB (

Dan_1983 03-26-2011 07:57 PM

Running openSUSE live from second partition of USB

I am trying to run the openSUSE live cd from the second partition of a 16 G USB stick. The reason for doing this is so that I can use the first 13G as a windows file system that Windows can read. Does anyone know how to do this?

stress_junkie 03-26-2011 08:26 PM

You might be interested in Multi Boot.

It boots ISO image files from a USB stick. You can also store other stuff on the same USB flash drive.

Dan_1983 03-26-2011 08:56 PM

I have tried several methods but the issue seems to be that openSUSE live always mounts the first partition to look for a configuration file. Since it is on the second partition it states it can't find it and then reboots the computer.

bigrigdriver 03-27-2011 01:02 AM

You would have to mount the opensuse.iso to a mount point, then copy the .iso to a temporary (empty) folder for editing. In /boot/x86_64 (or the appropriate folder if using x86), look for file mkbootdisk. I suspect the answer is in this block of code:

my $part = $opt_disk;

  $opt_disk =~ s/(\d+)$//;
  my $pn = $1;

  die "not a partition: $opt_disk\n" unless $pn ne "";

  $opt_disk =~ s/(?<=\d)p$//;

  print "disk $opt_disk, partition $part\n";

  die "sorry, must be a primary partition (number 1 - 4)\n" if $pn < 1 || $pn > 4;

Mkbootdisk is a perl script, which I read about as well as I read Chinese. Notice references to $part, which I think is the partition number to be searched for the isolinux loader. Also note that $part refers to $opt_disk. If you can figure out how to change that to search the second partition, you can then:
1) umount the .iso
2) using the unpacked .iso in the temporary folder, make a new .iso.
3) put that new .iso on the USB stick.

I hope I haven't led you astray.

jefro 03-27-2011 05:20 PM

The old suse instructions were basically a real hard drive install method and I think they should still work if you put grub on the flash. The only issue is how the system might see the usb in the order if you use sda or sdb deal. You need to change than to uuid I think. for some idea.

Dan_1983 04-04-2011 03:30 PM

Thanks for all the help. I ended up just building my own initd and I have it pointing to the 2nd partition of the USB stick.

All times are GMT -5. The time now is 12:40 AM.