Questions tagged [fdisk]

fdisk was a command-line disk partitioning tool in Linux and old versions of Windows/MS-DOS. It is deprecated on Linux by its inability to handle GPT disks. New systems should use diskpart (Windows) or parted (Linux) to partition disks.

fdisk was a command-line disk partitioning tool in Linux and old versions of Windows/MS-DOS. It is deprecated on Linux by its inability to handle GPT disks. New systems should use diskpart (Windows) or parted (Linux) to partition disks.

157 questions
0
votes
1 answer

Have I created and mounted this raid array correctly?

So I am working out how to add a new raid1 array to our server as we have a raid1 array which is almost full. I have replicated our server setup in a virtual machine and attempted to add a raid array but I want to check I have done everything…
0
votes
1 answer

Add a new hard drive to extend /home partition in CentOS 7

I have a new hard drive on my server ( a 2 TB drive ) . I want to add this 2 TB to my current /home partition . The output of df -h [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 193G 982M 182G 1%…
matinrazavi
  • 1
  • 1
  • 1
0
votes
0 answers

script running non interactive fdisk does not work from cron

When I run the following script from command line I get the full output in /tmp/Fdisk.sh. But if I run the same script from cron I get only partial output. Is the shell skipping some instruction when run from cron? My Shell…
RaAmir
  • 11
  • 4
0
votes
0 answers

unable to mount RAID 1 removed disk

I have removed two disk(sda1 & sdb1) from soft RAID1 array. mdadm --stop /dev/md0 mdadm --remove /dev/md0 mdadm --zero-superblock /dev/sda1 mdadm --zero-superblock /dev/sdb1 Output of mdadm --examine /dev/sdb1 root@rescue:~# /mnt # mdadm…
Ram
  • 179
  • 1
  • 2
  • 8
0
votes
1 answer

fdisk - list all hard drives more simply

Is there a neater way to list hard drives with fdisk? If I run fdisk -l I get the Disk, Units, Sector size, I/O size, etc - all distracting stuff. I can run fdisk -l | grep "Disk /" but this seems a bit of a hack. Is there a better…
Snowcrash
  • 1,137
  • 2
  • 17
  • 19
0
votes
2 answers

impossible to format an internal disk

I can't format a bunch of internal disks that I have bought in second hand from a datacenter. The disks were formatted in NTFS, this is 3 2TB seagate constellation ES +2 1TB seagate constellation ES + 1 WDC RE3 1TB. I have done a new partition…
vigilian
  • 422
  • 2
  • 4
  • 12
0
votes
2 answers

4 TB external disk on Centos 5

I have an old server running CentOS 5(Kernel 2.6.18-92.el5). It is running a legacy application so I can't retire it yet. I had connected a 2 TB USB disk to it to take backups and the disk is almost full right now. I bought a new 4 TB disk but the…
Debianuser
  • 421
  • 4
  • 12
  • 29
0
votes
1 answer

Extending an existing LVM partition with fdisk

I am looking for some help on expanding my LVM partitions. I have two disks I want to expand (10GB to 50GB and 40GB to 150GB). I added the extra space in VMWare and the expanded disk is being picked up. root@server:/home/admin# lvs LV …
0
votes
2 answers

How to unlist partitions from fdisk command in linux

While working on one of my server I noticed that there are no partitions listed under "fdisk -l" command. However the machine is working just fine. Wanted to know following things if anyone can help. I executed the command using root account. 1.…
monk
  • 109
  • 2
0
votes
1 answer

How do I add storage to a VM so that the added storage is dedicated to a new directory?

I have an Ubuntu server with virt-manager. I have an Ubuntu VM running on this host from a qcow2 file. I don't use separate disk files or img files besides the qcow2 file. I want to allocate 50 GB of new storage space to the VM. On the VM, df -h…
Catbird55
  • 163
  • 1
  • 1
  • 6
0
votes
1 answer

Why third partition of /dev/sda is shown as /dev/sdb instead of /dev/sda3?

I have two 3 TB disks in hardware RAID-1 (mirroring), controller DELL PERC H310 (it is a Dell PowerEdge R420 server). I have three partitions on the same disk. df and fdisk commands shows the third partition as /dev/sdb instead of /dev/sda3. I…
Marco Marsala
  • 471
  • 3
  • 7
  • 14
0
votes
1 answer

FreeBSD10 resize virtual server image to smaller partition

I have a VPS on the new Vultr system and I am noticing that they do not have pv-grub ready and available which makes my dilemma even more interesting. I have a 40gig image I need to migrate to a 15 gig partition. Normally just reboot into rescue…
nix
  • 145
  • 4
0
votes
2 answers

Scripted partition creation

I need to routinely do these steps on various machines that have the same hardware: delete any partitions on /dev/sda create a 100G primary partition on /dev/sda change partition type of created partition to linux raid auto (type fd) write the…
Jarmund
  • 535
  • 2
  • 6
  • 17
0
votes
2 answers

Ubuntu: How to find unallocated partition/free space?

I've a legacy dedicated server with Ubuntu onboard (console mode only). Based on docs (prices etc.) I see that server must have 250+ GB, but I see significantly less: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/md1 …
FoxyBOA
  • 417
  • 1
  • 6
  • 12
0
votes
2 answers

how to mount additional space to existing partition?

This is the original output of fdisk -l: Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1…
User
  • 277
  • 1
  • 3
  • 9