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)

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
1k 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 ...
14
votes
3answers
17k 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
681 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
5k 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
544 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
948 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
16k 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
872 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
4k 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
593 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).
11
votes
9answers
20k 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
487 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 ...
2
votes
3answers
12k views

How to change mount points

I'm not very deep into this mounting/unmouting think on Linux, so here goes my question: With df -h I get the following overview: Filesystem Size Used Avail Use% Mounted on /dev/sda1 ...
2
votes
2answers
5k views

How do I create a separate partition for my /home directory?

I was reading http://docs.fedoraproject.org/en-US/Fedora/14/html/Installation_Guide/s1-diskpartitioning-x86.html, but it's not clear to me what this means. What's an LVM Volume Group versus a Hard ...
2
votes
0answers
885 views

partitions problem with Debian Squeeze and Windows 7 (Partition 1 does not end on cylinder boundary)

I have just installed Debian Squeeze in a hard disk where also Windows 7 is installed. Now, if I run cfdisk, I get the following message: "FATAL ERROR: Bad primary partition 3: Partition ends in the ...
11
votes
1answer
811 views

What is the difference between “extended” partition and “logical” partition

What is the difference between "extended" partitions and "logical" partitions on my hard disk? What's the need for each? I am using Linux
2
votes
2answers
335 views

Linux installation on an extended drive related

I just want to install another version of same distro linux into the extended partition, i. e. into the /dev/sda7. Does it make any problem into current Linux and its data and contents? If no, I ...
3
votes
5answers
2k views

How to check accurately the remaining disk space on a partition?

I have my /home partition formatted as ext3. Occassionally, some program that is part of GNOME is giving notifications about there only being 700mb of space left. Nautilius tells me I have 5.6GB. Disk ...
2
votes
5answers
4k views

How do I resize a partition in Ubuntu linux without losing data?

I ran out of space in my on the drive only to find that there was another unformatted partition in the system that is available. I now want to resize the current partition to take in the empty ...
2
votes
2answers
999 views

Is there a GUI alternative to GParted?

GParted 0.7.0 is less than ideal, so am looking for something else. Is there a credible alternative? [update] The two issues I was having had nothing to do with GParted.
0
votes
1answer
294 views

Keeping multiple root directories in a single partition

I'm working out a partition scheme for a new install. I'd like to keep the root filesystem fairly small and static, so that I can use LVM snapshots to do backups without having to allocate a ton of ...
3
votes
3answers
621 views

Prevent non-root user from formatting a partition

Few days back I mistakenly formatted a partition on my external hard drive by clicking Format from the Context menu in Computer. I want to know that how can I prevent non-root user from being able to ...
4
votes
4answers
5k views

Partition manager that can handle LVM?

I have been looking but neither Gparted nor KDE Partition Manager can handle LVM. Working with the command line is probably fine but it would be clearer to have a GUI tool here. Does such thing exist? ...
36
votes
6answers
15k views

Different linux distros sharing the same /home folder?

What is the best way to share the same /home directories between different linux distribution? I mean, I want to have both, say, Fedora and Arch, and I want to find my files at home no matter which ...
2
votes
2answers
929 views

Errors from cfdisk with new external USB backup drive

I've picked up an HP SimpleSave sd500a backup drive. This is a 2.5", 500GB drive. It has a mysterious CD-like partition, but otherwise seems to contain a WD Scorpio Blue disk. It seems that the ...
3
votes
4answers
3k views

What's the limit on the no. of partitions I can have?

I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it? Update : If there is a limit to the number of partitions, why is that the ...
23
votes
3answers
6k views

Are there any side effects when two distros share a swap partition?

In order to save disk space, I want to have two OS installations share a single swap partition (a dual-boot). Is this a good idea?
2
votes
1answer
646 views

Tri-booting Windows, Ubuntu, and SUSE

