Slackware :: Booting A USB Stick With GRUB2 And Labels

Feb 14, 2011

Here's the idea -- be able to boot slackware 13.1 DVD from a USB stick, but without using anything like an initrd or loading the contents of the slackware install all into memory first. So the USB stick is behaving like a hard drive (but with one disadvantage, just don't take the usb stick out while you're using it!). It has the advantage of saving on memory though .

In the above thread I had this idea working ok but only with slackware 13 and earlier. In fact I still have the CF card with it on, and it works fine. Only snag is it won't work with the newer 13.1.

Right now, I'm trying to use qemu for the following (not what I wrote above!). The idea is to use qemu to install a minimum slackware 13.1 to the USB stick, set it up and then boot from the USB stick itself (so I'm using the USB stick as the storage medium as opposed to say a hard drive image file).

So let's say (this is what I'm doing) I boot slackware 13.1 (32 bit) and make two partitions;

Code:

I then do a minimal installation of slackware (just "A" and jed from "AP"). Lilo is not installed as later I'll be using GRUB2 to try to boot.

I'm using a slackware package, grub-1.97-beta4-i486-1.tgz for slackware 13.1/GRUB2.

I then boot off the slackware 13.1 DVD but at the boot screen I choose to boot from /dev/sda2 which is the linux install I created earlier. Success, it boots ok and I can get into the slackware 13.1 install on the USB disk (which is /dev/sda2).

I then label the ext3 partition by using e2label;

Code:

And also change /etc/fstab;

Code:

Now I need some sort of bootloader to put onto the USB stick so I don't need the DVD any more. To do this, I'm trying to use GRUB2.

But here's the problem!

When I install slackware onto the USB stick using qemu, that partition is /dev/sda2. It's the first usb/storage medium that slackware detects so it gets the name sdaX. (X=1, fat partition, X=2 EXT3 linux).

But here's the problem. Suppose I take the USB stick over to another PC with a hard drive already inside it. Slackware would see the hard drive installed in that PC as (say) /dev/sda1 and the USB stick would then become the second drive, so /dev/sdbX (X=1, fat partition, X=2 EXT3 linux).

If I specify a specific device (lets say /dev/sda2) then it won't work in another system because if I take the example above, another PC with a hard drive installed in it the USB stick becomes /dev/sdb2 and the GRUB2 boot program would be expecting /dev/sda2 which won't work. What I need to do is to somehow find the install, the root on the USB stick automatically without having to specify it manually.

So here's what I've tried with grub (First thing I did was to install grub with grub-install /dev/sda).

Code:

Snag is it dosen't work :-( I get this booting from the USB stick:

Code:

If I try this:

Code:

I get a very similar result ....

Code:

So what I'm wondering is .... if the "search" line in grub is doing the searching for the root GRUB2 needs to use to boot from - how can I tell the next line, "linux /boot/vmlinuz-huge-smp-2.6.33.4-smp root=...." where to boot from? I can't use /dev/sda2 or /dev/sdb2 because if I try the usb stick in a different PC the stick will be a different device name. Trying to use LABEL= or /dev/disk/by-label/USB/ also dosen't work .

View 1 Replies


ADVERTISEMENT

Software :: Using Labels In Grub2 ?

Jul 12, 2010

I want to generate a grub.conf that will search for my /dev/sda1 based on the filesystem label, not the UUID.

I did change /etc/default/grub to so that GRUB_DISABLE_LINUX_UUID="true" and I regenerated grub.cfg.

But I want to go one step further and change the search statements. I notice they still reference the old UUID. I also know grub2 can search by label.

I could use understanding this page: [url]

Quote:

I'd like my grub.cfg to contain statements similar to this:

Code:

Assuming that's the right syntax, how do I make grub2 generate label-based menu entries like that?

View 2 Replies View Related

Fedora :: Dual Booting - Grub2 To See F15 Or Be Installed Using Grub2?

Jul 11, 2011

I installed Fedora 15, which was my first real departure from Debian based Linux OSs. I absolutely love the new Gnome 3, and was able to configure F15 to work as I wanted it to. On rebooting I realized that there was no boot loader screen, that F15 just booted and didn't give me a choice as to which OS I wanted to use. Eventually I was able to configure grub to let me see the boot loader and added my old boot loader as a choice. This worked well, maybe not a perfect solution, but it worked. This weekend I installed LMDE (Linux Mint Debian Edition) to another HDD. LMDE uses grub2 and after the install F15 was not recognized.

