Is there a LILO swap argument?

DaveR

Golden Member
Oct 9, 1999
1,490
0
76
Help, I managed to pass a root argument to lilo to get Linux to almost work again but it dies as it now can not find swap.

I did this to myself as I had Linux on hdc6 with swap on hdc5.

BUT, I enabled my ata33 secondary (soyo 6ba+iv) and now the ata66 port is hde6 with swap as hde5.

Problem is that during boot at the LILO: prompt I added linux root=/dev/hde6 and it starts to come up again, but then still looks for swap on hdc5...how can I tell it BOTH the root and swap have changed!

I know, I can disable MoBo ide secondary,and then change LILO, and enable it again, but ANYONE can do that! :D
 

DaveR

Golden Member
Oct 9, 1999
1,490
0
76


<< Edit the appropriate line in /etc/fstab. >>



I can't as it will not boot. Can I even specify noswap file to make it boot?
 

DaveR

Golden Member
Oct 9, 1999
1,490
0
76


<< Edit the appropriate line in /etc/fstab. >>



Well, I gave root password when it could not find swap and I got to command mode. I did get to etc/fstab but all is in read only mode.
 

BlackOmen

Senior member
Aug 23, 2001
526
0
0
mount -o remount,ro /

will remount your root partition as read-write. From there you need to appropriately modify partition numbers in fstab. You will also need to modify partition numbers in /etc/lilo.conf and then reinstall lilo by running lilo at the command line.
 

DaveR

Golden Member
Oct 9, 1999
1,490
0
76


<< mount -o remount,ro /

You mean 'mount -o remount,rw /'
>>



Thanks guys, will retry it.