I have just bought a new laptop (Packard Bell EasyNote TM 87) which has Windows 7 preinstalled. There are already two partitions labelled PQSERVICE, SYSTEM RESERVED and Packard Bell C:. I cannot ...
1
vote
1answer
613 views

Arch Linux installation- partitions help

While trying to set up partition from Arch Linux installation CD(using cfdisk) itself the following error showed up- Bad primary partition 2: partition ends in final partial cylinder How do I ...
9
votes
1answer
10k views

How to (safely) move /tmp to a different volume?

Today the /tmp directory filled up on a machine at work. The problem was, it was on the root partition which wasn't very big. In order to fix this, a co-worker created a /new/tmp directory elsewhere, ...
5
votes
1answer
349 views

Is there a BSD operating system that can be booted off a logical drive partition?

From several BSD operating systems' documentation, there is a requirement for it to be booted off a primary partition. Is there any BSD that can be booted off a logical partition in some indirect ...
3
votes
1answer
362 views

Problems moving home partition

I was running low in disk space on my Linux box, Ubuntu 10.10 Desktop, (specifically on my /home partition) so I added another disk to it and I am trying to move the home partition into it. I am ...
3
votes
2answers
1k views

How to create a new partition on a hard disk?

How do I create a new partition on a hard disk, from the terminal? I've been reading the man pages for fdisk and mkfs, but they're confusing. I need to know how to create a new partition on a blank ...
2
votes
1answer
98 views

renaming a fat16 volume

What's the easiest way to rename (change the volume label of) a fat16 volume (e.g. on a USB drive) from linux? It seems like mlabel from the mtools package is meant to do this, but the documentation ...
9
votes
1answer
3k views

How does partprobe work?

I was looking for a way to refresh the scsi bus (or any other bus, for that matter) that would allow my kernel ( 2.6.18-194-el5 on CentOS 5.5) to know about the partitions on a drive, and I couldn't ...
1
vote
3answers
181 views

back-up database in Linux partition from windows partition!

Hello I am in a very embarrassing situation, I was trying to upgrade to ubuntu 10.04 from ubuntu 9.10 yesterday and while updating I forgot to put my laptop on charger and the battery ran out. Since ...
5
votes
6answers
249 views

What's the best tool chain or single tool to transform a NTFS to ext[n] filesystem?

I've decided to go Linux only, finally! This also means that I have a bunch of disks still under NTFS. I don't have spare space anywhere to transfer the files to and then just re-format the drive so ...
0
votes
2answers
514 views

Meaning of hard disk drive software partitions? [closed]

I would like to know What is the exact meaning of primary partitions? Why it is named so? and why it is restricted to 4? What is meant by extended partitions? Why it is named so? and what is the ...
4
votes
3answers
4k views

Hard drive/device partition naming convention in Linux

What is the hard disk drive/device partition naming convention in Linux? For example, [hd0,0], sd0, etc. What does it actually mean? What is the significance of this when i need to install multiple ...
4
votes
1answer
362 views

Preseeding Ubuntu 10.04

I need to preseed a dual boot installation of Ubuntu 10.04. I want partman to use all already existing Linux partitions and all free space (like the option when installing Fedora) what would that ...
5
votes
2answers
5k views

Finding the sector size of a partition

I answered this question, assuming that the *.img file had a sector size of 512. How do I query a device, or the image of a device, to find the correct sector size?
3
votes
2answers
317 views

Change main partition size to install another distribution

I have CentOS 5.5 installed, I have no un-partitioned space and the only ext3 partition I have is huge with lots of free space. Can I change that partition size in order to allocate another one? I ...
6
votes
3answers
1k views

Primary vs Logical partition

I know that you can only have 4 primary partitions on a hard drive. But if you're using less than 4, is there a benefit/penalty for using logical partitions?
8
votes
1answer
463 views

Can I convert an ext3 partition into ext4 without formatting?

my home directory is on a separate partition which still uses ext3. Is there a way to convert this partition into ext4 in a non-destructive way?