Two questions: Is there a way for grub2 to see F15? or Can F15 be installed using grub2? I really don't mind re-installing from scratch.

View 10 Replies View Related

Ubuntu :: Do I Have To Install Grub2 In USB Stick

Apr 10, 2011

I would like to make an Ubuntu 10.10 Bootable USB Stick, but before starting that I would like to know the following details please

1. Do I have to install Grub2 in the USB Stick also for Ubuntu 10.10?
2. Install I first Grub2 in the USB Stick, before installing Ubuntu 10.10 or viceversa?
3. How big shout it be the volume of the USB Key to install there both, Ubuntu 10.10 and Grub2?

View 1 Replies View Related

Ubuntu Installation :: Grub2 On Usb Stick Don't Load Grub.cfg

Feb 7, 2010

I' ve tried to do a iso multiboot 1gb pen stick with grub2 bootloader. I 've already readed all is it possible finding on the WWW but there are some problems i don't understand how to solve.

This is my sitution:

-koala 32bit installed on my pc with grub2 bootloader

-1gb pendrive parted as follow:

In the first fat16 partition there is installed grub2. On the second ext2 one there are iso files.

This is what i've do to install grub2 on my pen:

So i've created /boot/grub/grub.cfg file with the follow lines:

When i reboot by the pen stick, grub load up to it says me:

It seems not reding /boot/grub/grub.cfg

View 2 Replies View Related

Fedora :: Booting From USB Stick

Dec 22, 2009

How would I go installing Fedora to a USB stick and then booting from it?Does my BIOS have to support booting from a USB stick? because I don't think I have an option for that.So can someone explain to me how installing to and booting from a USB stick works?

View 2 Replies View Related

General :: Mint Is Not Booting Without USB Stick?

Jun 17, 2010

I just installed Linux Mint in my Netbook with help of USB stick. I don't have CD drive in my netbook.

Its working fine but without USB stick its not booting. If start with USB stick its booting fine.

The booting files are in USB, how do I change the booting option. so that I can boot without USB stick help.

View 8 Replies View Related

OpenSUSE Install :: Booting The LiveCD From An USB Stick?

Jan 26, 2011

-I could use a hand in installing opensuse on my 2009 Intel Macbook

-I need to use a USB stick for the install, my optical drive doesn't work.

-I am trying to reformat my macbook to run 64-bit opensuse 11.3 instead of Apple's proprietary operating system, OS X

-So I started here: Chapter1.Installation with YaST

-And in this article, under section 1.1. Choosing the Installation Media, i found this sub-section: Booting the LiveCD from an USB Stick.

-So i followed those steps to create a bootable USB stick in Terminal, and i got an error in Terminal and was unable to go any further;

-this was the error in Terminal: dd: bs: illegal numeric value

Would anyone know what the error means, and what i should have typed instead? Is it because my USB stick is generic instead of being a specific type like a U3 stick?

View 9 Replies View Related

Ubuntu :: Utility To Netboot Instead Of Booting With A Usb Stick?

Jul 30, 2010

I have a bootable usb stick with a Linux utility on it. After poking around for a bit I figured out the boot order:

isolinux.bin <--reads isolinux.cfg
loads the kernel: SA.1
loads initrd: SA.2

then depending on the options you select it boots one of two .iso files I want this utility to netboot instead of booting with a usb stick; is there a way I can package isolinux.bin, isolinux.cfg, the kernel and initramfs, iso's and all the other files on the root of the usb stick into one iso that can be tftp'd to the host which would then boot something that would extract the iso to ramdisk and start booting so that isolinux would run as if all the files were locally stored on CD/usb stick?

View 3 Replies View Related

General :: Accessing To A Usb Stick While Booting With Init=/bin/sh?

Mar 28, 2011

I am trying something: I would like to access to some data stored on a usb stick while I am booting to the kernel using the "init=/bin/sh" parameters.Is that possible ?My USB stick is detected when I do 'cat /var/log/messages.log | grep sdb". I had to "modprobe usb-storage".Quote:localhot kernel : sdb: sdb1localhost kernel: sd 3:0:0:0: [sdb] Attached SCSI removable diskBut I still can't get it mounted.Quote:mount: special device /dev/sdb1 does not exist"

View 2 Replies View Related

General :: Asus Eee PC Netbook - Booting From A USB Stick?

Mar 25, 2011

I'm trying to set up a netbook with Ubuntu for my computer-challenged Mother. I downloaded the image file to the download section of the new netbook, created a USB stick to boot from and then restarted the computer, pressing F2 in order to change the boot order. Using the "+" key I was able to put [Removable Dev.] on top: "1st Boot Device", but, and here's the thing, it is disabled: "A devince enclosed in the parenthesis has been disab led in the corresponding type menu." I do not understand this, nor do I know what to do

View 8 Replies View Related

General :: Booting Multiple Images From A USB Stick?

Dec 27, 2010

I work with many different PCs with Windows XP and Windows 7 deployed, and I'm trying to consolidate my stacks of CDs into a single USB drive. I'd like to be able to boot off it and have a choice of a few options: A persistent Linux install for troubleshooting, the Win7 install CD, and the WinXP install CD.

I'm aware that most USB sticks can't be partitioned, but after much trial and error I've found one that can have its removable bit flipped, be treated as a USB hard drive and partitioned. I can set up 4 primary partitions and an initial test with a boot cd image on the first partition seems to work on 3 of my 4 home PCs... on (only) one of them though, Grub gives a 'Missing MBR-helper' error. All my systems, even the one not booting correctly, see the partitions as valid in both Linux and Windows, and I've successfully retrieved data from all of them. My guess is that it's a BIOS quirk on that particular machine, but it puts the whole idea in jeopardy... if it doesn't work on one of my own PCs, who's to say it will work on other PCs?

I'd like to salvage the partition idea if I can, maybe someone has run into this before... But if it's just not feasible, I read that Grub can boot image files under certain circumstances... I'm wondering if it's possible to have Grub (or any other bootloader) run the Win7 and WinXP CDs as image files? That way they could all sit on a single partition on the USB stick.

I haven't yet tried any other bootloaders, for all I know I could try something else and get things going.

View 1 Replies View Related

Ubuntu :: Booting To Usb From Grub2?

May 4, 2010

Small issue with grub 2. I installed fedora on a usb drive and i'm trying to get it to boot from grub 2. I did update-grub and it found the kernel on /dev/sdd2 but for some reason it is trying to point the kernel file to /boot directory in grub but the kernel is on the usb drive and when i try to set it to look at the usb drive it says file not found.

View 5 Replies View Related

OpenSUSE Install :: LiveCD Not Booting On Either A CD Or USB Memory Stick?

Feb 7, 2010

I am getting a "No devices matches MBR identifier 0x8c71ad6e!" message along with a reboot in 120 seconds message. This occurs after kernel load and at the start of openSUSE boot.

I have tried both the 64bit and 32bit downloads

openSUSE-11.2-KDE4-LiveCD-i686.iso
openSUSE-11.2-KDE4-LiveCD-x86_64.iso

I have checksum checked both images after download. I have attempted the install on CD and USB stick with both images and the result is always the same.

I've included a screen image on my site: No Devices Matches MBR Identifier | Badzilla

View 5 Replies View Related

Ubuntu :: Booting From USB Memory Stick Fails On Thinkpad T42

Feb 28, 2010

I have a problem booting anything from USB stick on my IBM Thinkpad T42. It used to run normally, I could even install Windows or Linux from it, but now it stopped working. This particular concern is about booting freshly installed Xubuntu version 9.04 off a Kingston 4GB flash stick. I've installed Xubuntu using usb-create program directly from a booted live cd. Installation went fine and all the options in BIOS are setup correctly (I think). In boot menu in BIOS the stick is recognized correctly and + appears in front of it. Stick is selected as primary boot device. BIOS usb support is also enabled.

Now when I power on the computer, it reads something from the stick and stops right after displaying:
SYSLINUX 3.63 Debian-2008=07=15 EBIOS ... etc...
Then nothing happens and the text stays on like this.

View 1 Replies View Related

Ubuntu Installation :: Booting 10.04 With GRUB2?

Oct 16, 2010

