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.

0
votes
0answers
18 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
60 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' ...
0
votes
3answers
102 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
52 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
32 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
152 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
33 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
55 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
39 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
36 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 ...
0
votes
1answer
59 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
34 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
47 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
119 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
52 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
58 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
13 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
42 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
80 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
25 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 ...
0
votes
1answer
30 views

Hiding Specific partition from a non-sudo user

Is there anyway to prevent a non-sudo user from seeing specific partition? lets say "/data" partition? I know that i can prevent the user from accessing the directory, but i preffer to hide it from ...
0
votes
1answer
31 views

install arch into already parttioned disk

I've been using linux for couple of years, but still can't manage partitioning at all. I have / and /home partitions on my drive and want to use these partitions for my fresh Arch installation. I'm ...
1
vote
1answer
28 views

Cannot Extend partition with GParted

I am trying to extend my ext4 partition using the GParted application. I've tried a number of times to get this to work, but it seems impossible. I've seen many threads about the issue being the ...
0
votes
2answers
131 views

4TB drive formatted with ext4 can't mount due to wrong fs type

I had someone plug in a brand new 4TB drive via usb in an external enclosure in a data centre. I remotely used disk to create a partition with the default parameters to use up the entire drive. I then ...
1
vote
1answer
35 views

Add (already created) partition for /home after OS installation

I made a separate partition for /home, but during installation process I forgot to mount it and hence no entry was made in fstab. I had everything in partition under the root ( well not the swap and ...
1
vote
1answer
23 views

Rebuild LUKS as extended container

I deleted a LUKS partition by fdisk for some reason; I rebuilt it, but mistakenly did so as an extended container, then hit w. Although I deleted the extended container later, and rebuilt the LUKS ...
1
vote
0answers
57 views

How to add same Ubuntu operating system as backup to GRUB?

I have 4 partitions on my hard disk: 15 GB Ubuntu OS (mounted to /) - sda 2 15 GB Backup (not mounted) - sda 3 505 MB Grub (/boot/efi) - sda 1 89 GB GB Data (mount /data) - sda 4 For LTS updates, e....
0
votes
1answer
35 views

sfdisk strange behavior: total size of partitions greater than device size

I have a ssd(256 Gb), when I'm trying to part it: sfdisk /dev/sda << EOF 2048,8388608,S ,104857600,L ,,E ,20971520,L ,20971520,L ,20971520,L ,,L EOF fi the output is: Disk /dev/sda: 238.5GiB, ...
0
votes
1answer
93 views

A separate partition for a user's /home directory?

Is it possible to separate /home/$USER for one particular user into a separate partition in Arch Linux x86_64 with the 4.19.31-1-lts kermel? I want to encrypt one user's /home directory, but I prefer ...
0
votes
1answer
69 views

How do I merge two ext4 partitions?

I have the following setup: sda7 is my /home (Linux Mint) that I want to merge with sda8 (which I cut out of Windows). I read here that I can't combine two partitions that are not adjacent and that ...
0
votes
1answer
148 views

How to change partition type id without formatting?

How to change my partition type id from 83 to 8e without formatting and losing data?
0
votes
0answers
41 views

Debian Stuck in Emergency mode after Triple boot

These are the errors I found in my log file: I recently did some changes to my disk I made a triple boot from dual boot system but I had to take a big part of debians home partition. After I ...
2
votes
3answers
62 views

Execute permission NTFS data partition

I'm trying to execute some scripts, which are located on my data partition, from the shell, but I have a problem with permissions. bash: /media/storage/ss/script.py: Permission denied Before ...
2
votes
1answer
142 views

Why partx can't read the partition table of some disks

partx fails to read the partition table of /dev/sdb on this system. Why does it return this 'failed to read partition table' shown below, instead of null/empty ? Will this 'failed' result always mean ...
0
votes
0answers
21 views

Logical Volume / Group Volume / Physical Volume : blivet-gui and pvmove

I installed fedora29 workstation. I have only one 1To SATA disk (Partition table : GPT). After automatic installation, all my disk space is used. To reduce /dev/sda3 (because I want space on my disk), ...
0
votes
1answer
54 views

Extend /dev/sdb3 partition

I am trying to clone my linux usb live persistence from 32GB drive to 64 GB drive. After I clone it, there are some unallocated space (32GB). I have done some research but I still cannot figure it out....
0
votes
1answer
69 views

Linux installation and partition

I'm new to Linux and I've thought I'll give it a try and so I installed Zorin OS. I' wondering if I installed it correctly in the disk. Sample screenshot using cfdisk: Is it fine that the Linux file ...
0
votes
1answer
30 views

Are there any issues with using the windows os partition for shared data storage with Linux?

My previous laptop had a 640Gb HDD and had partitioned it so that I had a separate NTFS partition for Data (documents, music, videos, etc) that I would access from both Linux and Windows in a dual-...
0
votes
1answer
242 views

EFI system partition cannot be of type ntfs, EFI system must be mounted on one of /boot/efi

I have tried to install CentOS alongside windows 10 and for this I created some unallocated space for the CentOS. While proceeding with installation of CentOS I came to stage of partition and then I ...
1
vote
2answers
298 views

Create an image of the partition (only the used space)

I have a partition sdb1 of size 3.3 GB. From 3.3 GB only 1.9 GB is used and 1.2 GB is an empty space. I want to create an image of this partition. But I want the image to only have the used space i.e. ...
2
votes
1answer
83 views

Handle booting failure for u boot ( Debian )

I have an embedded device with 512 Mb of ram and 4Gb internal storage. ( Consider Raspberry Pi or Beaglebone ) I have an external SD card available with 3 Partitions. mmcblk0 is the disk and ...
0
votes
1answer
80 views

How can I resize my fedora lvm partition to be larger with the root partition in the way?

I have changed to Fedora Linux and shrunk my windows partition. I have unallocated space which I want Fedora to take up. I have looked other answers to questions like this and cannot find instructions ...
-1
votes
1answer
26 views

Formated drive is not fully empty

I used Gparted to delete the partitions on a HDD as for some reason had used data on it however, after restarting my system it says my unallocated 4TB drive is only 3.64TB.
0
votes
0answers
333 views

Workaround for shrinking a XFS CentOS root partition

I run a cloud VPS with Centos 7 installed. Unfortunately, I could not customize disk partitions during installation so now I have no free space in the volume group automatically created because it is ...
-1
votes
1answer
809 views

Resize partition with fdisk without data loss

I need to increase the partition using the empty space located before the partition starts without data loss. As far as I know to resize the partition and to leave data intact one should start the new ...
2
votes
0answers
55 views

Replace CentOS with Ubuntu on a remote server (SSH access only) [closed]

I am trying to replace CentOS with Ubuntu Server on a remote machine where the only access is via network (SSH-only at present, VNC may be set up if needed). I have fully backed up all data on the ...
0
votes
0answers
19 views

Linux remove free space of partition [duplicate]

Is there any way to remove free space of a partition ? I want to build embedded os and i created disk image with dd command and patition this disk with fdisk . my problem is , disk size is too ...
0
votes
0answers
27 views

Kali Doesn't show HDD in automated install [duplicate]

I am trying to install Kali Linux from a USB drive to my hard drive alongside Windows 10. My issue is that when the "Partition Disk" step comes along in the Kali installation, /dev/sda does not appear....
1
vote
0answers
182 views

Rescueing Microsoft reserved partition

A few year ago I built myself a NAS. It has a 320GB HDD for ubuntu OS and a 2TB HDD for files. I mounted de 2TB disk and shared it with samba over my network. Now I have build a HTPC like system and ...
0
votes
0answers
52 views

How can I customise root partition (/) volume size in VM ( Centos7) creation using Packer?

I'm creating a vmware machine("type": "vmware-iso",) using packer. By default it creates /(root) partition with size appx 40 GB(not sure why? default ?). Now I am struggling to find out a way through ...