LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-03-2010, 03:29 AM   #1
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Rep: Reputation: 15
How to hide/activate partitions with LILO


My OS are installed as follows:

Windows 7 on /dev/sda1 (primary) type=7 (HPFS/NTFS)
WinXP on /dev/sda2 (primary) type=c (W95 FAT32 (LBA))
Linux on /dev/sda6 (logica1)

I'd like to make Win7 hidden (and deactivated)
when booting WinXP from lilo (and conversely).
Following the lilo manpage I set up the boot items

# Windows bootable partition config begins
other = /dev/sda1
label = Win7
table = /dev/sda
change
automatic
partition=/dev/sda1
set=["NTFS"]_normal
activate
partition=/dev/sda2 <== Line 50
set=["FAT32_lba"]_hidden
deactivate
# Windows bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda2
label = WinXP
table = /dev/sda
change
automatic
partition=/dev/sda1
set=["NTFS"]_hidden
deactivate
partition=/dev/sda2
set=["FAT32_lba"]_normal
activate
# Windows bootable partition config ends

(I wasn't quite sure of the syntax of the set line)
Anyway, lilo returns an error:

root@Oscar:/etc# lilo
Warning: LBA32 addressing assumed
Added Linux *
Unrecognized type name at or above line 50 in file '/etc/lilo.conf'

Line 50 is indicated above. I have experimented with variations
on the above, but still can't get lilo to accept my syntax.

Any comments?

Last edited by wootletootle; 06-03-2010 at 03:44 AM.
 
Old 06-03-2010, 03:56 AM   #2
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Original Poster
Rep: Reputation: 15
Got it (I think)

Note changes from above:

# Windows bootable partition config begins
other = /dev/sda1
label = Win7
table = /dev/sda
change
# automatic
partition=/dev/sda1
set=NTFS_normal
activate
partition=/dev/sda2
set=FAT32_lba_hidden
deactivate
# Windows bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda2
label = WinXP
table = /dev/sda
change
# automatic
partition=/dev/sda1
set=NTFS_hidden
deactivate
partition=/dev/sda2
set=FAT32_lba_normal
activate
# Windows bootable partition config ends

(note "automatic" is cancelled) and then

root@Oscar:/etc# lilo
Warning: LBA32 addressing assumed
Added Linux *
Added Win7
Added WinXP
Added Linux.old
One warning was issued.

The syntax for the set entries can be found by typing

root@Oscar:/etc# lilo -T ChRul

Type Normal Hidden
DOS12 0x01 0x11
DOS16_small 0x04 0x14
DOS16_big 0x06 0x16
NTFS 0x07 0x17
FAT32 0x0b 0x1b
FAT32_lba 0x0c 0x1c
FAT16_lba 0x0e 0x1e
OS2_HPFS 0x07 0x17
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Q: Howto hide logical NTFS partitions with LILO ? mestigoth Linux - General 4 07-08-2011 02:35 PM
Dmraid does not activate partitions Wurstbrot Linux - Software 2 11-14-2009 09:40 AM
Automouter, hide partitions chipotphe Fedora 2 10-22-2008 11:48 AM
Ext2IFS: is it possible to hide Linux partitions? [KIA]aze General 2 05-03-2007 06:58 AM
Will LILO handle 15 partitions? dufferin Slackware 15 12-01-2003 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration