Giter Club home page Giter Club logo

Comments (5)

antitoine avatar antitoine commented on May 20, 2024 1

That's three times nothing to add to the documentation and it's still not done (after 3 years). As a result, like @dncwarren , I deleted the old signature too. I have no choice to restore my backup to make sure I haven't lost anything...

from docs.

stouch avatar stouch commented on May 20, 2024 1

Why is this not specified in docs ?

from docs.

jovan-stanoevski avatar jovan-stanoevski commented on May 20, 2024

Hi,
Do you want to remove the signature? [Yes/[N]o: |
- Choose NO, since if you delete signature the new disk/partition will not be able to be written and is not advisable to have multiple signatures.
Follow this article:
https://docs.ovh.com/ca/en/vps/repartitioning-vps-after-upgrade/

I've just upgraded my OVH VPS successfully ( 1 disk from 40 GB to 80 GB with one partition /dev/sdb1 )

Bellow is full list of commands:

root@rescue-pro:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE . MOUNTPOINT
sda 8:0 0 2.5G 0 disk
└─sda1 8:1 0 2.5G 0 part /
sdb 8:16 0 80G 0 disk
└─sdb1 8:17 0 40G 0 part /mnt/sdb1

root@rescue-pro:~# umount /dev/sdb1

root@rescue-pro:~# e2fsck -yf /dev/sdb1

e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
cloudimg-rootfs: 669535/2621440 files (0.3% non-contiguous), 6123138/10485464 blocks
root@rescue-pro:~# fdisk -u /dev/sdb

Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk /dev/sdb: 80 GiB, 85899345920 bytes, 167772160 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
Disklabel type: dos
Disk identifier: 0x0005bac1

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 83885759 83883712 40G 83 Linux

Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-167772159, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-167772159, default 167772159):

Created a new partition 1 of type 'Linux' and of size 80 GiB.
Partition #1 contains a ext4 signature.

Do you want to remove the signature? [Y]es/[N]o:
Do you want to remove the signature? [Y]es/[N]o: n

Command (m for help): a

Selected partition 1
The bootable flag on partition 1 is enabled now.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@rescue-pro:~# resize2fs /dev/sdb1
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/sdb1 to 20971264 (4k) blocks.
The filesystem on /dev/sdb1 is now 20971264 (4k) blocks long.

root@rescue-pro:~# mount /dev/sdb1 /mnt

root@rescue-pro:~# df -h

Filesystem Size Used Avail Use% Mounted on
udev 3.8G 0 3.8G 0% /dev
tmpfs 780M 8.4M 772M 2% /run
/dev/sda1 2.4G 1.5G 743M 68% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sdb1 79G 23G 53G 31% /mnt
root@rescue-pro:~#

from docs.

jmblanespacheco avatar jmblanespacheco commented on May 20, 2024

It's work for me, when I fails before when a execute fdisk without -u parameter. Thanks

from docs.

dncwarren avatar dncwarren commented on May 20, 2024

Hello everyone,

I unfortunately deleted the ext4fs signature.

How can I solve the problem?

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.