LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
Running openSUSE live from second partition of USB


Hello,

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
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You might be interested in Multi Boot.
http://www.pendrivelinux.com/yumi-mu...t-usb-creator/

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
Dan_1983
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
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,783

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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:
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
jefro
Guru
 
Registered: Mar 2008
Posts: 11,714

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

http://en.opensuse.org/SDB:Live_USB_stick for some idea.
 
Old 04-04-2011, 03:30 PM   #6
Dan_1983
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.
 
  


Reply


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/Novell 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/Novell 5 10-04-2007 09:29 PM


All times are GMT -5. The time now is 10:18 PM.

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