[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: moving root partition



On Sat, Apr 29, 2006 at 01:34:32PM -0400, Roberto C. Sanchez wrote:
> Digby Tarvin wrote:
> > Can any tell me the appropriate way of convincing Debian that the
> > root filesystem has moved to a new partition?
> > 
> > I repartitioned the system disk a few days ago, and after updating
> > /etc/fstab and /boot/grub/menu.lst everthing was working fine..
> > 
> > But when I 'dpkg -i' a new kernel, the old partition number
> > reappeared in /boot/grub/menu.lst - which of course didn't
> > help booting the new kernel :-/
> > 
> > I assume Debian has some knowledge of which partition is the
> > root partition secreted somewhere, but I havn't found it yet.
> > 
> > Parhaps there was some sort of 'reconfigure' command I am supposed
> > to run when the partitioning changes??
> > 
> > Also, having tried a new kernel and installed with 'dpkg -i', is
> > it safe to just remove the files from /root and edit it out of
> > /boot/grub, or is it better to use pkg or apt to do it?
> > 
> > Regards,
> > DigbyT
> 
> Did you run grub-isntall after moving the root partition?  I am guesing
> that you don't have /boot on a seperate partition and that you didn't
> run grub-install, which is confusing it.

Yes - if I hadn't done that then editing /boot/grub/menu.lst in the
new partion would not have changed my boot menu (because menu.lst would
still have been read from the original). Plus, of course, having now
blown away the original partition, I would be having serious trouble ;)

Since posting the question, I think I have found the answer (as so often
happens - no matter how long I spend pondering the problem beforehand..)

It looks like menu.lst contains the information, but fooled me by making
it look like comments:
# kopt=root=/dev/hda15 ro
# groot=(hd0,14)
Presumably this is to make them transparent to 'grub'..

I'll find out if modifying these entries did the trick when I do my
next kernel install.

Regards,
DigbyT
-- 
Digby R. S. Tarvin                                          digbyt(at)digbyt.com
http://www.digbyt.com



Reply to: