On 01/02/2017 03:26 PM, Terry Eck wrote:
Hello, Hope someone can shine some light on the problem I'm having. I've formatted several drives in the past and have not seen this problem.
I'm trying to use a 500G drive which was a linux system with swap.
I fdisk to delete all the old partitions and created one single partition. One strange thing is the partition starts at 2048. Had no choice. =========== The following is from fdisk
Disk /dev/sdc: 465.8 GiB, 500107862016 bytes, 976773168 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: gpt Disk identifier: 0x000af975
Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 976773167 976771120 465.8G 83 Linux =============
Try to format it with fsck.ext2 yields: e2fsck 1.43.3 (04-Sep-2016) ext2fs_open2: Bad magic number in super-block fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2: Bad magic number in super-block while trying to open /dev/sdc1
The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem. If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> or e2fsck -b 32768 <device>
/dev/sdc1 contains a swap file system
=============
Any ideas how to format this drive for use and a data storage/backup drive?
2048 is the correct default starting sector. I noticed your disk label says "gpt", and fdisk is not recommended for creating a GPT partition. For that, you want to use gdisk. In your case it the disk may be formatted as the traditional MBR format, and just has the gpt label so I would check on that to be sure. fdisk can create GPT partitions but you will see in the documentation that it's experimental. You need to specify mkfs to format a partition, not a block device. For instance:|`mkfs.ext4 /dev/sdc1` NOT |||`mkfs.ext4 /dev/sdc`. btrfs can handle formatting an entire block device without having first created a partition. Ext4 can't. Example: `mkfs.btrfs /dev/sdc` would create one large partition on a hard drive.| | -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org