I have Win 7 in my hard drive (sda) and I installed Ubuntu 10.04 in other hard disk (a usb disk), but when I try to boot my pc from the usb disk (sdb), the grub shell is displayed. No menu is displayed. When I boot Windows 7 from sda, it runs correctly. The problem it's when i wanna boot Ubuntu. I ran bootscript on the live CD and this is what I've obtained:

Code:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in partition #1 for /boot/grub.

[Code].....

View 1 Replies View Related

Ubuntu :: Grub2 Not Booting Windows?

Dec 5, 2010

So to make things short, here's my situation: I was having the "no module found" problem, because dell software kept on messing with the MBR So I restored the MBR using Windows recovery and deleted the dell software Re-installed ubuntu 10.10 off the liveCD ~Then I had problems getting GRUB2 boot menu to show at boot, but i fixed that~ Now I'm having the problem where whenever I try to boot into windows 7 through GRUB2 instead of booting windows I just get:

"bootmgr is missing"

Note: I can still boot into Ubunutu 10.10 just fine.

View 9 Replies View Related

Ubuntu :: Booting Into Efix Using Grub2?

Mar 19, 2011

efix is a usb bpu (booting processing unit) that can handle various OS. I'd like to have Grub2 pointing at it, list it and be able to start the booting process from there. My ubuntu 10.04 sees the device but apparently I can't configure the 40_custom file properly. I'm also using Burg as theme manager for grub2. Below you can find my system specs.

|Motherboard: ASUS P6T SE bios v:0805
|CPU: intel corei7 930 2.80 ghz|GPU: ASUS Nvidia 250 gts 1GB|
|Ram: 6GB ddr3 1333 corsair (running at 1066)

[Code].....

View 1 Replies View Related

Ubuntu :: XP Not Booting After Grub2 Upgrade

May 2, 2010

I am dual-booting XP, and all has been fine for a while....until I upgraded Grub yesterday. This was due to the boot menu not updating properly, and I realised the system was still using the old grub. The update instructions I used advised putting grub2 on all partitions if you were not sure which one to go for.....I guess this has "upset" the chainloading process, as when I select XP from the menu, I just get a black screen with flashing white cursor, which doesn't seem to respond to anything except CNTRL+ALT+DELETE!

I can still access all Windows files from Linux, and can see that system files like boot.ini are sill there. Both systems have been backed up, but would prefer not reinstalling right now if possible.

Below I'll paste grub.cfg and fdisk -l; any suggestions gratefully received!

ps the computer is a Sony Viao laptop: Core Duo 1.6 GHz - 1 GB Ram - 80 GB HDD, running XP Media Centre and Ubuntu 10.04

# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

[Code]....

View 6 Replies View Related

General :: Booting FreeBSD Iso Grub2?

Jan 20, 2011

wanted to try out FreeBSD but I want to boot it from an ISO. I put my iso file on my first hd 3rd partition in /boot/iso/FreeBSD-8.1-RELEASE-amd64-dvd1.iso. But I can't seem find anything to boot freebsd this way. Is it possible and if so how. This is what I kinda got but its not working.

