Skip to contentSkip to conversation

GRUB && DEFRAG (HELP) IT IS NOT SPAM

DISCUSSION Alexandre Borges 2 participants 2 messages Nov 17, 2005

lore
Share & tools
lore
#0 lore raw

Hi there,
My name's Alexandre Borges from Rio de Janeiro (Brazil).
I'm working in a defrag for linux/ext2.
Could you say me a easy way to identify which files I must to preserve when defragging?
Currently I've adopted the follow strategy: I preserve each file on /boot (recusive)
directory.
It has worked at Red Hat 7 and Mandrake 10 with LILO, but I don't know about GRUB.
My main care is GRUB needs for some file that it isn't in /boot Do you have any code to identify such files(inodes or even sectors) if necessary?
How can I be make sure that grub has been instaled?

Could you help me?

Thanks,
Alexandre

___________________________________________________________________________________
Promoção Mergulhou Ganhou!
Navegue 30 horas e ganhe R$10,00 para gastar com o que quiser no Submarino. Cadastre-se aqui. www.click21.com.br/mergulhouganhou/

#1 lore raw

Alexandre Borges <[email protected]> writes:

Hi Alexandre,

Quoted 4 lines

My name's Alexandre Borges from Rio de Janeiro (Brazil).
I'm working in a defrag for linux/ext2.
Could you say me a easy way to identify which files I must to preserve when defragging?

GRUB accesses the filesystem and does not use some block list. GRUB itself is stored in the MBR and some sectors following the MBR. This is enough to load the rest of GRUB from the filesystem.

So in case GRUB is used defragmenting doesn't hurt.

I wonder why you want to defragment an ext2. In case you make sure you don't fill up the entire disk, the filesystem won't be that badly fragmented. Most filesystems, like ext2, have special measures to prevent severe external fragmentation.

--
Marco