Questions tagged [fdisk]

fdisk (for "fixed disk") is a command-line utility that provides disk partitioning functions.

Filter by
Sorted by
Tagged with
2
votes
1answer
721 views

Can I hide the fact that my USB is LUKS encryted?

Say I have a LUKS encrypted USB (full disk). I am looking for a way to hide the fact that it is a LUKS device. Which strategy would you use to hide the fact that my USB is a LUKS device? My approach ...
2
votes
1answer
3k views

Drives not showing when sudo pvdisplay

I'm going to make a RAID5 setup on my ubuntu 14.04 server. I had 2 4 TB WD NAS drive and have purchased another. However, when I try to find those drives in my system using pvs, I only find 3 drives (...
2
votes
2answers
743 views

How can I manipulate a partition table file without fdisk checking the validity of it?

I'm creating an image in memory (/tmp is a tmpfs): $ dd if=/dev/zero of=/tmp/sdcard.img bs=512 count=3147775 It's supposed to hold a partition table and the first 3 partitions of a device $ losetup ...
2
votes
2answers
778 views

Why do I need mkswap if swap space has been created via fdisk?

I created a partition called /dev/sda3 as a swap partition, and changed the ID to 82 (Linux Swap) via fdisk. If this partition was recognized as a swap partition (seen in the output of fdisk -l and ...
2
votes
2answers
15k views

CentOS doesn't see USB device

I'm running CentOS 6.3 inside of VirtualBox and am having trouble seeing my USB 2.0 thumb drive. In VirtualBox I go to Devices, USB drives and can capture my connected thumb drive. I've created a ...
2
votes
2answers
437 views

Can I safely resize my partition from its beginning?

Currently dual booting Windows 8 and Linux Mint 14, sooner or later I will give more space to my Linux system. Is resizing my Linux partition from the beginning a safe operation ? If yes, could you ...
2
votes
1answer
7k views

USB drive is not recognized

I have a Transcend USB drive that is not recognized by the system (Debian Jessie 3.16-amd64). Let me explain: When I connect it to the PC (Gnome) it makes the typical sound of when a drive is ...
2
votes
2answers
811 views

LVM fills all remaining disk space, but not enough space on root partition

I am inexperienced with Linux. I am running Fedora 25 Server, with default partitioning. Following is the output of df -h: Filesystem Size Used Avail Use% Mounted on devtmpfs ...
2
votes
2answers
4k views

fdisk partition types not all being displayed?

I am running this on Ubuntu 16.04 LTS and using fdisk. I have been trying to change the partition type of a partition on an sd card and I want to change it to win95 fat32 (LBM) which should be command ...
2
votes
2answers
4k views

“Error: Can't have a partition outside the disk!” even though number of sectors is fine

I am looking at an image file which was created using dd with an SD card with Raspbian (with Qt 5.7 on it that I compiled a while ago) as input. When invoking sudo parted raspbian_jessie_qt5....
2
votes
1answer
796 views

why the size of disk image decreased after mkfs.ext2

first, i create a disk image use dd: > dd if=/dev/zero of=disk bs=512 count=2097152 > du -h disk 1.1G disk second, fdisk disk create a partion: Command (m for help): p Disk disk: 1 GiB,...
2
votes
1answer
4k views

Linux EMC scan Lun not working

We have CX4-120 EMC SAN storage, I expend existing LUN size to 20GB but now i am not able to see any cylinder changes on host fdisk -l output. Following command i am running to re-scan my hda or LUN ...
2
votes
2answers
5k views

Use testdisk and gpart information to mount ext4 partition

I am trying to recover the ext4 partition table of a 2TB disk, where I have 900.000 files. I have cloned the original HD and now I am working on the cloned HD. And I am running Parted Magic Live CD. ...
2
votes
1answer
6k views

resize2fs fail to resize partition to full capacity?

Added a new disk (/dev/vdb) of 2TB with existing data from the previous 1TB disk. I used fdisk /dev/vdb to extend its only partition /dev/vdb1 to full capacity of 2TB from previous 1TB. And then I ...
2
votes
1answer
430 views

Find device ID for partition in Solaris 11?

I have a laptop I'm setting up to multi-boot between Win 7, Solaris 11, Ubuntu 14.04, and CentOS 7. I have a common FAT32 partition for all of them to save data to. I'm less familiar with Solaris ...
2
votes
1answer
458 views

Interpreting results of commands

I am having a hard time interpreting the results of the below commands. The more I read about them the more I'm convinced that what I am seeing is somehow not what it's supposed to be. The results ...
2
votes
1answer
192 views

Swap suddenly vanished from Debian?

Everything has been going fine for 6 months now until my swap suddenly vanished today. Now that I look into it, I find that my disk partitioning is a bit weird. What happened to it, and what should I ...
2
votes
1answer
591 views

fdisk delete mounted partition

What kinds of problems will occur by deleting partitions with fdisk that are currently mounted. I tested this on a mounted usb partition and it gave me some peculiar errors. I know it is something you ...
2
votes
1answer
4k views

Understanding syslinux and partitioning

I am trying to learn and especially understand how partitionning and boot-loaders work. The problem is that I got it all twisted in my mind. In the end I don't understand anything anymore. I know ...
2
votes
2answers
1k views

Partition offset at 63 or 64?

I did not wish to use the entire SSD for OpenBSD 5.5. (The SSD is new and pre-formatted with MSDOS using Gparted) During installation and at the fdisk stage, I chose Partition #: 0 to install OpenBSD ...
2
votes
1answer
202 views

why 2TB external HDD is recognized as 800 GB only in Ubuntu 8.10

I had a 2 TB external HDD which I formatted as below. fdisk /dev/sdb After issuing the above command, I did the following steps. Then selected option p. (To print the partition table). Then ...
2
votes
1answer
1k views

Linux big disk partition issue

I have a big disk around 4.8 TB (RAID) and it has following partition (created by fdisk) [root@server1 ~]# fdisk -l /dev/sde WARNING: The size of this disk is 4.8 TB (4796404727808 bytes). DOS ...
2
votes
2answers
1k views

Errors from cfdisk with new external USB backup drive

I've picked up an HP SimpleSave sd500a backup drive. This is a 2.5", 500GB drive. It has a mysterious CD-like partition, but otherwise seems to contain a WD Scorpio Blue disk. It seems that the CD-...
2
votes
1answer
29 views

Arch ISO not recognizing SSD, does see HDD

I'm installing Arch Linux and when I was about to partition my drives, I noticed something odd. In my laptop, I have two disks: a 1TB HDD and a 512 GB SSD. I would prefer to use the SSD as my boot ...
2
votes
1answer
144 views

I'm having hard times mounting a PlayStation 4 hard drive, need some help!

When I run the command sudo fdisk -l I get the following message about the hard drive I want to mount to my system: Disk /dev/sdc: 465,8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors ...
2
votes
0answers
70 views

Two Partitions had same starting and ending sectors? How is it possible?

When I was practicing with fdisk, unfortunately, two partitions added with same start and end sectors. When I mount them individually I can see the same data on both partitions. Is it a flaw in fdisk? ...
2
votes
3answers
603 views

Merging partitions in Debian

I have recently inherited someone else's problem with a linux server. This is one of those all in one debian based lamp setups. It recently ran out of storage and no one seems to know anything about ...
2
votes
1answer
1k views

Extending VG > LVM

I want to run an idea by you... I have an Ubuntu 16.04.3 with an LVM on a second drive I would like to extend. I want to complete this only using this CLI, no GUI. I have put my steps below how I ...
2
votes
1answer
2k views

fdisk warning message: (Extended) Partition does not start on physical sector boundary

When I run fdisk, I get a warning message: Partition table entries are not in disk order Here is an example of the command I'm executing and its output: sudo fdisk -l [sudo] password for phil: ...
2
votes
0answers
403 views

Partition “X” does not start on physical sector boundary

After rund fdisk -l in my terminal I got this error message to /dev/sda2 and /dev/sda5. Than I run parte align optimal on this two partition with this error. All partition now have the same ...
2
votes
2answers
8k views

Error when creating new partition on /dev/sda, “No free sectors available”

I have a VirtualBox Linux Guest (Oracle Enterprise Linux 6) and I recently expanded hard drive from 50Gb to 100Gb and then used GParted to resize to use the newly added 50GB (as this was unallocated). ...
2
votes
2answers
542 views

Why there are many mapper volumes created in my Suse Linux installation

Recently I installed Suse Linux and Sled. After the installation, I found out that more memory is allocated for mappers; I don't know what is the use of these things. Will they be used once the main ...
2
votes
0answers
8k views

Backup GPT table is corrupt. Fix will disappear at reboot

My recently installed ubuntu 16.04 system is not behaving correctly (does not boot). I did check the status of the hard drives using fdisk and I discovered that somehow the backup GPT table is corrupt....
2
votes
1answer
72 views

How to restore a memory card to its original state as it's showing double it's size when I try to partition it in fdisk?

I have a 2 GB memory card that I used as install media for Fedora 23 Design Suite. I want to reuse the same memory card for another Linux install media so I tried re-partitioning it with fdisk. The ...
2
votes
0answers
14k views

mount: special device /dev/sda1 does not exist

I had a CentOS 6 server suddenly lock up on me after doing about 2 weeks of calculations for a project. Upon reboot, the machine would crash while attempting to mount the devices listed in the fstab ...
2
votes
1answer
483 views

Reduce the size of an existing VolumeGroup to create a new PhysicalVolume

I have test machine that is set up with default partition settings for CentOS 6. [root@base_machine ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup-lv_root ...
2
votes
0answers
3k views

How to find hidden partition of a USB in linux

I have a USB, which has a protected partition. I think this USB has hidden partitions, which I can't see them. $ fdisk -l /dev/sdb: You must set cylinders. You can do this from the extra functions ...
2
votes
0answers
179 views

Problems with USB goflex 2 TB

I am using CentOS 5.5 and have been using cpio to write backups to a 2 TB GoFlex USB drive. This drive worked great for over a year, but am now running into a problem and not sure what to do. When ...
2
votes
0answers
2k views

WD MyBook 3TB - Gparted failed & HDD partitions recovery?

I have this new WD MyBook external HDD (USB 3.0/2.0); I created 3 partitions, all of them ext3 type (~1 TB | ~1 TB | ~750 GB) I loaded lots of files all the partitions were like ~30% full on each, ...
1
vote
3answers
4k views

How to resize logical volume to fit filesystem

How can I resize logical volume to fit filesystem automagically?
1
vote
1answer
159 views

What happens to data copied after undoing fdisk?

Suppose I have some drive with a single partition. For some reason I decide to repartition it, using fdisk. I create multiple partitions, then write the partition table, then exit fdisk. At this ...
1
vote
3answers
183 views

Why is grub showing a windows 7 option?

I've recently in installed mint 17 on my pc. $ parted -l Model: ATA PLEXTOR PX-256M5 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Number Start End ...
1
vote
1answer
41 views

device from free diskspace does not match-up to size from list block size

The device /dev/sda2 original space at 32GB, then I try to expand to 512GB as it is shown in lsblk but not in disk free listing still show 32GB. I've rebooted the redhat 7.6 vm. $ df -h ...
1
vote
1answer
346 views

Disk space error when using DD to write to raw disk in external reader?

I keep getting disk space errors when using dd to write to raw disk on SD cards in an external, USB connected SD card reader. ➜ ~ gzip -cd < image.dd.gz | sudo dd of=/dev/rsda dd: writing to '/...
1
vote
1answer
136 views

is it possible to create partition table inside crypt mapper?

i.e. not fdisk /dev/sda; cryptsetup create xxx /dev/sda1 but vice versa cryptsetup create xxx /dev/sda ; fdisk /dev/mapper/xxx is it allowed?
1
vote
2answers
2k views

lvm and a partitioning question

So when I do (as a root) fdisk -l I see /dev/sda1 and /dev/sda2 Now I am practicing creating logical volumes, when I tried partitioning /dev/sda2 I got two new partition /dev/sda2p1 and /dev/...
1
vote
1answer
248 views

Why is Linux Showing Device Partition Block Files for a Disk with no Partitions?

I have a 2TB disk that I have overwritten with random data. fdisk confirms that the device has no recognized partition table. Yet, I see these 5 device files for the disk: /dev/sdc{,1,2,3,4} i.e. # ...
1
vote
1answer
6k views

Paritioning a SD Card with both Linux and Fat32 partitions

On a Raspberry Pi with the raspbian distro i need to make an extra partition that can be read from both windows and linux. So i use FDISK on /dev/mmcblk0 (the sd card) to create a new partition ...
1
vote
2answers
954 views

Create a partition with fdisk in bytes

i would like to create a partition with fdisk with exact number of bytes. But fdisk only let me input K,M,G,T,P: Last sector, +sectors or +size{K,M,G,T,P} (2048-7814037134, default 7814037134)
1
vote
2answers
6k views

How to format a 1GB USB stick to FAT32 with 512 bytes sector?

I am trying hard to format a 1GB USB stick so that I can use it to install a new linux OS. Because the Disk utility has failed me when creating the file system. I tried to do it manually using fdisk ...