Quote:
|
Originally Posted by yellow
Thanks mate!
From sfdisk manual:
"sfdisk has four (main) uses: list the size of a partition, list the partitions on a device, check the partitions on a device, and - very dangerous - repartition a device." Wooh, dangerz! ;-)
|
Well, I hope I have done the right partitioning, now I will have to format, but that's 2 ec.
If this could help someone, here is how I did it
~ > sfdisk /dev/ide/host0/bus0/target0/lun0/disc -uM << EOF
> ,75000
> ,64,S
> ;
> EOF
Checking that no-one is using this disk right now ...
OK
Disk /dev/ide/host0/bus0/target0/lun0/disc: 158816 cylinders, 16 heads, 63 secto rs/track
Old situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 0+ 78167- 78168- 80043263+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 0 - 0 0 0 Empty
/dev/ide/host0/bus0/target0/lun0/part3 0 - 0 0 0 Empty
/dev/ide/host0/bus0/target0/lun0/part4 0 - 0 0 0 Empty
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 0+ 75000- 75001- 76800023+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 75000+ 75064- 65- 66024 82 Linux swap / Solaris
/dev/ide/host0/bus0/target0/lun0/part3 75064+ 78167- 3103- 3177216 83 Linux
/dev/ide/host0/bus0/target0/lun0/part4 0 - 0 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
~ >