Re: [SLUG] Copying and booting linux with a partition with a different filesystem type

From: Dylan William Hardison (dylan@hardison.net)
Date: Sun Mar 30 2008 - 22:11:29 EST


Spake Paul M Foster on Sunday, March 30, 2008 at 10:54PM -0400:
> telling your kernel the wrong filesystem type. I believe the bootloader
> has to know what type of filesystem to load (I don't believe it
> autodetects it), and it loads or tells the kernel to load the proper
> driver for it.
>
> I really think it's that simple. If someone else knows more than I do
> about this, please speak up.

Yes, sort of.

Grub needs the proper stage file for the filesystem
(/boot/grub/${FS_TYPE}_stage1_5), but it infers the filesystem type.
The kernel further infers the type of the root partition -- I think --
and other information comes from /etc/fstab.

I have switched from IDE to SATA, and to do this simply required copying from
the IDE harddrive to the SATA and editing
/etc/fstab to say "/dev/sda[123]" instead of "/dev/hda[123]", and running
grub-install on the new drive: (assuming /dev/sda1 is mounted to /mnt,
run grub-install /mnt).

-- 
"In order to make an apple pie from scratch, you must first create the
universe."
              -- Carl Sagan, Cosmos
-
GPG Fingerprint: 412C CCE9 DDA2 4FE9 C34F  754B 0863 0EA6 712E BBE1
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:31:26 EDT