dadde
25.08.2015, 14.39
Buondė,
ho preso una macchina VPS SSD1, la prima cosa che ho notato che non č stato configurata la memoria di swap... per quello che deve fare, 2GB di Ram sono pių che sufficienti.
Quello che mi piacerebbe fare č poter avere una partizione su cui poter mettere drbd, quindi volevo rimpicciolire la partizione.
Sto cercando di seguire questa guida Reduce a Partition and Filesystem
ma c'č qualche problema con i seguenti punti:
- 2. Run fsck on your filesystem
- 3. Resize the filesystem with resize2fs
Quello che vorrei fare č una cosa fattibile oppure č una strada che non porta a nulla?
ho preso una macchina VPS SSD1, la prima cosa che ho notato che non č stato configurata la memoria di swap... per quello che deve fare, 2GB di Ram sono pių che sufficienti.
Quello che mi piacerebbe fare č poter avere una partizione su cui poter mettere drbd, quindi volevo rimpicciolire la partizione.
Sto cercando di seguire questa guida Reduce a Partition and Filesystem
ma c'č qualche problema con i seguenti punti:
- 2. Run fsck on your filesystem
- 3. Resize the filesystem with resize2fs
Codice:
fdisk -l Disk /dev/vdb: 10.7 GB, 10737418240 bytes 16 heads, 63 sectors/track, 20805 cylinders, total 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000af71d Device Boot Start End Blocks Id System /dev/vdb1 * 2048 20971519 10484736 83 Linux
Codice:
root@rescue-pro:~# e2fsck /dev/vdb1 e2fsck 1.42.5 (29-Jul-2012) ext2fs_open2: Bad magic number in super-block e2fsck: Superblock invalid, trying backup blocks... e2fsck: Bad magic number in super-block while trying to open /dev/vdb1 The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: