How to edit GRUB from Puppy Live CD?
How to edit GRUB from Puppy Live CD?
Hi -
I'm still a newbie, but learning by stumbling around with Puppy and Ubuntu. But I have a problem with a second-hand computer that's not properly booting up from GRUB. It's got Win 7 and a couple linux distros including one for an HTPC (XBMC Live). GRUB's been set to allow a choice, but it won't acknowledge any keyboard entry so always boots to the first option. It always goes to XBMC, and I can't do any system tweaks from there.
So I've tried to edit the 'menu.lst' file, using a Puppy Live CD, but can't locate it on any of the partitions. I may not be searching correctly, though.
I don't have any content on the HD, so I can ditch whatever partitions. I was just hoping to avoid doing anything drastic. Anything is better than being stuck where I am!
Thanks,
Scott
I'm still a newbie, but learning by stumbling around with Puppy and Ubuntu. But I have a problem with a second-hand computer that's not properly booting up from GRUB. It's got Win 7 and a couple linux distros including one for an HTPC (XBMC Live). GRUB's been set to allow a choice, but it won't acknowledge any keyboard entry so always boots to the first option. It always goes to XBMC, and I can't do any system tweaks from there.
So I've tried to edit the 'menu.lst' file, using a Puppy Live CD, but can't locate it on any of the partitions. I may not be searching correctly, though.
I don't have any content on the HD, so I can ditch whatever partitions. I was just hoping to avoid doing anything drastic. Anything is better than being stuck where I am!
Thanks,
Scott
Thanks for responding so quickly! Wow, you guys are on top of things!
rcrsn51 - I have both. A wireless one that came from the seller, and an el-cheapo USB one from Inland. Neither work at the GRUB menu, but they both function OK when fully booted.
Flash - I'm following one of the threads you recommended, by selecting the System > Grub Bootloader Config program.
Will this overwrite the current (misbehaving) GRUB instruction set?
Does it matter where I place the GRUB files? Here is the partition info from GPARTED:
PARTITION File System Size
unallocated Unallocated 1 MB
/dev/sda1 NTFS 100 MB
/dev/sda2 NTFS 204 GB (this one looks like Win 7)
/dev/sda3 extended 94 GB
. . . /dev/sda5 ext4 92 GB
. . . unallocated unallocated 1 MB
. . . /dev/sda6 linux-swap 2 GB
It mentions putting the files in the boot directory. Ultimately I'll likely keep Win 7 on the machine and maybe keep space for other distros like Puppy. Will probably ditch the other OSs that the seller installed.
Thanks again for pitching in!
Scott
rcrsn51 - I have both. A wireless one that came from the seller, and an el-cheapo USB one from Inland. Neither work at the GRUB menu, but they both function OK when fully booted.
Flash - I'm following one of the threads you recommended, by selecting the System > Grub Bootloader Config program.
Will this overwrite the current (misbehaving) GRUB instruction set?
Does it matter where I place the GRUB files? Here is the partition info from GPARTED:
PARTITION File System Size
unallocated Unallocated 1 MB
/dev/sda1 NTFS 100 MB
/dev/sda2 NTFS 204 GB (this one looks like Win 7)
/dev/sda3 extended 94 GB
. . . /dev/sda5 ext4 92 GB
. . . unallocated unallocated 1 MB
. . . /dev/sda6 linux-swap 2 GB
It mentions putting the files in the boot directory. Ultimately I'll likely keep Win 7 on the machine and maybe keep space for other distros like Puppy. Will probably ditch the other OSs that the seller installed.
Thanks again for pitching in!
Scott
That layout looks a bit weird. What is that 100 MB sda1 doing there, just wasting space and confusing Grub? Also I'm not too sure about putting Puppy, especially a swap partition, in an extended partition and I don't think Puppy likes ext4. I'd consider simplifying that layout; delete sda1 and the extended partition. Instead, make an ext2 partition for Puppy and a swap partition, both primary partitions. I don't know how dangerous all that would be, so I'd back up the contents of sda2 before I started.
When you're all done, sda1 should be the Windows partition because Windows expects to get the first partition on a hard disk and won't play nice if it doesn't get its way. Puppy's ok with that.
When you're all done, sda1 should be the Windows partition because Windows expects to get the first partition on a hard disk and won't play nice if it doesn't get its way. Puppy's ok with that.
You have two choices here:sspera wrote:I have both. A wireless one that came from the seller, and an el-cheapo USB one from Inland. Neither work at the GRUB menu,
1. You set up this machine as Puppy-only so it doesn't need a GRUB menu. You can do this with the one-click installer.
2. You want to multi-boot. This will require a menu so you need to resolve your keyboard issue. Look in your BIOS for a setting that enables USB keyboards. Or get an old PS/2 keyboard.
If this is a name brand computer, the sda1 partition could be a hidden recovery partition (Windows will not see) , where they put there system recovery backup data and programs. Seems a little small for that, but may be what it is.unallocated Unallocated 1 MB
/dev/sda1 NTFS 100 MB
/dev/sda2 NTFS 204 GB (this one looks like Win 7)
Can you see what is on partition sda1?
Putting Grub stuff on first partition usually works best.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
That 100MB sda1 is the standard Win7 boot and registry partition.Flash wrote:That layout looks a bit weird. What is that 100 MB sda1 doing there, just wasting space and confusing Grub?
You can kiss your Win7 goodbye if you delete it!
Edit:
I use legacy grub when dual booting my Win7 drives.
Grub on MBR, menu.lst on first Linux partition.
A repair disc and backup image of Win7 to spare drive are easy to
make and necessary and highly recommended whether dual
booting or not.
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs
rjbrewer,
Thanks for the Windows 7 info on sda1. Had my mind into Linux too much.
Did not think about the Windows 7 way of doing stuff.
Thanks for the Windows 7 info on sda1. Had my mind into Linux too much.
Did not think about the Windows 7 way of doing stuff.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
If one has the things available to do a fresh Win7 install, it is possiblebigpup wrote:rjbrewer,
Thanks for the Windows 7 info on sda1. Had my mind into Linux too much.
Did not think about the Windows 7 way of doing stuff.
to have the boot and registry on the "main" partition.
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs
I don't know that I'd call that a standard Windows installation. I have a 32 GB SSD, formatted NTFS, with only Windows XP installed in it, in the default way. Gparted sees it as sda and says there is only one partition in it: sda1. Gparted does not see the boot sector as a separate partition from the Windows partition, in any drive I've tried it on. But then, I've never installed Puppy in a hard disk.rjbrewer wrote:That 100MB sda1 is the standard Win7 boot and registry partition.Flash wrote:That layout looks a bit weird. What is that 100 MB sda1 doing there, just wasting space and confusing Grub?
You can kiss your Win7 goodbye if you delete it!
It's so cool that all you guys are helping out with suggestions and questions!
This is not a name-brand computer, it's home built.
Several of you were wondering what was on the partitions.
Looking into sda1, I only see a few items: folders named "boot" and "system volume information" and three files named "bootmgr", "bootsect.bak" and "lrpat."
Clicking into the "boot" folder, I see about 25 folders, for example "en-US" and some files like "bcd."
sda2 sure looks like it contains what I would expect the Windows files to be.
sda5 looks like the ubuntu variant, with folders in /usr/share referencing ubiquity, xbmcbuntu, python, etc. Even GRUB but I can't see the 'menu.lst' file anywhere.
rcrsn51 suggested I poke around in the BIOS to see if there was a setting that could allow USB keyboard input. Great suggestion! I was able to find one and now I can cycle through the GRUB options and pick one. This puts me a long way ahead of where I was.
But is there a way to edit GRUB such that a different entry is the default one. Or remove it entirely and have a single boot machine?
Thanks!
Scott
This is not a name-brand computer, it's home built.
Several of you were wondering what was on the partitions.
Looking into sda1, I only see a few items: folders named "boot" and "system volume information" and three files named "bootmgr", "bootsect.bak" and "lrpat."
Clicking into the "boot" folder, I see about 25 folders, for example "en-US" and some files like "bcd."
sda2 sure looks like it contains what I would expect the Windows files to be.
sda5 looks like the ubuntu variant, with folders in /usr/share referencing ubiquity, xbmcbuntu, python, etc. Even GRUB but I can't see the 'menu.lst' file anywhere.
rcrsn51 suggested I poke around in the BIOS to see if there was a setting that could allow USB keyboard input. Great suggestion! I was able to find one and now I can cycle through the GRUB options and pick one. This puts me a long way ahead of where I was.
But is there a way to edit GRUB such that a different entry is the default one. Or remove it entirely and have a single boot machine?
Thanks!
Scott
It does look like sda1 contains stuff you don't want to delete.
While you were in the BIOS, did you happen to notice if the computer will boot from USB? If it can, you could run Puppy from a USB flash drive, with the Save file on the same drive, and forget about the hard disk. Alternatively, if you really want a single-boot machine with Puppy as the only OS, you could reformat the hard disk drive (deleting everything that's on it) and install Puppy as the only OS. Finally, if the computer has a DVD burner and at least 256 MB of RAM, you can run Puppy from a multisession DVD (or CD, but a DVD is better) and, again, forget about the hard disk drive.
While you were in the BIOS, did you happen to notice if the computer will boot from USB? If it can, you could run Puppy from a USB flash drive, with the Save file on the same drive, and forget about the hard disk. Alternatively, if you really want a single-boot machine with Puppy as the only OS, you could reformat the hard disk drive (deleting everything that's on it) and install Puppy as the only OS. Finally, if the computer has a DVD burner and at least 256 MB of RAM, you can run Puppy from a multisession DVD (or CD, but a DVD is better) and, again, forget about the hard disk drive.
As rjbrewer wrote, unless you want a non-booting Windows 7 install don't delete the 100 mb boot partition.Screenies attached.
I also install grub to the mbr and put the grub files in the first Linux partition....sda6 in my case. Running Windows 7 Ultimate, PCLOS 2012 and several Puppy installs.
Windows 7....sda1 and sda2.PCLOS sda6 and Puppy installs in sda7.
I also install grub to the mbr and put the grub files in the first Linux partition....sda6 in my case. Running Windows 7 Ultimate, PCLOS 2012 and several Puppy installs.
Windows 7....sda1 and sda2.PCLOS sda6 and Puppy installs in sda7.
- Attachments
-
- Windows 7 partitions.png
- (94.5 KiB) Downloaded 410 times
-
- boot directory.png
- (78.78 KiB) Downloaded 422 times
-
- 100 mb partition.png
- (43.03 KiB) Downloaded 411 times
I said standard for Windows 7, not XP!Flash wrote:I don't know that I'd call that a standard Windows installation. I have a 32 GB SSD, formatted NTFS, with only Windows XP installed in it, in the default way. Gparted sees it as sda and says there is only one partition in it: sda1. Gparted does not see the boot sector as a separate partition from the Windows partition, in any drive I've tried it on. But then, I've never installed Puppy in a hard disk.rjbrewer wrote:That 100MB sda1 is the standard Win7 boot and registry partition.Flash wrote:That layout looks a bit weird. What is that 100 MB sda1 doing there, just wasting space and confusing Grub?
You can kiss your Win7 goodbye if you delete it!
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs