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.

learn more… | top users | synonyms (1)

4
votes
1answer
12k views

mount: wrong fs type, bad option, bad superblock on /dev/sdb on CentOS 6.0

Somehow my partition on /dev/sdb has gotten all buggered up. This hard drive contains a lot of data that I need to recover and haven't been able to backup yet. When I attempt to mount it: # mount -t ...
3
votes
1answer
1k views

Ubuntu 11.04 and large external drives

I have a Hitachi USB external 3 terabyte drive attached to a Dell Precision T1500. When connected to the computer running Ubuntu 11.04 (2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 ...
1
vote
2answers
110 views

Which root paths should reside on fast media?

Which paths under / should be mounted on fast media, and which can be mounted on slower media without significantly affecting system performance? My guess: Fast Partition: swap (2G) Partition: ...
0
votes
1answer
311 views

Formatting secondary hard drive that has windows on it

I recently installed an setup an Ubuntu Server machine. It has two drives in it and the other drive has windows installed on it. (I didn't want to overwrite the windows installation until I had my ...
2
votes
1answer
565 views

Equivalent to “copies=2” feature of ZFS in Linux with LVM

I have a laptop with only one HDD and is impossible add other HDD. The feature "copies=2" of ZFS is the perfect solution for to add redundancy to my /home in the laptop. I would like emulate the ...
2
votes
2answers
518 views

Does mkswap check that a partition is a swap partition before formatting it?

I checked the man page for mkswap and was left confused whether mkswap tests whether a partition is of type 82 before formatting it. Background: I am using Ubuntu 11.04, and I had just set up my swap ...
3
votes
1answer
2k views

How to enable (format) a disk in SunOS then add it to a DiskGroup?

SERVER # vxdisk list DEVICE TYPE DISK GROUP STATUS c1t0d0s2 auto:none - - online invalid c1t1d0s2 auto:none - - ...
5
votes
2answers
851 views

How can I diagnose and repair missing drive space?

I have a small ext3 / partition on a 2T drive which appears to have a discrepancy in its free space. How can I determine what is causing it and how it can be fixed. After trying everything I could ...
4
votes
1answer
855 views

What happens to partition labels after removing a partition?

What will happen to all the remaining partition labels if I remove a single partition? For example if I have a layout that looks like this: /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 and if ...
2
votes
1answer
373 views

LVM tools on raw block copy

I have several raw block copies of disks that have both NTFS and Linux partitions. The parition tables generally have both a Windows NTFS partition and a Linux LVM partition. I need to work on all of ...
8
votes
1answer
3k views

How can I quickly copy a GPT partition scheme from one hard drive to another?

On a non GPT partition table I can do sfdisk -d /dev/sda | sfdisk /dev/sdb But sfdisk doesn't support GPT partition tables. What can I use instead? I'm looking for a one or two command solution, ...
4
votes
1answer
170 views

Does GRUB consider partition order when looking for config files?

I have a HD which has 3 partitions, in the following order: NTFS FAT32 FAT32 (very small) I want to install GRUB into the MBR of the HD, and place the config files (menu.lst, etc.) into the 3rd ...
5
votes
6answers
10k views

Change the number of the partition from sda1 to sda2

I have a disk with two partitions: sda1 and sda2. I would like change the number of sda1 to sda2 and sda2 to sda1. It's possible but I don't remember the procedure. i.e. My first partition will be ...
3
votes
1answer
2k views

LVM2 partition alignment

How to do the following with Linux tools : LVM partition alignment and alignment of partition on LVM ? What in case where I want to setup LVM partition (for "pv") and then partitions ? To be more ...
7
votes
3answers
1k views

Why do we need to specify partition type in fdisk and later again in mkfs?

I'm a little confused about fdisk and mkfs. So - here is typical USB flash drive partitioning and formatting: umount /dev/sdb fdisk fdisk /dev/sdb Command (m for help): d Selected partition 1 ...
3
votes
2answers
1k views

Is there a way to install Arch Linux without any installation media?

I want to install Arch Linux on my laptop machine. I have created a 20GB partition to (dev/sda5) to be used as Arch Linux root partition. I tried installing using a usb thumbdrive (I don't have a cd ...
3
votes
3answers
2k views

How to repartition pendrive again?

My 8GB pendrive originally contained only a FAT partition, but I tried to install OpenSUSE 11.4 on it. I created a 200MB partition for /boot and the rest was for the root partition. Despite the ...
2
votes
1answer
383 views

How to allocate more space alongside Windows

I installed Ubuntu on an old laptop, alongside WinXP. Now I'm trying to download some updates and it says that I don't have enough free disk space - I need to free some more space on "/". Since ...
2
votes
1answer
403 views

How to modify a partitioning layout (which may involve converting a primary partition to an extended one)

I am having trouble thinking through how I can achieve my partitioning goals. Now my partitions are: sda1 (winA) (primary) sda2 (winB) (primary) sda3 (/ for linux) (primary) What I want to ...
3
votes
1answer
744 views

Is the crazy partition layout in Fedora 15 really nessesary?

As I'm installing Fedora 15 on another computer I'm really starting to question the crazy partition layout. On this computer there's an existing Windows 7 installation, so I'm cramming Fedora right ...
4
votes
2answers
2k views

Can I split /boot to a different partition on a single partition system?

I have set up my system, configured it and everything, using only one partition for / (ext4). So no separate home, boot, swap etc. So the question is: Is there a way to go from this configuration ...
1
vote
2answers
3k views

Installing debian on existing ubuntu - will /home folder be removed?

I want to install Debian with LXDE on partition, that already have Ubuntu 11.04 installed. I have a lot of music there, and I don't want copy it to another partition. I know that Debian installer will ...
3
votes
1answer
1k views

Paritioning Scheme: Arch Linux server & laptop

What would be a good partitioning scheme for an Arch Linux installation, on a server and on a laptop? My current basic scheme: / [root] ext4 /home ext4 swap I know ...
1
vote
2answers
265 views

Can I create a new partition from the free space inside my reiserfs-formatted /home partition?

Ok, I have Ubuntu installed but I want to install Windows also (dual-boot). Problem is, I don't have a free partition. I have my root partition (15 GB), and my /home partition (300 GB). The home ...
3
votes
2answers
16k views

How to format a write protected pen drive in Linux?

How can I format the write protected pendrive?
2
votes
2answers
3k 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. ...
4
votes
1answer
6k views

How do I check how much free space left on a device to create a partition

Let's say I have this virtual machine running: [root@centos ~]# fdisk -ul Disk /dev/sda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors Units = sectors ...
5
votes
2answers
208 views

Ignorantly dd'd /dev/sda*

I was trying to write an iso to a flash drive. I mistakenly thought that all /dev/sda* are flash drives attached to the system. I wasn't sure how to figure out which was which, so I just unplugged my ...
3
votes
1answer
167 views

How can I fix a partition conflict?

I am running Ubuntu 10.10 on a 250 gb hdd. I chose at installation to install all on one partition (it was recommended for beginners). Unfortunately, I need to use Windows 7 too. I didn't want to ...
4
votes
5answers
1k views

Debian 6 - Disk partitioning too long

I just got a new pc that comes with an empty 250GB 3G SATA Non-Hot Plug 7,200rpm HDD. I decided to install Debian 6 from a USB, I chose the partition to be Guided - use entire disk and set up ...
3
votes
2answers
2k views

How to resize an IMG file's partition info?

I made an ISO this way: sudo partimage save /dev/sdc1 /media/56AE8240AE82191F/Backup/xfcefat.iso The resulting iso file is very small but when mounted I see that it has correctly preserved the ...
12
votes
4answers
3k views

The merits of a partitionless filesystem

I ran into something a couple of weeks ago that I'd never seen before: A filesystem (ext3 I believe) installed to a storage device without a partition. In essence /dev/sdb was the entire filesystem. I ...
12
votes
4answers
3k views

Wipe last 1MB of a Hard drive

Is there an easy command that I can use to zero out the last 1MB of a hard drive? For the start of the drive I would dd if=/dev/zero of=/dev/sdx bs=1M count=1. The seek option for dd looks ...
3
votes
3answers
2k views

Adding an unused partition to a linux filesystem

I am running kubuntu 11.04. I installed it in a dual-boot scenario on a single drive, with Windows XP installed first. The XP installation is fubar so I now would like to use the space in kubuntu. I ...
1
vote
3answers
2k views

How to partition my hard-drive to be used for dual OS?

I'm using HP G42 laptop with 320GB hard-drive and 4 GB memory. I'm pretty sure that, it can be used for dual OS(Windows 7 & fedora) Currently, I'm using only Windows 7, but, I need to install ...
22
votes
3answers
23k views

How to copy the partition layout of a whole disk using standard tools

I want to take a backup of the whole partition layout of a hard drive, including logical drives, so that I can restore that layout to another disk. I do not want to copy the contents of the ...
2
votes
2answers
721 views

How to decide on a partitioning scheme?

I am changing my current partition scheme (personal development laptop, dual boot) to remove the Windows partition and leave only my Slackware64 instance. What thought should go into my partitioning? ...
22
votes
2answers
6k views

What mount points exist on a typical Linux system?

I have 2 questions. During Linux installation we specify memory space for 2 mount points - root and swap. Are there any other mount points created without the users notice? Is this statement ...
2
votes
1answer
595 views

Creating a new partition in empty space between 2 existing ext4 partitions

Output of fdisk -l: Disk /dev/sda: 640.1 GB, 640135028736 bytes 255 heads, 63 sectors/track, 77825 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes ...
4
votes
2answers
1k views

Migration from loop-aes to cryptsetup

I've upgraded my linux installation to kernel 2.6.38-2 (Debian testing). With the new kernel, loop-aes does not compile, so I cannot mount my encrypted volumes. I heared that it is possible to use ...
2
votes
2answers
103 views

mounting on boot - how to edit

How does linux know which partition should be mounted at which directory? Where is this info stored?
5
votes
1answer
18k views

How do I create new partitions and format my hard drive in parted?

I'm somewhat new to working with commandline tools when dealing with partitioning, so you'll have to excuse my newness. I'm basically trying to create a new logical partition on /dev/sdb and would ...
2
votes
1answer
911 views

Dual boot debian/Win XP - hidden partitions and primary partition limit

I decided it's (finally) time to make my eee a debian/WinXP dual boot. I have Windows already installed and chose to sacrifice most of an existing data partition for debian. Here's how the partitions ...
3
votes
3answers
1k views

How much disk space should be allocated for FreeBSD?

I have a Samsung N150 netbook with 160 GB hard disk. I want to install FreeBSD OS. There will be no other OSs, no dual booting or like that, just FreeBSD. So the manual says to have a separate ...
4
votes
4answers
5k views

Why are partion size and df output different?

I have a partition /dev/sda1. Disk utility shows, it has capacity of 154 GB. df -h shows Filesystem Size Used Avail Use% Mounted on /dev/sda1 123G 104G 14G 89% / devtmpfs ...
3
votes
4answers
1k views

How to get size of a block special file?

I need to be able to determine the size of a block special file. For example, given /dev/sda, I need a command that will provide the size of the device. (By size I mean capacity, since this is a ...
1
vote
3answers
666 views

I am failing to delete a partition on a USB drive/stick

I got a partition that is probably created by dd, and is about 200MB on a 4GB USB stick. I am failing to delete it using GParted (the option is greyed on the right-click menu).
15
votes
10answers
26k views

List partition labels from the command line

Is there a command that will list all partitions along with their labels? sudo fdisk -l and sudo parted -l don't show labels by default. EDIT: (as per comment below) I'm talking about ext2 labels - ...
2
votes
1answer
523 views

Creating an extended partition

I'm trying to create an extended partition. In GParted, I shrunk the size of the existing partition and now want to create a new EXTENDED partition in the free, unallocated space. GParted only lets me ...
4
votes
1answer
1k views

Reading a filesystem from a whole disk image

I ran these commands: VBoxManage clonehd d6b9f0a5-98df-48ca-83c8-91a0809ec349 --format RAW Debian.raw sudo dd if=~/.VirtualBox/HardDisks/Debian.raw of=/dev/sda5 When I try to mount the partition, I ...