Questions tagged [parted]

Questions about the GNU parted (partition editor) CLI utility that is used to manipulate disk partition (and not GParted, GNOME Partition Editor, a graphical tool with similar functionality).

Filter by
Sorted by
Tagged with
0
votes
1answer
87 views

I cannot boot into my Linux distro

I adopted a Dell XPS 13, updated the Ubuntu 16.04 to 18.04, and gave it the MacBuntu environment for my girlfriend to use. Everything worked great! Then I got it in my head to run Steam, mainly to ...
0
votes
1answer
62 views

Ubuntu 18.04 on vCenter, stuck booting to initramfs after using GNU Parted 3.2

I was trying to grow the partition on my Ubuntu 18.04 server and after playing around with parted and growpart (then rebooting) i am now stuck booting into the initramfs shell. This is screenshot of ...
1
vote
0answers
74 views

trying to resize root partition using lvm doesn't work

I'm working on an ubuntu 18.04 server. For the last few days I keep getting the error message "No space left on device" when doing simple things like ll. I have found out that it has something to do ...
2
votes
1answer
39 views

Attached external drive unmountable

When I attach a drive to ubuntu 18.04 it is not listed in /dev. ls -al /dev | grep sd returns only sda (boot drive) If I list disks, I can see the device (full fdisk response below - I'm no longer ...
0
votes
0answers
896 views

Error: Could not stat device devsdb - No such file or directory

Setting up an ubuntu server for the first time. It loads up just fine but when I try to partition my 2.7T drive it's giving me the following error: fdisk: cannot open devsda: No such file or ...
0
votes
0answers
21 views

18.04 Resize Partition [duplicate]

Using parted and print free commands, I displayed the free spaces in my Ubuntu 18.04 Server: GNU Parted 3.2 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) ...
0
votes
1answer
161 views

how to recover lost USB capacity?

I used dd to write the image to my flash drive (64M image). Real capacity of USB is 2G Works great. But when I tried to write Xubuntu img on it. There is no free space. I already tried fdisk, parted ...
1
vote
1answer
294 views

Hard Drive Partition: Optimal Transfer Size

I have a Western Digital 4TB drive (WD40PURZ). It appears that the recommended procedure for partitioning the drive results with: "Optimal transfer size 33553920 bytes not a multiple of physical ...
1
vote
0answers
288 views

Files missing on new 5TB hard drive after formatting as ext4 with parted and mkfs

After connecting a new external 5TB hard drive and formatting it as ext4 with parted and mkfs with the procedure below, I then mounted the drive, copied files onto it, unmounted the drive and ...
0
votes
0answers
155 views

Need help with partitions after dual booting ubuntu to existing windows 10 install

I was given an older Compaq Presario CQ60 Laptop with Windows 10 on it and I setup a dual boot with Ubuntu 18.04.2 LTS. I'm a linux beginner and was way over my head with the install but everything ...
0
votes
2answers
754 views

Error While Creating Partition (Parted/Fdisk)

I am a bit new to creating partitions on the terminal and i would like to learn, so basically i was creating a partition using the parted command and i used the mkpart option to create a new primary ...
1
vote
1answer
62 views

script for creating bootable usb

I have been using the following bash script on Ubuntu 14.04.5 LTS to create a bootable USB disk for an embedded system, which worked fine: # Partition disk. /usr/bin/sudo /bin/umount /dev/sdc1 /dev/...
0
votes
1answer
915 views

Struggling with new HDD sector alignment - parted likes it, fdisk and mkfs do not

I just attached a new 2TB HDD to an SBC running Ubuntu. There is no data on the HDD and so I can freely wipe it as needed as the OS is running on an SDCard. I want to format it as one large ...
0
votes
0answers
248 views

usb bootable flag not cleared by gparted but cleared by Windows

Model: Lexar USB Flash Drive (scsi) Disk /dev/sdb: 64.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 ...
0
votes
0answers
536 views

How to increase size of root partition at /dev/sda1 from /dev/sdb1?

I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below sudo parted -l Model: QEMU QEMU HARDDISK (scsi) Disk ...
0
votes
0answers
388 views

SAS Drives Ubuntu Server 18.04 [duplicate]

I have two SAS drives of the same type. I have install the ubuntu operation system on the first SAS drive. Now I want to use the other drive for storage, but it doenst seem to show up on parted, lsblk,...
1
vote
0answers
2k views

Ubuntu Server 18.04 not detecting SAS drive

I have two SAS drives 72GB. One is the system where Ubuntu server is installed on. The other is also connected but I can’t find it on the server. When I plug an HDD into the server, it outputs it as /...
0
votes
0answers
414 views

Why does fdisk and parted not show same partition table on a fresh bootable usb image

I follow the instruction on https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu except I use a SD-card to flash. When I use fdisk and parted to investigate the result of the ...
0
votes
1answer
385 views

How to manage partitions (not live/system) on a remote Linux server?

To provide more context, let's say we have a remote Linux server with 2 disks and 3 partitions on it. For example, a system partition (/dev/sda1) and one more disk with 2 partitions on it (/dev/sdb1 ...
0
votes
1answer
557 views

Create one partition occupying all the space on the drive with gparted?

I am following the instructions here: https://help.ubuntu.com/community/InstallingANewHardDrive It says: 4) Create one partition occupying all the space on the drive: (parted) mkpart primary ...
1
vote
1answer
394 views

How to use parted in a script, and get a blank PARTLABEL?

I'm trying to create software to restore backups that I already create with scripts. I haven't needed to restore any, fortunately, but now I want to move the contents of one of my backups to a SSD ...
0
votes
0answers
375 views

Creating Logical Volume Partition Type with parted

I am trying to create a logical volume partition using parted and so I used the following steps: Create partition with parted using the interactive mode which would translate to: mkpart, then Gave ...
0
votes
0answers
124 views

File system problems, sudo parted -l, sudo fdisk -l show16 loops? [duplicate]

I guess something is wrong with my filesystem. Gparted shows: sda 1 (boot 487 MB), sda 2 (extended 238 GB), sda 2, sda 5 (lvm2 pv 238 GB) of the 238 GB, only 48 MB are unused The fdisk -l ...
2
votes
2answers
176 views

reconfiguring msdos to gpt

Im currently trying to make my sdb gpt and have partitions primary but I don't know how to proceed properly. what I did was: sudo umount /dev/sdb1 and /dev/sdb5 sudo parted /dev/sdb mklabel gpt sudo ...
1
vote
0answers
529 views

Gparted/parted/gdisk/fdisk all pretend to create partition table?

I have been trying to wipe and reset an entire HDD. Something went wrong when moving a drive from Windows to Ubuntu. So in the midst of a tutorial or two.. I wiped the whole drive. Here's the rub: I ...
1
vote
1answer
978 views

Extend LVM Volume - How to use parted to extend physical volume?

I have a cloud server running Ubuntu 14.04 being hosted by fasthosts. I recently upgraded the storage from 100GB to 110GB however when i run df i can see this currently isn't being used by the ...
0
votes
1answer
2k views

Parted input/output error while making a new GPT table

I have damaged usb drive. Tried making a new table with GParted, not finishing the operation. also tried with parted, it's printing input/output error while making GPT table. scanned with badblocks ...
0
votes
1answer
34 views

Linux Error Reporting Removable Disk Size

I recently had a strange error while trying to partition removable usb drives. lsblk correctly reported the drive configuration. However when I tried to dd an image to the drive dd error'd, reporting ...
1
vote
0answers
113 views

Multiple 2TB MSDOS partitions or 1 larger GPT partition for volume group

I have just expanded my 1+0 raid from a total of 2TB to 6TB. When adding each of the new drives I partitioned them using parted to create GPT based partitions to cover the entire of each of the ...
0
votes
0answers
784 views

8TB Hard Disk mount failed

Environment 1. OS : Ubuntu 16.04.3 LTS 2. HDD : 8TB HDD Symptom : /dev/sdb1 does not exist. root@hprnd:/home/hprnd# mount /dev/sdb1 /hprnd0004 mount: special device /dev/sdb1 does not exist ...
1
vote
2answers
7k views

How do I create a swap partition using parted?

How do I create a swap partition using command line gparted? (parted) I've managed to create a partition but I can't seem to set the partition to Linux swap / Solaris. I've tried mkpart extended ...
0
votes
1answer
678 views

Fatal: Bad FAT: unterminated chain for <file_name> when using parted

I am using parted to resize a memory block. Please find the set of comments I used below. # ./parted /dev/mmcblk0p1 GNU Parted 1.8.8.1.179-aef3 Using /dev/mmcblk0p1 Welcome to GNU Parted! Type '...
4
votes
2answers
9k views

Resizing fat32 partition in command line without losing data

I am trying to resize a fat 32 partition in my linux machine. Following are the specs of the system. This is not a PC hence UI based tools are not applicable. This memory partition which I am trying ...
2
votes
1answer
957 views

Different print reports between fdisk and parted

long time Linux user, but can't find an answer to this. The makers of parted/gparted completely ignored my question. Some time back in slackware, I'd formatted a 2TB with two ext2 partitions, but ...
0
votes
0answers
366 views

USB HD does not show up in dev/

2TB USB drive does not show up at dev/ when I plug in. All other questions and answers seem to assume that the device is visible to these type of commands: lsblk, lshw, lsusb, parted, gparted, fdisk. ...
0
votes
0answers
38 views

External HDD shows up as two separate HDDs in Disk Utility after executing parted

Good day to all, as I mention in my title, the external HDD shows up as two separate HDDs (..kind of) in Disk Utility after executing the following command: sudo parted -l In particular, once I ...
2
votes
2answers
4k views

How to setup a 6TB HD on Ubuntu

I just bought a 6TB HD from WD and I cannot make bigger partitions than 2TB. I looked up in some tutorials like this one, but I still have the problem that fdisk, parted and lsblk display that there ...
1
vote
0answers
124 views

Problem formating 2TB HDD

I'm trying to create a 2TB partition on a WD Blue HDD (WD20EZRZ), I believe the issue is that the partition table isn't being written to the drive because after I use parted and print I see Error: /...
0
votes
2answers
8k views

How to delete the bootable flag of a partition

I can add a bootable flag with the a command of fdisk. How to do the reverse: remove the bootable flag of a partition?
1
vote
0answers
639 views

How to add unallocated space to root partition?

I need to add unallocated space to my root ext4 partition where my Ubuntu 14.04 is installed. I've read dozens of tutorials and couldn't find the one working for me. Most of the tutorials include ...
0
votes
1answer
38 views

Is is possible to format a disk to behave like a CD-R?

Is it possible to configure a partition/disk to have non-removable content like a CD-R? By this I mean I can write on the partition/disk only on empty "parts" The written content cannot be changed ...
1
vote
2answers
92 views

Why does installing `parted` try and install nginx?

My parted install seems to fail with a dependency on nginx. $ sudo apt-get install parted Reading package lists... Done Building dependency tree Reading state information... Done The ...
1
vote
0answers
1k views

Parted: Wrong disk size reported on new 3TB hard drive

I have a brand new WD Blue 3TB HDD (WD30EZRZ). After having fiddled with it too much (trying to initialize it to GPT on Windows with various system freezes because of whatever reason, etc) ... I ...
0
votes
0answers
43 views

check option in parted command line unavailable after unmount

I have an external hard drive 1 TB that won't open in Windows but will open in linux...attempt to run fsck command after unmounting just outputs: 'fsck from util-linux 2.25.2' gparted gui hangs on ...
0
votes
1answer
3k views

how to grow the disk size parted?

I have a big doubt regarding how works parted, let me explain I have two machines machine with hard drive 60GB machine with hard drive 120GB In the machine 1 I set up an Ubuntu image with the ...
0
votes
1answer
214 views

Unable to resume terminal--vg-root!

Well, today I was trying to expand my root partition with parted. I wanted to expand it from 100G to 200G. But I fatfingured it and my system crashed. On rebooting it gave me the error: unable to ...
2
votes
0answers
593 views

GPT ext4 partition recovery - invalid backup header

When I run from a LiveCD to try to recover a non-booting system, I run gdisk /dev/sda and get Caution: invalid backup GPT header, but valid main header; regenerating backup header from main header. ...
0
votes
1answer
2k views

Ubuntu Linux Parted Error: Input/output error during write on /dev/sde

I have created and attached an disk to VMware VM and trying to create a partition on the disk using parted Utility.but got the errors Input/output error during write on /dev/sde.If we do the fdisk -l ,...
1
vote
1answer
4k views

fdisk not showing partition, parted does

I just noticed when doing a fdisk -l /dev/sdl that my partition is not shown: Disk /dev/sdl: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (...
1
vote
1answer
2k views

Wrong partition sizes (I think?)

I know just enough about Linux to mess things up, so apologies in advance. I have tried looking at some of the other threads here similar to this, but none of the answers seem to help. I have a 4TB ...