Re: Erro no lilo "L"
On 2/15/07, Rúben Lício <rubenlr@gmail.com> wrote:
como seria com fdisk?
Olhando o help do fdisk:
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
A opção é o "o" (create a new empty DOS partition table), olhe os testes aqui:
--------------------
# fdisk /dev/sda
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1952 15575017+ 83 Linux
/dev/sda3 1953 2213 2096482+ 82 Linux swap / Solaris
/dev/sda4 2214 9729 60372270 5 Extended
/dev/sda5 2214 9729 60372238+ 83 Linux
Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): q
--------------------
eu adicionei um fdisk /mbr mas ainda não tive tempo de testar
Este "fdisk /mbr" que te falaram não é o fdisk do Linux, é o fdisk dos
discos de inicialização do Windows / DOS. Isto *não funciona*.
eu tenho uma limitação grande, por isso uso o dd. Tem que ser via script.
não deve haver nenhuma interferência humana no processo. No máximo ligar e
delisgar o PC.
Pode usar este comando junto com os demais:
--------------------
cat << EOF | fdisk /dev/hd
o
... outros comandos ...
w
EOF
--------------------
O sistema tem um requisito de segurança extremamente algo, por isso, não há
nenhuma possibilidade de fazer algo não automatizado, alias, não há
permissão para a pessoa fazer nada além de clicar ok para instalar.....
Eu gostei da idéia, não pela segurança, mas por não ter nem que clicar
num OK para instalar :D
--
Maxwillian Miorim <miorimmax@gmail.com>
----
Moo... Are you happy now?
Reply to: