Re: moving root partition
- From: Digby Tarvin <digbyt@xxxxxxx>
- Date: Sat, 29 Apr 2006 18:45:02 +0100
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
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- moving root partition
- From: Digby Tarvin
- Re: moving root partition
- From: Roberto C. Sanchez
- moving root partition
- Prev by Date: Re: Reproducing my Etch kernel
- Next by Date: Re: Picture Dictionaries
- Previous by thread: Re: moving root partition
- Next by thread: Reproducing my Etch kernel
- Index(es):
Relevant Pages
- Re: Grub Manual
... And you will hate my definition of a root. ... Many people keep the entire Linux
in one partition and in that case both of the root point to the same partition. ... Others
like to use more partitions and there is a root directory for each of them and the root calls
point to different partitions. ... Your computer often wants to use the name of the kernel.
... (Fedora) - SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
... One of the reasons for doing this is to end up with a smaller root ... Install
the boot block and boot off the new drive. ... " In order for the root partition
to be fscked and remounted ... D> temporarily on the existing disk. ... (SunManagers) - Re: Installing grub for a different computer
... > NOW Murphy is kicking good and proper. ... > Mounting root filesystem.
... at least the kernel was loaded from ... root parameter on kernel line is pointing
to the wrong partition ... (Fedora) - Grub Manual
... At first look at what it takes in the file /grub/grub.conf to boot a Linux system.
... root ... Your computer often wants to use the name of the kernel. ...
A typical one will look like rootwhich says a partition on the first hard drive and the 4th partition.
... (Fedora) - Re: Grub Manual
... I have digested what you all have said and applied it to the small file I wrote on the Grub
Manual. ... Please no more about what is root. ... Many people keep the entire
Linux in one partition and in that case both of the root point to the same partition. ...
Your computer often wants to use the name of the kernel. ... (Fedora)