LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-11-2013, 05:10 PM   #1
shadowww
LQ Newbie
 
Registered: Nov 2008
Distribution: Arch linux
Posts: 9

Rep: Reputation: 0
Hidden slackware installation


I wanna create slackware14(ext4)/windows7(ntfs) dual boot on one HDD. But wanna make linux installation totally undetectable/unreachable to windows. Also make it unnoticable when PC boots (so to appear that windows is only OS). Was thinking along lines to let windows have whole MBR for itself. And to make LiLo be stored on external medium (that would ideally be USB stick but since my bios probably doesn't support boot from USB I would burn it to CD if that could work?!). Problem is that I'm not too knowledgeable about linux boot process and don't wanna mess such important thing so I'm looking to pointers/guides how to do this propertly. Thanks in advance...
 
Old 02-11-2013, 05:26 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Your boot loader is specified in the OS, so if you wanted you could in theory put grub on another hard drive, you would then have to go into your bios and change boot priority every time you want to boot to the other OS. You can also create persistent live CD which is what it seems like you would want.

https://help.ubuntu.com/community/LiveCD/Persistence good place to start if you want to read about persistence. Basically you could setup a partition on the drive for use by slackware but the os wouldnt actually be installed, it would be on the live CD and your files would be stored on the drive. Then just throw the CD in anytime you want Linux.
 
Old 02-11-2013, 05:28 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806
When you install Slackware just don't install Lilo when it comes to that stage. You can use your installation CD/DVD to start the installed system, instructions for that are displayed on the screen when you boot from the CD.

Keep in mind that the Windows partitioning tool will nonetheless detect that there are other partitions, but by default it can't use them.

@Kustom42: Slackware does not have a live-CD (at least not an official one) and uses (by default) Lilo as bootloader.

Last edited by TobiSGD; 02-11-2013 at 05:30 PM.
 
1 members found this post helpful.
Old 02-11-2013, 05:38 PM   #4
shadowww
LQ Newbie
 
Registered: Nov 2008
Distribution: Arch linux
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kustom42 View Post
you would then have to go into your bios and change boot priority every time you want to boot to the other OS.
To further clarify my intention: windows 7 would be "default" os and it would autoboot totally normaly. My mainboard has option to fast pick boot device during POST so there isn't even need to enter bios and change boot priority every time -

Rest of your post is totally unrelated to what I am trying to achive (I want both win and slackware to be installed on HDD, running it live from DVD/CD is not an option)
 
Old 02-11-2013, 05:48 PM   #5
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 84

Rep: Reputation: Disabled
If your computer can run Windows 7, then I should also allow booting from USB devices.

I think that during Slackware's installation at the end there's a question if you want to create a USB boot stick. I've never selected it, so I don't know how that works.
 
Old 02-11-2013, 05:56 PM   #6
shadowww
LQ Newbie
 
Registered: Nov 2008
Distribution: Arch linux
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
When you install Slackware just don't install Lilo when it comes to that stage. You can use your installation CD/DVD to start the installed system, instructions for that are displayed on the screen when you boot from the CD.
Indeed... this solution is so simple that I would never thought of it . It really kinda seems that answers my problem but there are some drawbacks of not having lilo and partition table at all? like default kernel image would be loaded from DVD? But it seems good solution for start, thx for advice...
Quote:
Originally Posted by elesmod View Post
If your computer can run Windows 7, then I should also allow booting from USB devices.
Its custom build PC... mainboard is epox 9npa+ (nforce4 chipset). Its unclear can it boot from USB, I have to test that yet, but I would really like CD/DVD solution more as its failproof

Last edited by shadowww; 02-11-2013 at 05:58 PM.
 
Old 02-11-2013, 06:10 PM   #7
ryerke
Member
 
Registered: Dec 2006
Location: Fresno CA
Distribution: Slackware 13 Slackware 13.37 ARMEDSlack 13.37
Posts: 89

Rep: Reputation: 21
It looks like lilo comes with a utility called mkrescue. If you use the --iso option it will make a bootable CD with the parameters specified in lilo.conf.

man mkrescue for more info

Hope this helps
 
2 members found this post helpful.
Old 02-11-2013, 06:27 PM   #8
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Quote:
Originally Posted by shadowww View Post
To further clarify my intention: windows 7 would be "default" os and it would autoboot totally normaly. My mainboard has option to fast pick boot device during POST so there isn't even need to enter bios and change boot priority every time -

Rest of your post is totally unrelated to what I am trying to achive (I want both win and slackware to be installed on HDD, running it live from DVD/CD is not an option)
Fast boot will select the default boot option by default from the MBR so the boot menu doesnt display, this would prevent you from selecting another boot option.

You mentioned that you could use a USB stick, why wouldn't a persistent CD work? Just curious, looks like there may be some better options but it really depends upon what you are going to be using it for.

I am aware that LILO is the default bootloader for slackware, I have always installed grub after the fact as I prefer it over LILO. You can easily install grub2 to boot slackware.
 
Old 02-11-2013, 06:28 PM   #9
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Quote:
Originally Posted by shadowww View Post
Its unclear can it boot from USB, I have to test that yet, but I would really like CD/DVD solution more as its failproof
Why did you knock my persistent CD then? That is exactly what you are asking for. Your linux files are on the hard drive you would have full OS control as if it were installed to the harddrive(for the most part).
 
Old 02-11-2013, 06:40 PM   #10
shadowww
LQ Newbie
 
Registered: Nov 2008
Distribution: Arch linux
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kustom42 View Post
Fast boot will select the default boot option by default from the MBR so the boot menu doesnt display, this would prevent you from selecting another boot option.
You misunderstood what "fast boot" option means in my writing. It means that during POST I can hit Esc and pick HDD / DVD / Other option without actually entering bios and changing default boot priority option. But this is totally unrelated to whole topic...
Quote:
Originally Posted by Kustom42 View Post
You mentioned that you could use a USB stick, why wouldn't a persistent CD work? Just curious, looks like there may be some better options but it really depends upon what you are going to be using it for.
Well for instance, I plan to spend majority time in Slackware, and running it from CD/DVD would hurt performance and make some things quite hard/impossible, and having unfree dvd reader/writer sux much too, so just drop that idea...
 
Old 02-11-2013, 07:17 PM   #11
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware, Mint, & random selection for VM
Posts: 213

Rep: Reputation: 26
What TobiSGD recommended would be the best option. Install Slackware normally and choose not to install a boot loader period. This way Slackware is installed onto the HDD but would have to be loaded with the CD in the drive. Once the system is up the disk can be removed because its running off the HDD. I used this method on numerous occasions because I couldn't get lilo to boot (after choosing automatic install) so I just put in the Slackware installation disk and type the following command at the prompt:

Code:
huge.s root=/dev/sda3 rdinit= ro
Substitute sda3 with whatever partition you installed the Slackware / directory and substitute huge.s with the proper kernel.

I'm still pretty rookie in Slackware but after installing it over and over I've gotten good at the lilo setup and the installation as a whole. Personally I believe you should install Slackware and choose the option at the end to make a usb boot disk. This will allow you to insert the flash drive upon approaching the pc, power it on and boot your favorite distro. When your done just power down remove the key and the next casual user can boot windows 7 normally without lifting an eye of suspicion. Unless you totally massacre the install and wipe the HDD then your screwed. . .
 
1 members found this post helpful.
Old 02-11-2013, 07:32 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806Reputation: 3806
Quote:
Originally Posted by ryerke View Post
It looks like lilo comes with a utility called mkrescue. If you use the --iso option it will make a bootable CD with the parameters specified in lilo.conf.

man mkrescue for more info

Hope this helps
Didn't know that, that comes in quite handy. Thanks for the tip.
 
Old 02-11-2013, 08:31 PM   #13
salemboot
Member
 
Registered: Mar 2007
Location: America
Distribution: Linux
Posts: 158

Rep: Reputation: 36
lilo

Install Windows 7
Partition your drive during the installation to allow a certain ammount for Slackware.
ie. 500GB drive: 250 Win7 / 250 Slackware
Of course you'll get a 100 MB partition for Windows boot related items.

Finish the installation of Windows 7 then start install Slackware on the remaining partition.

When it comes time to set up your boot device, choose custom. You'll be given the option to set a timeout.
Choose to boot the first operating system with no timeout.

Unless you know what you're looking for, you'll never know it's there.

To boot Slackware just hold down shift during the time your start your machine. Before Windows boots that is and after the bios information.
 
1 members found this post helpful.
Old 02-12-2013, 06:05 AM   #14
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by salemboot View Post
Choose to boot the first operating system with no timeout.

To boot Slackware just hold down shift during the time your start your machine.
I had no idea about that SHIFT trick; it's great! Thanks for sharing, salemboot.

However I think that if you choose "no timeout" it will show the lilo screen until you choose the OS and press ENTER.
I've just tried it myself and I had to comment out the "prompt" line for it to work like shadowww wants.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] USB - Hidden /home Boots. Non hidden /home fails hugothebear Incognito 3 10-28-2009 05:22 PM
bash: mv hidden and not hidden files lupe Linux - General 4 06-22-2009 01:27 PM


All times are GMT -5. The time now is 02:38 AM.

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