The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [partition]

Disk partitioning is the act of dividing a hard disk drive into multiple logical storage units referred to as partitions, to treat one physical disk drive as if it were multiple disks.

Filter by
Sorted by
Tagged with
0
votes
0answers
144 views

Partition size mismatch using df and lsblk comands

On one of our systems, Additional SSD device mounted is showing size of 5.8 TB, but same partition showing size of only 59 GB using df command- [opc@kms10]$ df -Th /data1 Filesystem Type ...
-1
votes
1answer
14 views

creating space for data with fdisk

I am running a debian server on Windows in Hyper-V, I have expanded the Hyper-V partition to 2T, now I would like to expand the Debian partition to use that new space. The new space will be for videos,...
0
votes
2answers
42 views

Is there a reason to avoid frequently creating and 'destroying' partitions and having lots of them? [closed]

As far as I know, this just amounts to a change in the partition table and it is a relatively safe operation that is rather cheap. Is there any significant cost or drawback(s) to... Creating and ...
0
votes
1answer
35 views

repartition HD Linux Mint

Here is what have now. As you see, I'm running out space on /dev/sda6.I'm not sure how to move partitions around to gain space. I surly don't want to mess up.
0
votes
1answer
101 views

How to recover lost data after disk MBR to GPT conversion?

When I curiously selected to "create a new partition table" and the new type of it is GPT, GParted poped a warning message that "I may loss all...", but I still clicked yes, as I thought all the ...
0
votes
2answers
50 views

Why do I need to partition?

I am currently running Ubuntu 19.04 on my Surface Pro 3 and I have decided to move onto Arch Linux. Reading each installation guide, I keep coming across "partitioning" and I want to know why. What ...
0
votes
0answers
67 views

Grub rescue ‘no such partition ‘

I have an ASUS netbook Eee1008 which dual booted XP and Linux Mint. I inadvertently deleted the wrong partition when trying to remove the XP OS. I now receive only the message indicating I have no ...
0
votes
1answer
42 views

Can I temporarily mount a partitioned hard drive while using LVM?

I currently have a hard drive with a boot partition and an extended partition; the extended partition contains /, swap, and /home partitions, as shown in the screenshot below: I recently acquired a ...
0
votes
2answers
31 views

Unable to extend a partition in gparted

In my sdb drive I have 76 Gb of unallocated space. I would like to extend the partition sdb3. However gparted hangs if a try to extend this partition. Anyone knows why?
0
votes
0answers
73 views

grub-reboot and grub-set-default dont work properly

