SliTaz SliTaz Forum

You are not logged in.

#1 2012-04-15 01:00:03

namT
Member
Registered: 2011-10-25
Posts: 27

Howto - make a frugal install with Grub4dos

Okay here is what you need to do:

1) Run Slitaz 4.0 from a liveCD

2) From the menu, go to "System Tools" -> "Create a LiveUSB" and follow the steps to create a liveUSB

3) from the terminal, cd to your usb device and cd to the "/boot" folder

4) from the terminal, type the following: cat $(ls -r rootfs*.gz) >rootfs.gz

   ( this will combine rootfs1 to rootfs4 into a single file ... thanks to mojo )

5) copy all of the files from the "/boot" folder of your usb-install into a "/boot" folder in your hard-drive

    ( you don't acutally need all of the files, but I am trying to make this tutorial easier )

6) Install Grub4dos to the master boot record of your hard-drive and add the following entry:

title Slitaz 4.0 Frugal install

  root (hd0,0)

  kernel /boot/bzImage rw root=/dev/null home=/dev/sda1

  initrd /boot/rootfs.gz

#change (hd0,0) and /dev/sda1 if your boot folder is in a different partition

7) done...reboot your computer

----------------------------------------------

HOW TO SAVE YOUR SETTINGS

----------------------------------------------

1) as root user or as superuser  (password is "root") , type the following in the terminal:

tazusb writefs gzip

2) use pcmanfm to move the newly created rootfs.gz file from "/" into the "/boot" folder of your hard-drive.

-- while you're at it, you might as well remove the other rootfs*.gz files, since they are not needed and you can remove the "extlinux" folder as well.

....DONE!

Offline

#2 2012-04-15 04:33:49

namT
Member
Registered: 2011-10-25
Posts: 27

Re: Howto - make a frugal install with Grub4dos

Some refinements to the process

--------------------------------

You don't need to create a LiveUSB if you have a liveCD

Just copy all of the rootfs*.gz files and the bzImage file to a /boot folder in your hard-drive.

** for saving your settings, if you reboot, the rootfs.gz file should copy itself to the proper folder, so you don't have to move it all of the time

Offline

#3 2012-04-15 07:53:01

Somewhat Reticent
Member
Registered: 2012-03-05
Posts: 35

Re: Howto - make a frugal install with Grub4dos

And to keep Microsoft Windows XP happy, keep its MBR(MasterBootRecord) but add a line like

C:\grldr="GrUB4(all)dOS" ; startup menu title in quotes

to the system startup file boot.ini, accessible (for Administrators) via

My Computer > System Properties > Startup and Recovery > Advanced (tab) > Edit

and place the files

grldr and menu.lst

in the %SystemRoot% (usually C:\ but sometimes not) folder/directory. 

*[it may be necessary to use C:\ even if the %SystemRoot% isn't really on C: drive ]

Offline

#4 2012-04-15 18:57:25

namT
Member
Registered: 2011-10-25
Posts: 27

Re: Howto - make a frugal install with Grub4dos

Interesting, but I find that method to be more complicated.

Grub4dos will find Windows with the following menu entry:

------------------------------------------------------

title Windows XP Pro SP3\nStart Windows

  uuid xxxxxxx

  chainloader +1

------------------------------------------------------

Replace the x's with the proper uuid for the Windows partition.

To find the correct uuid, from the terminal, type: blkid

or even simpler:

--------------------------------------------------------

title Windows XP Pro SP3\nStart Windows

  root (hd0,0)

  chainloader +1

# assuming windows is on the first partition

--------------------------------------------------------

Offline

#5 2012-04-15 20:28:16

Somewhat Reticent
Member
Registered: 2012-03-05
Posts: 35

Re: Howto - make a frugal install with Grub4dos

Yes!  (As long as the PBR(PartitionBootRecord) goes to NTLDR, of course.  ;-)

...

echo Booting New Technology Loader

chainloader /ntldr || pause What, no ntldr?!

pause Booting Partition Boot Record (tap key when ready)

chainloader +1

...

Offline

#6 2012-04-15 22:12:49

namT
Member
Registered: 2011-10-25
Posts: 27

Re: Howto - make a frugal install with Grub4dos

true; if it doesn't find ntldr, then you are in deep dodo!

Wait a minute..no ,not really becuase linux is better anyways smile

Offline

#7 2012-06-15 23:42:32

Somewhat Reticent
Member
Registered: 2012-03-05
Posts: 35

Re: Howto - make a frugal install with Grub4dos

I also remember examples using a search for specific file names:

   find --set-root --ignore-floppies --ignore-cd /ntldr

   chainloader /ntldr

for Windows NT/2000/XP, and

   find --set-root --ignore-floppies --ignore-cd /bootmgr

   chainloader /bootmgr

for Windows 7/Vista.

Of course, an installer could set up unique file names on each system partition, ...

GRUB4dOS development is still ongoing, though direction may be for bling instead of universal system accommodation.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]