Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-26-2011, 07:57 PM   #1
LQ Newbie
Registered: Feb 2007
Posts: 11

Rep: Reputation: 0
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?
Old 03-26-2011, 08:26 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
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.
Old 03-26-2011, 08:56 PM   #3
LQ Newbie
Registered: Feb 2007
Posts: 11

Original Poster
Rep: Reputation: 0
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.
Old 03-27-2011, 01:02 AM   #4
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.

Last edited by bigrigdriver; 03-27-2011 at 01:06 AM.
Old 03-27-2011, 05:20 PM   #5
Registered: Mar 2008
Posts: 16,883

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.
Old 04-04-2011, 03:30 PM   #6
LQ Newbie
Registered: Feb 2007
Posts: 11

Original Poster
Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up OpenSUSE 11.2 Live CD on a USB Drive markw10 SUSE / openSUSE 1 11-14-2009 04:09 PM
running fedora live (cd, usb, sd) schneidz Linux - Hardware 7 11-12-2009 09:26 PM
[SOLVED] Can not create live usb for OpenSuse using Live USB creater :( PrinceCruise Linux - General 4 09-23-2009 02:04 PM
openSuse 11 live usb error - could not find kernel image abourke Linux - Newbie 1 08-29-2008 03:52 AM
Running openSUSE 10.2 on usb external drive linux_challenged SUSE / openSUSE 5 10-04-2007 09:29 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration