[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editing bootdisk
From: |
Niels Andersen |
Subject: |
Re: Editing bootdisk |
Date: |
Wed, 24 Apr 2002 08:19:41 +0200 |
On Saturday 20 April 2002 08:46, you wrote:
> # dd if=partboot.img of=fs.gz bs=1k skip=X
[...]
> X is the offset of the init ram disk. Linux will say this when the
> bootdisk boots... "found initrd at offset X", or something similar.
Great! Exactly what I needed! :)
[...]
> > Using parted, it will resize that image so it uses the entire hd.
> Just a matter of writing a shell script, and playing with /etc/inittab,
> or whatever.
Yep, and I'm getting pretty far by now. :)
but I have a problem with that last step...
I do something like this:
parted -s /dev/hda print | grep -e '^Disk geometry for'
and then I use sed to find the end of the range.
Then I try to resize using that value, something like this:
parted -s /dev/hda resize 1 0 %MAX
But then it just complains that I'm trying to make the partition larger than
the disk. And then I'm stuck...
--
Mvh.
Niels Andersen