Home » Questions » Computers [ Ask a new question ]

Extract Partition and remove Partition-Table

Extract Partition and remove Partition-Table

"Hy,
Situation under Debian Linux, Kernel 2.6.26-2:
On a Block-Device (/dev/vdb) is a partition-table specifying one partition (/dev/vdb1) which contains a ext3-filesystem.
I want to remove the partition-table and make the partition-data directly available under (/dev/vdb)."

Asked by: Guest | Views: 236
Total answers/comments: 1
Guest [Entry]

You can backup data directly copying blocks (dd if=/dev/vdb1 of=.../backup), then copy it back overwriting everything (dd if=.../backup of=/dev/vdb) and then resize filesystem to match device size directly with resize2fs or with a tool like parted or gparted.