Posts: 119
wildstar84
Joined: 31 May 2014
#1
Greetings. Trying to install remastered Antix on Windows 7 (NON-uefi install), but uses Windows bootloader and bcdedit. 1st 3 partitions (all NTFS) are"Recovery" (hidden), SYSTEM, and Windows (C:). The 2nd (SYSTEM) is the one that's bootable and where the bootloader stuff is. Successfully schrunk the third (C:) and installed Antix (remastered) using cli-installer, installed it's Grub legacy in"root". Successfully used bcdedit to create a boot option for antix.

On Windows I did:
bcdedit /create /d"Antix" /application bootsector
bcdedit /set {id} device partition=C:
bcdedit /set {id} path \antix.bin
bcdedit /displayorder {id} /addlast

On the live-cd, I did:

mount /dev/sda2 /mnt
for i in /sys /proc /run /dev; do sudo mount --bind"$i""/mnt$i"; done
sudo chroot /mnt
edited my /boot/grub/menu.lst to:

title antiX - Latest
root (hd0,4)
kernel /boot/vmlinuz-4.0.5-antix.1-486-smp root=UUID=191c123a-ee47-42ba-8c23-99da69b010d7 quiet nosplash cgroup_disable=cpuset,cpu,cpuacct,blkio,memory ipv6.disable=1 ro
initrd /boot/initrd.img-4.0.5-antix.1-486-smp
title Windows 7
hide (hd0,0)
rootnoverify (hd0,1)
chainloader +1
boot

Then:

update-grub
exited chroot and mounted my linux root partition and Windows partition (C:), did:
dd if=/mnt/root/boot/grub/stage1 of=/mnt/windows/antix.bin bs=512 count=1
rebooted
Windows shows both boot choices (Win7 and Antix). Win7 choice will boot Windows ok, but Antix just blanks the screen and then goes back to the boot menu.

Any ideas what I'm doing wrong or how to get this to work?! I'm using the remaster b/c I don't want to do a fresh install, got sooooo much customization and packages installed and configured. I've found grub2 to be very complicated to configure, so have stuck w/the last Legacy vsn. Even if you could tell me how to make a USB stick that could boot it, that would be helpful!

Thanks!
Last edited by wildstar84 on 11 Apr 2016, 03:00, edited 1 time in total.
Posts: 22
watsoccurring
Joined: 30 Jun 2015
#2
Hello wildstar84
My skills are limited but in the past when I have had trouble with boot I have used this utility:

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.supergrubdisk.org/category/download/supergrub2diskdownload/super-grub2-disk-stable/"
linktext was:"http://www.supergrubdisk.org/category/d ... sk-stable/"
====================================

I hope it works for you
Posts: 1,062
Dave
Joined: 20 Jan 2010
#3
I think that you may find replies to your question limited.
Your particular method of booting is kind of backwards from normality I believe. Normally one overwrites the windows mbr bootloader with grub, rather than trying to chainload grub from the windows boot loader. I could be wrong with this, but it is the way I have always handled it. So, at least for me to write some helpful advice or an instruction set describing what to do in your specific configuration would be a wild guess. I did not even know it was possible to load another os using the windows bootloader. I have always thought that it could only load different copies of windows.
Posts: 119
wildstar84
Joined: 31 May 2014
#4
Thanks for the reply, Dave. I would rather do it as you've suggested, but don't know if that would work because 1) The designated"boot" partition is the SECOND partion and it, along with the first are both NTFS (See my partition layout in OP above). If it's possible to install GRUB legacy in the MBR and NOT bork Windows-7, I'll be more than happy to do it that way (That IS the way I successfully did it on a prev. Win-7 box which had the 1st partition VFAT and bootable). Any suggestions on how to safely proceed are definitely appreciated! Please note that I do not have either another large disk to back up Windows to nor install CDs to reinstall Windows.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#5
You probably don't want to hear this. But on this Dell E4310 that my wife gave me after I bought her a new Acer Windows 10 Flip.

It came with Windows 7 Enterprise on a 500 gig drive and I was in the same boat as you as far as
! Please note that I do not have either another large disk to back up Windows to nor install CDs to reinstall Windows.
So I bit the bullet and bought me a small SSD drive and removed the 500 gig platter drive with Windows 7 Enterprise that would never be reactivated because it is a city hall laptop that my wife had used for her job. In other words. If I screwed up Windows 7 Enterprise. It was gone for good.

I went this route in case I ever sell this laptop. I wanted to be sure it would get the bang for buck to a buyer who would look crossed eyed at me when I show

Code: Select all

$ inxi -Fxz
System:    Host: biker Kernel: 4.2.1-antix.2-686-pae i686 (32 bit gcc: 4.9.2)
           Desktop: IceWM 1.3.8 Distro: antiX-15-V_386-full Killah P 30 June 2015
Machine:   System: Dell (portable) product: Latitude E4310 v: 0001
           Mobo: Dell model: 0T6M8G v: A01 Bios: Dell v: A03 date: 07/08/2010
