zainstalowałem nnd
zamontowałem drugi dysk z poprzednią instalacją
przeniosłem dane
i w szytsko smiga
ale został mi dysk z poprzednią instalacją a chciałbym go wykozystać
dysk jest 1,7gb z czego 32mb to swap i reszta to druga(pierwsza) partycja
pytanie: jak usunać te 2 partycje, zrobić z tego jedną i ustawić ją powiedzmy jako "/home/"
zapewne narzędzie fdisk przyjdzie z pomoca, ale jak go użyć...
hmm poszukam jeszcze manuala w googlach, ale jak ktoś wię bedę wdzięczny za podpowiedź
ooooki znalazłem na googlach
może sie komus przydać
po kolei robi sie tak
[root@atc250 sadek]# fdisk /dev/hdc
Command (m for help): p
Disk /dev/hdc: 1704 MB, 1704665088 bytes
16 heads, 63 sectors/track, 3303 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 3235 1630432 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/hdc2 3235 3300 32767+ 82 Linux swap
Partition 2 does not end on cylinder boundary.
Command (m for help): d 1
Partition number (1-4): 1
Command (m for help): p
Disk /dev/hdc: 1704 MB, 1704665088 bytes
16 heads, 63 sectors/track, 3303 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc2 3235 3300 32767+ 82 Linux swap
Partition 2 does not end on cylinder boundary.
Command (m for help): d
Selected partition 2
Command (m for help): p
Disk /dev/hdc: 1704 MB, 1704665088 bytes
16 heads, 63 sectors/track, 3303 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-3303, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-3303, default 3303): 3303
Command (m for help): p
Disk /dev/hdc: 1704 MB, 1704665088 bytes
16 heads, 63 sectors/track, 3303 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 3303 1664680+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Urządzenie lub zasoby są zajęte.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@atc250 sadek]# mkfs.ext3 /dev/hdc1
ale jednak cos jest nie tak
po wywaleniu obu partycji głównej i swap i po sformatowaniu:
[root@atc250 sadek]# df
System plików bl. 1K B użyte dostępne %uż. zamont. na
/dev/hda1 3071248 659280 2255956 23% /
/dev/hdc1 1638504 32828 1522444 3% /mnt/hdc
[root@atc250 sadek]#
tak jakby swap pozostał?? nie jaże