Hardware :: Use Fdisk To Create Partition?
Aug 20, 2009
i have one harddisk /dev/sda it is partitioned as below:
/dev/sda1: /
/dev/sda2: swap
after the centos is installed, i want to create another partition /dev/sda3 to use all remaining disk space. i used fdisk. after fdisk, it requires reboot. The partition table has been altered! Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks.is reboot really necessary? is there any other tools which do not need to reboot?
View 1 Replies
ADVERTISEMENT
May 6, 2011
I recently expanded the RAID on an iSCSI device which is shared out to a linux server. Fdisk correctly sees the new size but it won't let me add a third partition. It complains about overlapping partitions whenever I try to add it.If I 'remove' the partition, the overlapping error goes away. The interesting thing here is that when attempting to use the default sizes to setup the partition the printed screen shows completely different results (which I can understand is why its complaining about overlapping)
I'm not sure why its not accepting the cylinder sizes I want. Anyone have any ideas as to what's wrong here?
View 9 Replies
View Related
Jul 18, 2011
I just installed ubuntu via the windows executable and I couldn't mount my NTFS partition. I found this a little odd and I checked fdisk and it seems to think I don't have an ext4 partition as my entire internal HD is displayed as NTFS.
Here's the fdisk output:
When i try to mount the NTFS partition /dev/sda2 i get the following output:
I can't make heads or tails out of this. Anyone know what's going on here?
Windows recognizes that 30GB were taken from the NTFS partition for my linux install. It reads the max partition size as 465GB. fstab reports the NTFS partition size as 488GB.
View 2 Replies
View Related
Jul 2, 2011
i had installed fedora 14 into my new hardisk(1500gb) as new server the problem is how can i use the fdisk to partition the hardisk into two partition.
View 10 Replies
View Related
Aug 4, 2011
I wonder whether to place swap partition on LVM or on standard fdisk partition which will not be in LVM.What is better and more often used on production ?
View 4 Replies
View Related
Jul 17, 2010
After reading Markus Ewald blogpost on http:[url]...n-ssd-on-linux about Aligning an SSD on Linux I decided to give it a try.I have bought two 80 GB Intel X25-M SSD for my home server. The plan is to install Ubuntu 10.04 64-bit server and use the SSDs as system discs and vmware data storage using software raid for redundancy.After reading the blog post I am not sure how to make all my partitions aligned and set up on EBS (Erase Boundary Size)I am planning for four partitions:Boot, size 1GB
Root, size 25GB
Swap, size 4GB
Data storage for vmware server, size 40GB
According to Markus Ewald I should use 32 heads and 32 sectors.Using the live CD, I started using fdisk -S 32 -H 32 /dev/sda.Fdisk can create partitions using cylinders or sectors, and now I ran into trouble.
First partition /boot must start on cylinder 2 (or sector 1024). Size is 1 GB and the following partition should be aligned and start on a new EBS block. How do I do this with fdisk?Should the next partition start on a new cylinder? Otherwise, after formatting, fdisk gives a warning that the partition is not aligned to the cylinder size? The overall question is how to format four aligned partitions which all are aligned with Intels X25-M EBS. EBS for Intel X25-M is either 128KB or 512KB (Have not found a confirmed value yet)
View 1 Replies
View Related
Jul 20, 2011
I have edited my hard disk partition using gparted which created 50GB of free space. I edited my /home which is primary and hence it can not partitioned it. Now, I am trying to create and mount the free space (using fdisk) but the free space is not showing in df or fdisk. can you plz tell me how to create a partition using the free space?
my df and fdisk is as follows:
Code:
# fdisk -l
Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
[code].....
View 4 Replies
View Related
Jul 17, 2009
I have a Windows Vista machine on which I selected "utilize free space on selected drives" to install Fedora 9 temporarily. Now, however, I'd like to remove the Fedora installation. I've tried using fdisk from the Fedora 9 rescue mode on the install DVD, but I seemed to merely mess up the cylinder boundaries. When I boot from the DVD, before entering rescue mode it says that /dev/sda contains a looped partition, and asks whether I want to reformat it (completely removing everything on the drive).
How do I remove the "looped" Linux partitions? (I cannot login to Windows, so any GUI applications won't be any help.)
View 4 Replies
View Related
Jul 19, 2010
I would like to remove/create partitions on a harddrive without going into the menu of fdisk.
can one pass options to fdisk to create and delete without going into the menu? So that I can write a script to do that automatically.
Or if fdisk isn't capable, what other alternatives do I have?
View 5 Replies
View Related
Jan 28, 2011
what I did was: - have NTFS (450GB + 4GB linux-swap + 44GB ext3 with ubuntu 10.10 upgraded from ubuntu 10.4). Ntfs partition contains data only, no windows.
- either with partition magic or paragon I tried to resize the NTFS and since then parted doesn't like my partitions anymore, but Ubuntu boots and works just fine..
- I took the output from fdisk -l and decided to remove the swap partition - ubuntu won't boot saying it needs the swap (although it was never mounted and i deleted the swap while ubuntu was active)
I have the following output from fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[Code].....
**NOTE: Since the partitions are not on cylinder boundaries, using parted to recreate the partition table may not be good enough.. I don't have a backup of the partition table.
View 4 Replies
View Related
Mar 27, 2009
OS= Fedora 10
I have a secondary 250GB disk of which I created a 50G partition on to try and set-up an LFS system. I finished with the LFS system and now I want to destroy the partition and reclaim all of the 250GB. So i simply ran fdisk /dev/sdb and deleted the 2 Linux partitions ( one 83 and one swap). I then created a new partition as primary partition #1. fdisk appears to see the entire disk....I'm able to start at cylinder 1 and end at 30401 which is 250GB, however when i mount the partition it's shows as only 50G.....What the hell is going on here???
View 4 Replies
View Related
Apr 27, 2010
had trouble viewing partition table using fdisk, now realised i just cudnt view the whole table from Rescue terminal, please remove this thread, i can't find how ))
View 1 Replies
View Related
Dec 9, 2010
I have a physical drive of about 40GB, I want to create a partition of 10GB with FDISK on this drive.
View 2 Replies
View Related
Oct 8, 2010
Mis-allocated 10g instead of 30g to /var/lib/mysql and realized mistake After Fresh Install and upgraded all servers. Using Slackware13.1, Xfce did some googling wondering if its possible to resize the above partition with fdisk. Read some things about gparted and wonder if it will work using Xfce.. i've never use kde or gnome. There is also mention of using live cd; I have no experience with any of the mentioned tools; just fdisk to partition and install. What is the best or simplest way to backup & restore; (I do have an empty sdb 160g but don't want to get into complicated raid or LVM setups right now because I still have to learn howto backup & restore do data to the point where I feel comfortable with it)?
Current setup: sda 160gb Hdd used 73.5 for following partitions: sda1 512m /boot; sda2 Extended Rest of Hdd; sda5 1280m /swap; sda6 8g /home; sda7 2g /; sda8 8g /usr; sda9 8g /usr/local; sda10 10g /var; sda11 10g /var/log; *sda12 10g instead of 30g /var/lib/mysql; sda13 10g /opt; sda14 5g /tmp Haven't configure mysql... so /dev/sda12 is empty except for system disk data the same goes for /dev/sda13 /opt & /dev/sda14 /tmp
View 14 Replies
View Related
Apr 24, 2010
I had a 500gb hard drive that I wanted to use on my Ubuntu system as a media storage drive. The drive originally had two partitions on it,one was a Dell Recovery partition and the other was a Windows Vista partition. Using the Palimpsest Drive Utility that comes with Ubuntu, I deleted both partitions,created a Ext3 partition using 100% of the space and copied my data to the drive. After I finally got fstab to load the drive, I found another problem. First of all, when Grub loads, two options it offers are:
Windows Vista (loader) on sdc1
Windows Vista (loader) on sdc3
Aside from that, 100% of the drive is not being used by the Ext3 partition.It is showing 434.6gb available on the drive. Fdisk is not showing any other partitions on this drive, so A) why are the Windows loader options showing up under Grub and B) why do I not have 500gb available?Here is a copy of the output fdisk -l:
Code:
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes[code]....
View 5 Replies
View Related
May 7, 2010
I have a 120GB HDD with a 22GB partition for Ubuntu and the rest for Windows XP. Windows finally died on me so I attempted a fresh install on its partition. However, the install threw a ton of errors so I used a LiveCD to re-install Grub and I booted into Ubuntu. I open up the disk utility to re-format the Windows partition so I can re-try re-installing Windows, but immediately I notice that the partitions are not right. If you add up all the partitions, they are about, say, 18 million terabytes over my HDD's 120GB capacity. Ahhh! What do I do?
I don't think anything is terribly altered, since I can still boot into Ubuntu, but I am completely confused and slightly worried that I might kill any chances to save my HDD I can't post a screenshot due to my post count, so the image loses some of its efficacy in making it small enough for an attachment. Here is the output of fdisk -l: Code: omitting empty partition (5)
[Code]...
View 5 Replies
View Related
Dec 28, 2009
After trying without success change from windows to ubuntu (dual-boot unsolved problems), I decided to try slack as I have seen that user to user support for slack is usually best oriented and faster.But I am having some problems in order to install slack because of GPT support. As I know its a bad idea to start to asking for help without speak what I have tried, lets to this first:
At first I tried just to boot from DVD and went through the install using the help inside the disk. It doesn't work because either fdisk and cfdisk that are suggested in help doesn't offer support to GPT.
After that first try i looked to:url
But also it suggest the use of fdisk. However, it suggested too that I could use another partition application and since I have the live cd for ubuntu, I tried to partition from there and use those partitions for installation.
At first I tried to format as ext4, but i discovered that slack still dont offer support to this format (at least the version that I downloaded).So I tried again but this time using ext3 as format to my / and /home and use the swap offered in the application for use as swap (duh!)But every time I try to install using the dvd it doesnt find my partitions with fdisk, only with the parted command I can see my partition table displayed correctly.However, every time I try to run setup it say that it didnt found and linux partition (swap also when i try to target).So this is my dilemma, I cant use fdisk, in the parted manual (url) it only says that it supports ext2 (not mention ext3) and also i dont find any command to use with parted to mark the partition as 82.I ran through this 2 other posts (url), but as I am still waiting for some update there I decided to ask it here hoping to discover that this is an easy problem.
View 11 Replies
View Related
Apr 29, 2009
It seemed that it would be simple enough: take the 'f' option in the expert menu of fdisk to put partitions in order after a gap had been created by a deleted partition and then make corresponding changes in /boot/grub/grub.conf because the root partition was shifted.
Well, it didn't work out that way. No matter what I try, I either see the error 15 at Stage1.5 or the error 28, which is even stranger (file does not fit into memory). All this before I even see a grub menu. It just does not get that far.
Does anyone want to take as stab at guessing what might have happened here and whether I have a chance at recovering without having to reinstall? I can provide concrete data, if anyone would be kind to give it a try. Hoping that this is a known problem and something can be guessed from what I stated here but I can be as specific as needed, just don't want to generate noise if there are no takers.
View 3 Replies
View Related
Sep 18, 2009
I have 3 Ubuntu installations & a PCLINUXOS, plus Windows XP installed on one hard disk. I still can boot to each one of them and can mount each one using Ubuntu.
The problem "may" have occurred when I reduced the size of some linux partitions using gparted. I still have plenty of space in each of those partitions.
When I started gparted all of the HD was unallocated. I did that from each ubuntu installation and the PCLINUX installation, plus LIVECDs. All indicated the space was unallocated.
When I did an fdisk -l from a Puppy Linux LiveCD I got a normal start and ends of each partition.
When I tried it from Ubuntu installation or live cd, I received the following types of responses:
Code:
ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda5
Disk /dev/sda5: 28.5 GB, 28566397440 bytes
255 heads, 63 sectors/track, 3473 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
ubuntu@ubuntu:~$ sudo fdisk -u /dev/sda5
The number of cylinders for this disk is set to 3473.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Plus the Windows partition seems to go over its limits.
Since all of my OS installations are still working, I don't know how critical this is. From reading another post, I understand this might be able to be fixed by making some changes in fstab.
View 2 Replies
View Related
Dec 18, 2010
Since I installed TinyXP on another partition on my PC, I get "omitting empty partition" when I use fdisk -l.
Code:
omitting empty partition (5)
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[Code].....
NOTE: I also searched for the palimpset error and I found a Bug Report there: [URL. I don't know if these informations could help to fix this problem, I think it's related and probably cause by the installation of Windows XP and the way that gparted and palimpset read the partitions.
View 9 Replies
View Related
Oct 28, 2010
When using the gparted option to create a new partition table does this automatically create a new mbr?
View 1 Replies
View Related
Jun 22, 2011
I installed Redhat Enterprise 3 on one of my servers. In my haste I didn't properly partition both Hard Drives and only properly partitioned one of them. Thus now I have
/dev/sdb1 478711768 137858256 316536328 31% /
/dev/sda1 101089 15346 80524 17% /boot
Where /dev/sda1 is actually a 80 GB hard drive. Is there anyway I can safely and easily repartition the unpartitioned space without causing a huge mess? I have a very important Oracle database on /dev/sdb1 and thus I want to be able to back it up on the second disk. I can create a partition on that drive?
View 2 Replies
View Related
Aug 24, 2010
I installed fedora 13 64 bit and it works great but I encountered several issues when setting up guest OS with KVM. The problem seems to be related to selinux. But let me first ask question about logical volume. By Default fedora created logical volumes:
[Code].....
"If you expect that you or other users will store data on the system, create a separate partition for the /home directory within a volume group. With a separate /home partition, you may upgrade or reinstall Fedora without erasing user data files." seems to suggest I have to create a separate physical partition and assign that to /home. But reading elsewhere it seems to suggest logical volume acts like a partition. My goal is to make it easy in case fedora is hosed and I have to re-install it without affecting /home where my cirtical data resides. Given above do I need to create a separate physical partition or I am just fine?
I have a second hard disk that originally had windows and all my data. Windows is hosed but I can see my data from within Fedora and Windows is gone and I created created new partition in its place which used ot be the C:/ drive appears as 53 Gb filesystem. My data which was originally D drive appears as 215 GB filesystem. As given in [URL] I want to create a new logical volume in 53 Gb filesystem which I want to use as space for virtual disk to install guest OS's in KVM. Currrently 53 GB filesystem is mounted as /media/3467BH89JK789 but this does not work well with KVM. how do I create this logical volume out of 53 Gb filesystem partition and add proper selinux info and do I add to vg_vostrolx volume group and in a different volume group?
View 1 Replies
View Related
May 15, 2011
On my Linux system, I want to create a symbolic link to a folder on my Windows 7 partition formatted FAT32. I use:
sudo ln -s /media/OS/Users/dennis/AppData/Roaming/.minecraft ~/.minecraft
However, I end up with a file in my home directory called .minecraft and when I try to access it, I receive:
bash: CD: .minecraft: Too many levels of symbolic links
is there a way to make the symbolic link to the FAT32 folder?
View 2 Replies
View Related
Oct 25, 2010
This is my partition table:
/dev/sda1 1 4255 34178256 83 Linux
/dev/sda2 4256 4437 1461915 5 Extended
/dev/sda3 * 4438 9964 44395627+ 7 HPFS/NTFS
[code]....
View 4 Replies
View Related
Sep 30, 2010
I am trying to install windows 7 on my harddive, I am running ubuntu 10.04 and have windows 7 on DVD.I was until recently also using uberstudent, which I deleted (100 gigs) to make space for windows.However once I get to the windows start up I get a message: setup cannot detect or create a partition for this partition. (not word for word).
View 1 Replies
View Related
Jun 13, 2011
I would like to create Logical partition in Extended partition using fdisk in Fedora 14 I created extended but fail to create logical partition.
View 6 Replies
View Related
Mar 18, 2009
I want to install more than 3 linux distributions on single disk - my test machine.Is it possible to create boot partition on logical partition whitch resides in extended partition (and boot successfuly of course)?
My boot loader lives elswere (primary partition or MBR).
View 13 Replies
View Related
Aug 30, 2010
Below is a print out of my partition Table from Fdisk, in Cylinder mode, Sector mode, and then in expert mode?
Why in expert mode does it look like Partitions 2 and 3 share the same sector / hd / Cylinders? Is this OK?
Code:
View 3 Replies
View Related
Nov 25, 2010
I was having trouble with an old lvm partition so I pulled all the data off and now want to re-partition it as an ordinary ext3 partition.
But gparted offers only Logical Partition for that partition. How do I convert that partition to a Primary or Extended partition - and which do I want?
View 1 Replies
View Related