CPU:       Dual core Intel Core i5 M 520 (-HT-MCP-) cache: 3072 KB
           flags: (lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9578
           clock speeds: max: 2400 MHz 1: 1199 MHz 2: 1733 MHz 3: 1199 MHz
           4: 1333 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.16.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile x86/MMX/SSE2
           GLX Version: 2.1 Mesa 10.3.2 Direct Rendering: Yes
Audio:     Card Intel 5 Series/3400 Series High Definition Audio
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.2.1-antix.2-686-pae
Network:   Card-1: Intel 82577LM Gigabit Network Connection
           driver: e1000e v: 3.2.5-k port: 6040 bus-ID: 00:19.0
           IF: eth0 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6200 driver: iwlwifi bus-ID: 02:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 60.0GB (45.7% used)
           ID-1: /dev/sda model: KINGSTON_SV300S3 size: 60.0GB
Partition: ID-1: / size: 7.6G used: 4.9G (69%) fs: ext3 dev: /dev/sda2
           ID-2: /home size: 48G used: 21G (47%) fs: ext3 dev: /dev/sda1
Sensors:   System Temperatures: cpu: 52.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 147 Uptime: 11 min Memory: 551.1/8027.1MB
           Init: SysVinit runlevel: 5 Gcc sys: 4.9.2
           Client: Shell (bash 4.3.301) inxi: 2.2.38 
8 gig of ram with a I5 processor with AntiX on it will not get me top dollar on a sell on the Mexican border.
I am glad I went this way as this install boots in seconds, loads pages instantly, runs like a raped ape, and the other drive sits pristine in the laptop bag.
This SSD was cheap brand new (28 bucks>
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.newegg.com/Product/Product.aspx?Item=9SIA5AD3W13234"
linktext was:"Newegg blowout sale"
====================================
) and has awesome read write speeds.

Code: Select all

~# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   6504 MB in  2.00 seconds = 3254.62 MB/sec
 Timing buffered disk reads: 402 MB in  3.01 seconds = 133.41 MB/sec
Just posting this in case you did not think of it. You will notice it runs cool and I am a happy camper with this setup.
I don't know if you need Windows 7 available alongside linux. I tend to keep them on separate computers. But my Windows needs are only for tuning motorcycles. Which is not a every day computer user needs.
Not sure where you are located on the planet or how cheap computer parts are for you to get also.
Sorry, I cannot help on the Windows MBR booting priority over Antix grub legacy is in /boot/grub .

All I can think of <maybe something below will light up a idea for you>


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://sites.google.com/site/easylinuxtipsproject/grub"
linktext was:"https://sites.google.com/site/easylinuxtipsproject/grub"
====================================
Posts: 1,139
masinick
Joined: 26 Apr 2008
#6
wildstar84 wrote:Thanks for the reply, Dave. I would rather do it as you've suggested, but don't know if that would work because 1) The designated"boot" partition is the SECOND partion and it, along with the first are both NTFS (See my partition layout in OP above). If it's possible to install GRUB legacy in the MBR and NOT bork Windows-7, I'll be more than happy to do it that way (That IS the way I successfully did it on a prev. Win-7 box which had the 1st partition VFAT and bootable). Any suggestions on how to safely proceed are definitely appreciated! Please note that I do not have either another large disk to back up Windows to nor install CDs to reinstall Windows.
Hi, based on my experiences, it is possible to boot using either GRUB Legacy, GRUB 2, or the Windows boot loader, regardless of where they happen to be physically located. This is true with the exception of any cases where the physical hardware is not recognized, which is not common.

I was not familiar with the commands used in the Windows boot loader approach explained. The last time I multi-booted using a Windows boot loader was many years ago, so the techniques and methods may have changed, but it is definitely possible. I multi-booted multiple Windows systems as far back as the 1990s, and I even multi-booted Windows and UNIX systems, so you are not limited to Windows, or Windows and Linux. Whatever your hardware can support and the software recognizes, it's theoretically possible.

When you add a GRUB bootloader, whether the Legacy style or GRUB 2, should you remove it, then you have to have a way to replace it with something else. Otherwise should you remove a bootloader without a way to reference the MBR, you'll then have to use a boot CD or temporary way to access your system.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-boot-loader.html"
linktext was:"http://www.tldp.org/HOWTO/Remote-Serial ... oader.html"
====================================
has some old documentation about configuring various bootloaders, including LILO, GRUB, and SYSLINUX.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://sites.google.com/site/easylinuxtipsproject/grub"
linktext was:"https://sites.google.com/site/easylinuxtipsproject/grub"
====================================
will provide many alternatives that you can consider, depending on your software and hardware configuration. If you are very new to doing this kind of thing, even reading these documents could be daunting and difficult, so if you run into problems, let us know and give us a detailed description of what the difficulty is.

At the same time, what you did with the Windows bootloader looked pretty detailed to me. If you can figure that out, I think all it will take is some research and a matter of time and experimentation to get any of these other approaches as well.
Posts: 173
DeepDayze
Joined: 09 Sep 2011
#7
@Roky, I just bought that same Intel SSD tonight and will be using it in an HP EliteBook 8460p that has an i7-2620M CPU and 8GB RAM. This SSD is an older model but still decent for even a machine like mine. Will be installing AntiX MX15 on this SSD and will keep data on a 2nd regular hard drive in the 2nd drive bay.
Posts: 119
wildstar84
Joined: 31 May 2014
#8
[SOLVED!] - Here's what I did that worked:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wildstar84.wordpress.com/2016/04/10/gettin-down-grubby-with-grub/"
linktext was:"https://wildstar84.wordpress.com/2016/0 ... with-grub/"
====================================


Thanks all responders who tried to help!

Jim