Software :: Make (c)fdisk Divide A Drive Into Equal Size Partitions?
Feb 11, 2010Anyone have a script, or method, that would allow (c)fdisk to divide a hard drive up into equal size primary partitions?
View 1 RepliesAnyone have a script, or method, that would allow (c)fdisk to divide a hard drive up into equal size primary partitions?
View 1 RepliesI'm trying to install Ubuntu, Windows 7, Meego, and Android x86 for a project. Here is what I have done so far: Partition the drive into 4 primary partitions of equal size (10gb each). Install Windows7, Android, and Meego onto separate partitions, in that order. Then, install Ubuntu, hoping that GRUB automatically detects the other OS's and creates entries for them. Unfortunately, the only entries in GRUB are for Ubuntu and Windows 7. How do I get to the other 2 OS's (Android and Meego) to show up?
View 4 Replies View Relatedhow to Divide Equal Bandwidth between / Among Network Clients? e.g if there is total bandwidth = 10Mbps and only 5 clients are online then bandwidth should be divided evenly i.e each client to 2Mbps and if 20 clients are online then 0.5Mbps to each client automatically. [in windows this can be done by bandwidthcontroller software now how it can be done in linux]
View 3 Replies View RelatedI 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]....
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.
I have a dell poweredge 2950 server which had red hat on it. I have installed ubuntu on top of it. I have replaced master boot record during the installation of ubuntu as I dont want use red hat anymore. During the installation it asked me for the space I wanted to give for Ubuntu and I provided 10GB. Now I can use only 10GB of my harddrive until I mount other partitions correct?
So when I type sudo fdisk -l I get the below printed:
Code:
Disk /dev/sda: 146.2 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
[Code]....
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)
i have a question regarding how data is placed on a media, for example the daily used hdd: when we talk about storage we often speak in heads sectors and cylinders. my question is if heads, sectors and cylinder is the true way data exists on a hdd platter?
lets take for example, disk_x
1000.2gb = 1000204886016 bytes
255 heads, 63 sectors/track 121601 cylinders.
fdisk -H 128 -S 32 /dev/disk_x each cylinder will be shrank to 2097152bytes, number of cylinders will grow to 476934. but everything will be much more aligned and readable or there is something i don't know and i will loose almost half of the total sector count on the hdd cause 63-32=31. i asked the partitioner just to use 32 sectors from each track and only 128 tracks of the cylinder.
or another example, if i have a cluster size of 4k. why not making each track use 56 sectors or 7 clusters. theoretically i have all files in my storage and each one of them occupies 14 clusters isn't it wiser to make it as described. what happens when i invoke fdisk -h -s params? what will be changed, the disc physically and the way it is accessed or only the partition table? you probably asking your self what the hell does this dude wants? i want to get maximum i/outputs and the widest bandwidth and the nicest readble partition tables and to understand better fdisk -H -S.
I have a Pen drive which has been moving info between PC's and MAC. PC now sees and empty drive, also does the MAC.I've tried Testdisk & Photorec w/o success.Is there any way to recover the data?
Gorkon
p.s. fdisk -l results are:
Disk /dev/sdc: 1010 MB, 1010827264 bytes
[code]...
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
I am preparing for RHCE. While doing the lab I renamed /etc/grub/grub.conf as grub1.conf. Now (obviously) system boots on grub> prompt. Can I recover without using a bootable CD? Another problem that I encountered was, while doing lab for fdisk, I used command umount -al. Now, fdisk -l is not listing the partitions but giving a message:- /proc/partitions does not exist. If I reboot the system this is restored.
View 1 Replies View RelatedI was trying to create a partition on my hard drive on Linux using the GParted program. I noticed my hard drive had a key next to its name but could not find information regarding it online. I proceeded to unmount the drive and made 2 partitions. However, it game me an error saying it couldnt make the partitions. I turned my computer off thinking i would get back to trying tomorrow. Today i turn on my laptop and see the usual hp screen. But after that it goes to a black screen with a blinking underscore looking thing. It goes nowhere from there. It usually goes to a black screen after the hp logo, that says GRUB loading.
View 7 Replies View RelatedI 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]...
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?
I used GParted to delete my first partition,then moved my second partition to the beginning of the disk. That all went well, but the partition table still shows an unused entry of 0 blocks listed at partition 1. How do I get rid of that entry and make my old second partition sda1?
View 1 Replies View Relatedwhen I type 'fdisk -l' I get the following:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 16065 584830259 584814195 278.9G f W95 Ext'd (LBA)
/dev/sdb5 16128 584830259 584814132 278.9G 7 HPFS/NTFS/exFAT
I have 2 hard drives both are 278.9GB in a mirror raid 1. Why does 2 partitions show up? Are they referring to each physical hard drive? I want to believe that this is the same partition and not two different physical hard drives since both are in the same 'start' and 'end' range. Is that correct?
I have a remote headless server of which I have an SSH connection to. I have 2 identical usb drives for this fileserver for backup.I have automated cron and rsync running the backups at 2AM each day. Each day the girl in the office removes the drive and plugs in the other one and then takes the backup from the office home each night is case of disaster.
This has all worked fine for a while until a recent update. The server is not mounting any of the usb drives when plugged. I will attach some logs. dmesg is listing the device SDC connecting when it is plugged in. The other two devices SDA and SDB are fixed disks in the server. The following dmesg outputs are from a rebbot. I cannot plug in/out the disk at the moment. The server is remote.
[Code]...
Long time Slack user, thought I would try to update my old laptop (Toshiba Satellite with AMD K6-2 333 MHz, 128 MB RAM, 40 GB hard drive) from 10.2 to 13.37 in celebration of the newest version :-)
By update, I mean a complete wipe and reinstall, just to be clear.
So 10.2 runs well, everything looks shiny (XFCE of course) but when I try to install 13.37 I run into trouble. I figured out to boot with huge.s instead of hugesmp.s, but when I try to run 'setup' I get an error that says I have no partitions. mkay, I try fdisk (or cfdisk), but I get literally NO response - no error, no nothing but a return to the command promt. It is exactly as if fdisk does not recognize there is a hard drive there at all.
I boot back into 10.2,check the BIOS, everything looks fine, I have a drive mounted at /dev/hda1, swap at /dev/hda3. Are there some additional parameters I should be booting with? Does it matter that the hard drive is ATA?
I notice that when you try to Make link to any file or folder form context menu, It just copy the same file size? even when i tried to copy the link to external storage disk..
View 1 Replies View RelatedI would like to triple partition for win7, ubuntu, and all other files-data, music, etc. And I understand this can be easily be done via the disk management feature. Obviously a 2TB HD is huge for me and I probably will never come close to filling it. I will eventually copy all my files from my old pc, but that totals about only 10GB.
My issue is what should be the actual size of the win7 and the ubuntu partitions? How many GB for win7 and how many GB for ubuntu?
I have a question about partition sizes when you are multibooting. I would like to know if 20GB partitions are an acceptable size. Is there anything to worry about with partitions around that size? I am not sure whether it makes sense to break it down further as some people have separate boot and/or home partitions. I guess if they are only 20GB in size, there is not much room left to divide further?
I am also wondering if it's okay to multi-boot four or five distros. Is that too many for a 160GB drive? My plan or idea was to multi-boot four or five distros until I decide which one I use the most or like best (well, best for an old notebook). My only notebook, currently, is a Thinkpad T41. Here are some specs:
Centrino Pentium M 1.6 GHz CPU
ATI Radeon Mobility FireGL 9000 video card (aka RV250) w/ 1440 x 900 LCD res
Intel 2200bg wifi card
Intel ethernet LAN
160GB Samsung IDE/ATA HDD
2GB DDR RAM
Is that sufficient for assessing my hardware specs? I know that the video card is only supported by the open source radeon driver and that the Intel wifi card requires specific firmware before it can work or operate. I am not sure which desktop window manager I should use so I was going to install a distro that has each. LXDE, xfce, Gnome, KDE
[Code]....
I just wiped my HDD and installed Windows XP (35gb Partition) and then Ubuntu 10.10 (75gb Partition ext4) and I want to know if it's possible to make my XP partition a bit smaller, like 20-25 gb, and then add what I take off to the ubuntu partition,because I won't be using xp that much, only for things that I know work on windows only.
View 1 Replies View RelatedI will install Slackware 13.1 on my desktop in 50 GB of disk space but I'm not sure about the proper size for the partitions "/" and "/ usr / local". I want to use most of the space for "/ home" partition, so I can keep my data when I upgrade to a newer version (right?)
View 4 Replies View RelatedMy laptop has a 60GB hard drive, which my ex-husband set up with a 20GB partition for Windows XP and a 40GB partition with Suse 11, which suited me fine at the time. However, I'm now finding that I need to install a whole bunch of extra Windows programs relating to my work, and the 20GB partition is no longer sufficient, while I'm hardly using any space at all under Linux.
how I might go about redistributing the space between the two partitions (any other solutions to my lack of space problem also welcome)? Please bear in mind that I'm pretty clueless when it comes to this kind of thing!
I am having a big /home partition. I need to make it small and create one more partition from it which will be used for some other purpose. Can you tell me please how to do it?
I searched on google and found some methods which were very different from each other.I don't know which one is good, so, I thought I will ask you experts before doing anything.
On my c shell, I use the alias p ls -lt; pwd to speed up things while switching directories and getting their listings.Things could be much easier if I could somehow divide the space I have on my console in two parts such that the prompt is in the lower part and the top part always shows the listing of the current directory (the directory which I am using in the second part).The upper part needs to be dynamic in the sense that whenever I switch directories using the prompt in the lower part, It should give the listing of the current directory in the upper half.
View 3 Replies View RelatedHow to divide hard disk to install suse 11.
How many partition I have to choose
What kind of format;ext2 or ext3
Can the SFQ queue be used to divide bandwidth not only per connections but also per computer? E.g. if two computers download something each computer gets half of the bandwidth. I'm trying to do my own script based on wondershaper and would want to divide the bandwidth between all devices so that one device can't saturate the uplink.
View 2 Replies View RelatedTexts about partitioning with LVM are quite technical.However I should like to find a text explaining me how to manually make LVM-partitions in OpenSuSE. Like which ones, how big, how to do it. I made an auto LVM with /home. Problem is my entire disk is not used (/root was 5GB max /home was only 7GB max on sda2)and I was not able to make the partitions the seize I wanted.
I have now sda1 configured as /home 280GB and sda2 with the proposed partitioning of Yast. So only 5,9 GB for root. It looks like my try-out is working fine, however. Using normal partitioning is not a good option on my PC. He shows lots of black screens. With LVM no problem at all.
I have ubuntu 9.10 installed on one partition and wanted to make 2 other partition. One to be able to put all my video files on that partition and another one for my home folder. What is the best way and utility to use? Is gparted the way to go on the live CD (or usb stick in my case) and then do the partitions that way?
Total size of HD is 320gb. how much room is needed for the OS , 4gb?? How much for the home folder, 16gb? I know the biggest partition is going to be the last one for my video files which I think should be 300 gb. Or should I just do two partition and leave my home folder and videos in the same partitions? [URL]