i have a fresh installed Ubuntu (Server) 18.04. I added a custom menu entry /etc/grub.d/40_custom: menuentry "Backup" { set root=(hd0,3) linux /vmlinuz root=/dev/sda3 ro quiet splash initrd /initrd....
1
vote
1answer
44 views

Mounting a hard drive (beginner)

I'm trying to mount my two harddrives (sdb and sdc) on Ubuntu 18.04 $ sudo fdisk -l Disk /dev/sda: 111.8 GiB, 120040980480 bytes, 234455040 sectors Units: sectors of 1 * 512 = 512 bytes ...
1
vote
0answers
51 views

Broken LVM Physical volume after resizing partition

I bought a new larger SSD to replace my old one. The old one has 3 partitions, 2 for booting and a third (last) one with LVM2 on LUKS. I did the following to migrate: dd the contents of the old drive ...
0
votes
2answers
415 views

Windows on SSD, Linux on HDD. No dual-boot. Separate bootloader devices. Will there be problems?

I have a 1 Terabyte HDD which is currently empty storage space for Windows which is on SSD. I want to split the HDD to two 500GB partitions and use first half as Windows storage space and the other ...
1
vote
0answers
27 views

why does these partition gaps occur? [duplicate]

I am doing an experimental project on NTFS and I just discovered every time I create a new partition there seems to be a (nearly 1MB) partition gap created just before the new partition. I searched ...
0
votes
1answer
34 views

Delete partition - Partition number

I want to delete the partition /dev/sdb5 from my hard disk and then distribute the resulting space to other partitions. Now what would be the consequences in doing so? Would the partition numbers ...
2
votes
2answers
97 views

Problem resizing Fedora partitions using GParted

Hello everyone, I wan to to resize the size of my current Linux partition. In the picture my fedora system is the sdb5 (it is on my SSD), the 105GB unallocated space was once the space of a windows ...
-2
votes
2answers
251 views

Kali Linux installation on USB drive

I want to install Kali Linux on a 64 GB USB drive and want to take it just anywhere and plug it in any PC and have my setup up and running. IOW I just want a HDD like complete Kali Linux portable ...
-1
votes
1answer
10 views

Is it possible to find boundaries of a Solaris2 partition after MBR corruption?

I had disk with 4 primary partition on it with MBR (/dev/sda): - the first had a NTFS filesystem, with data (/dev/sda1); - the second was a Solaris2 partition, with openindiana (/dev/sda2 on GNU/Linux ...
0
votes
0answers
30 views

Kali Linux Boot Partition is out of Space [duplicate]

Today I installed the 2019 Kali Linux on my HP laptop, 120GB Hard drive, 16GB Ram. I created 3 partitions; 20 GB EFI partition, 80 GB primary partition & 20 GB Swap approximately 10mins after the ...
0
votes
1answer
24 views

SSD migration partitioning planning [closed]

Objective I have used Linux tools to modernize older systems with SSD drives: format & partition new SSD (gParted) migrate OS + apps (clonezilla, ) I am seeking to upgrade a Macbook Air ...
-1
votes
1answer
74 views

How to use parted or sfdisk to non-interactively partition a disk so that the partitions are properly aligned?

I'm trying to figure out how to partition a disk in a programmatic way so that my disk will have three "msdos" primary partitions: one for /boot, one for swap and the last for logical volumes. I can'...
1
vote
1answer
59 views

wipefs is not working as expected

I am doing wipefs -af /dev/sda1 and then creating pv but its throwing error I am creating with command pvcreate -qq --metadatasize=128M --dataalignment=256K '/dev/sda1' and following is error [...
0
votes
2answers
99 views

Can fstab dynamically mount a partition by reading from a file or filename?

I have a partition structure as follows: /dev/sdc1 => Partition 1 ( My OS. [ Linux flavour ] ) /dev/sdc2 => Partition 2 ( This contents some data. ) /dev/sdc3 => Partition 3 ( This also ...
0
votes
0answers
37 views

Partition Start and End Calculation

I was using the parted command and i was trying to create a new partition using the mkpart option. While i was doing this it asked for the partition start and end. Now i believe i know what the ...
4
votes
1answer
172 views

Partition error (Fdisk/Parted)

I was creating a partition using the parted command and i used the mkpart option to create a new primary partition. But i got an unusual error message while doing this. This is my output: (parted) ...
0
votes
0answers
49 views

LVM partitioning on multiple disks using preseed script

I want to write preseed script that makes a logical volume from a volume group consisting of multiple disks, and mounts it to rootFS. I know it's easy to (lvm)partition and mount in case of using ...
0
votes
1answer
35 views

How to fix or retrieve data from an NTFS partition that was (re-)formatted with gnome-disk?

This morning, as usual, I mounted a 622 GB Windows (NTFS) partition on Linux for use. When I went on to unmount it through the graphical disks tool on GNOME, I accidentally formatted it, and now it’s ...
0
votes
1answer
243 views

What is the maximum number of partitions in a hard drive [duplicate]

I want to know the maximum number of partitions in a hard drive. But I'm not sure whether that is affected by factors such as hard drive types or partition scheme or not. So, I'll just write down ...
0
votes
1answer
121 views

reduce or delete existing root partition and install new distro

I would like to delete my existing Mint root partition which is on /dev/sda2 as its is very large space for root and I am out of space on the /home partition which is on /dev/sda4 I read online that ...
0
votes
1answer
33 views

Will relabeling a partition destroy data

Is it possible to relabel a partition that was accidentally relabeled with a different file system type? We think we accidentally relabeled sdb1 as XFS when it should have been labeled lvm(8e), after ...
0
votes
0answers
23 views

Error after extending a disk partition on CentOS 7

I went through this article https://www.ryadel.com/en/resize-extend-disk-partition-unallocated-disk-space-linux-centos-rhel-ubuntu-debian/#comment-1516 to extend space of a partition /dev/sda2, but ...
2
votes
2answers
306 views

parted command (start and end meaning)

I am using the Linux parted command; I was using the 'mkpart' option which allows new partitions to be made, but I was confused when it asked me for the start and end. What does 'start' and 'end' ...
1
vote
3answers
384 views

Why is lsblk showing the old FSTYPE and LABEL of a device that was formatted?

I formatted an external hard drive (sdc) to ntfs using parted, creating one primary partition (sdc1). Before formatting the device SystemRescueCd was installed on the external hard drive using the ...
0
votes
2answers
123 views

linux partition/disk numbers (sda1,sda2,sda5)

at the moment i understand that linux has a partition numbering system which is: partitions 1-4 are primary partitions 5 and above and logical but what about extended partitions? my curret ...
0
votes
1answer
36 views

How do I clone a 2 TB HDD onto a 120 GB HDD (shrink partition using gparted)

I have the following: Western Digital 2 TB HDD (65GB used space) Seagate 250 GB HDD (with nothing on it) The 2 TB HDD has Mac OS X 10.6.8 that I need to clone onto the smaller drive in order to use ...
1
vote
1answer
501 views

Change PTTYPE and UUID of an fdisk created partition

I've got two systems. On one, I decided to try and increase the virtual disk /dev/sda. So I delete the partition using fdisk and recreate it with a larger end size but identical start location. ( ...
0
votes
2answers
38 views

Partitioning disk

I would like to have 5 partitions: Boot Swap 3 separate (one is 'main' system partition) LUKS encrypted partitions I have boot partition as primary bootable and swap as primary linux swap. At this ...
1
vote
3answers
58 views

Can I store my program files on free space or extend my ubuntu drive size?

I recently installed Ubuntu 19.04 and allocated 50 GB of the SSD to Ubuntu using LVM; the remaining 190 GB is not allocated to a partition. Now I use programs consuming a lot of RAM, such as Android ...
0
votes
0answers
130 views

How to find max queue length for device?

Recently I ran into some I/O overload problrms on some of our machines and I have been searching to find thresholds for some metrics like: avgqu-sz await svctm Then I saw this post on Stack ...
2
votes
1answer
62 views

On Debian 9, is /root part of the /home partition?

I am encrypting my /home partition and I would also like any secrets /root (not /) contains to be encrypted. Is the /root folder considered part of the /home partition by default, or do I need to ...
1
vote
1answer
125 views

What units are the values in /proc/partitions and /sys/dev/block/<block>/size?

I have a sample emmc block info from an android device From /proc/partitions major minor #blocks name 179 1 5120 mmcblk0p1 Using my little intelligence I am assuming /proc/partitions ...
1
vote
1answer
42 views

How to enlarge this partition?

Inside vmware ESXI I have a CentOS virtual machine, and I resized the virtual disk from around 30 GB to 120 GB using vmware "edit" vm menu. Then I booted using a gparted bootable ISO and resized the ...
1
vote
0answers
48 views

How to wipe a partition quickly with value zero? [duplicate]

I want to wipe a partition quickly.I search the answer in website. such as: dd if=/dev/zero of=/dev/sda1 bs=16M count=96 shred -v -z -n 1 /dev/sda1 But: All the commandline,will overwrite with ...
0
votes
1answer
495 views

Failed finding GRUB drives of recently installed distros on another drive, edit device.map?

I am running Linux Mint 19.1 on a Samsung 860 EVO 500 GB (dev/sdb) along with Windows 10 on it and recently added a Crucial MX500 1TB (dev/sda) to try out and use more distros, both of them are ...
0
votes
2answers
57 views

partitions (in general)

I have been doing research on partitions lately and im quite confused on a few things: what is a partition table and what is it used for what is a partitioning scheme (GPT and MBR) and what are they ...
0
votes
2answers
60 views

can you partition a logical partition

in linux i have been working on partitioning and wondering is it possible to partitition a logical partition or further extend a extended partition?
0
votes
0answers
33 views

How to mention the staring size in sfdisk when using extended partition?

I'm using the below sfdisk script for eMMC partition on the target Linux platform and is working fine. #!/bin/sh # wait for the SD/MMC device node ready while [ ! -e $1 ] do sleep 1 echo “wait for $...
0
votes
1answer
59 views

Windows 10 and linux mint on one ssd disk, how to restore windows partition without losing linux?

I accidentally entered sudo mkfs.ntfs /dev/sda1 in terminal, and now i am unable to boot with Windows. I have Windows and Linux installed on ssd. On startup i have screen where i can select which to ...
0
votes
2answers
339 views

How to extend root partition by shrinking home

Recently I've found out that soon I will run out of space on my / (root) partition. I've done some research on extending root partition, however, it wasn't too informative (mostly everyone say it's ...
0
votes
0answers
28 views

Installed new Linux on HDD having a second Linux on SSD - possible sharing of root/swap partitions?

I got a bit confused after installing Linux Mint again, this time on my HDD instead of the SSD. I have not deleted the old (on the SSD) yet because I am worrying that "root" and "swap" might be shared ...