Code:
menuentry "FreeBSD1" {
insmod loopback

[code]...

View 3 Replies View Related

Software :: Booting Grub2 From Grub?

Mar 30, 2011

My working OS uses grub, but I've just installed Sabayon 5.5, which uses grub2, on hda10. I want to keep using grub until I've got time to RTFM on grub2, so I installed the Sabayon bootloader on hda10. I should be able to point grub at the partition and boot indirectly, as with Windows, but after following the grub 'info' page I get an error message. Can anyone point to the error in the following grub script:

title hda10 110330 Sabayon 5.5
rootnoverify (hd0,9)
makeactive
chainloader +1

[Code]...

View 3 Replies View Related

General :: Old Sony BIOS Use USB Flash Drive - Stick - For Booting

Feb 18, 2011

I probably have not done any serious programming for 20 years, not counting a little HTML.

I stumbled onto an old FREESPIRE disk my bro sent me several years back -- and tried installing it on a Sony Vaio PCG FRV 28 I had crashed a few years back. The Sony bios is still aboard, but old enough to not have USB "booting" as part of the boot menu. I don't even know if one can easily hack into the BIOS on an old sony Vaio but changing the BIOS would solve lot of problems.

Does anyone have any ideas or certain knowledge on rewriting or modifying the Master Boot Code or an idea on making my USB [with Ubuntu or any other Linux implementation visible] and bootable to the bios on powerup?

View 8 Replies View Related

Ubuntu :: Booting XP From External Drive With Grub2?

Jan 21, 2010

I was given an external USB drive which has Windows XP Pro on the first partition. I can mount and access the partition with no problem. When I run update-grub, it finds the XP partition and creates a menu entry for it. But when I select it from the Grub menu, I get an error that the device is not found.

Results of sudo fdisk -l
Code:
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00086c27

[Code]....

View 5 Replies View Related

Ubuntu Installation :: Windows 7 Is Not Booting Through Grub2?

Apr 4, 2010

I have windows 7 in RAID 0 and installed Ubuntu 9.10 to another Sata drive. Ubuntu is working fine but if I try to boot windows in the Grub2 loader it goes do error and lets my to restart. I have finish the windows system recovery and setup repair several times and it won't find any problems. I can't get to windows loader.

Code:

Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sdb
=> Grub 2 is installed in the MBR of /dev/mapper/pdc_chfbjcefbd and looks for
(UUID=c859191e-3279-4ecc-a569-4dfc8e1789b3)/boot/grub.

[code]...

View 1 Replies View Related

Ubuntu :: Dual Booting With OpenSUSE Through Grub2?

Aug 23, 2010

Is it possible to dual boot openSUSE & Ubuntu through GRUB 2? Apparently SUSE uses standard GRUB. I installed SUSE but only have Ubuntu options displayed on boot.

View 3 Replies View Related

Ubuntu :: Booting Windows From Grub2 Without Chainloading?

Jun 4, 2010

if it is possible to boot windows without the chainload option. I don't have xp on the first partition and I don't want to load xp bootloader on the first partition because it will overwrite grub2. All I want to do is boot xp directly from grub, is this not possible? Can't I just load the kernel like I do with linux? I've never had luck with getting grub2 to load xp, P.S. grub version is 1.97 from ubuntu 9.1 install

View 9 Replies View Related

Fedora :: Grub2 Support Booting Off Of Encrypted Partitions?

Oct 12, 2009

Does grub2 support booting off of encrypted partitions? I'd like to have an encrypted linux system, but only have space for one partition or logical group in my mbr. Or can I include that one /boot partition in the lvm group.

View 8 Replies View Related

Ubuntu :: Grub2 No Longer Booting Into Windows Properly

Mar 22, 2010

so after my upgrade to 10.04 I'm experiencing a puzzling problem with Grub2. It can load everything fine except for XP. I have XP on a separate partition, it is detecting fine and the grub.cfg file is created withou a problem when I the appropriate commands to update and upgrade grub. What happens is that I select Windows XP from the list and it goes to a black screen where a cursor in the top left corner blinks 3-5 times and then immediately kicks me back to the Grub menu. I can do this forever but the grub menu just gets reloaded every time. Any ideas?

Here is the windows portion of my Grub.cfg:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda2)" {
insmod ntfs

[code]...

Here is my boot.ini on the ntfs partion I am trying to boot into

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)WINDOW S

[code]...

View 7 Replies View Related

Ubuntu :: Grub2 Stopped Booting Windows - Can't Get It Fixed?

May 20, 2010

I'm dual-booting Ubuntu 10.4 (grub2) and Windows 7 (x64). Something stomped on my grub install on the windows boot sector (probably windows). I was getting errors like "Cannot find disk.." I updated my grub.cfg to what I thought should work and now I'm getting errors like "cannot find C/H/S values".

I've attached the RESULTS.txt. Its really a simple install, although I do have a RAID5 array; the RAID disks are just for data and hold no OS files. Both OS's are on /dev/sdd.

View 9 Replies View Related

Ubuntu :: Booting Isos From Flash Drive With Grub2?

May 28, 2010

I'm trying to make a sort of "toolkit" flash drive using grub2 but I am running into some problems. For some reason, every entry below gives me the error "you must load the kernel first" when I try to boot it. I have checked in the grub command line and it appears that grub sees my flash drive as the first drive when booting. This is what my grub.cfg looks like.

Code:
#Clonezilla v1.2.5-17
menuentry "Clonezilla 32"
{
set isofile="/boot/isos/clonezilla32.iso"
loopback loop $isofile

[Code]...

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved