ich habe einen hp Proliant DL 360 , 9 GB Festplatte, Hardware-Raid 0. Auf der gesamten Platte war Debian Sarge installiert. Ich wollte die Partition verkleinern, eine neue anlegen, darauf /var und /opt legen.
Code: Alles auswählen
web:/# fdisk -l /dev/cciss/c0d0
Disk /dev/cciss/c0d0: 9091 MB, 9091153920 bytes
255 heads, 63 sectors/track, 1105 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 1056 8482288+ 83 Linux
/dev/cciss/c0d0p2 1057 1105 393592+ 5 Extended
/dev/cciss/c0d0p5 1057 1105 393561 82 Linux swap / Solaris
web:/# df -h
Dateisystem Größe Benut Verf Ben% Eingehängt auf
/dev/cciss/c0d0p1 894M -64Z 7,1G 101% /
Code: Alles auswählen
web:/# parted /dev/cciss/c0d0p1
GNU Parted 1.6.21 with HFS shrink patch 16
Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
Using /dev/cciss/c0d0p1
(parted) print
Disk geometry for /dev/cciss/c0d0p1: 0.000-8283,484 megabytes
Disk label type: loop
Minor Start End Filesystem Flags
1 0,000 8283,484 ext3
(parted)
(parted) resize 1 0,000 1024
Error: Filesystem was not cleanly unmounted! You should e2fsck. Modifying an
unclean filesystem could cause severe corruption.
Ignore/Cancel? I
Error: Error informing the kernel about modifications to partition
/dev/cciss/c0d0p1p1 - Das Argument ist ungültig. This means Linux won't know
about any changes you made to /dev/cciss/c0d0p1p1 until you reboot - so you
shouldn't mount it or use it in any way before rebooting.
Ignore/Cancel?
Frage, mit parted kann man doch im laufenden Betrieb Partitionen verändern, oder was ging schief?
Danke,
Gruß T.