- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to use 5th partition?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 10:54 AM
09-09-2003 10:54 AM
Now I have one more partition unused, and wanted to add it into one of linux partition, how do I do that?
If I hvae to use any extra tools to achieve that, where I can get that tool? please also specify it.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 11:13 AM
09-09-2003 11:13 AM
Re: how to use 5th partition?
If you create a volume group and vgextend it to include your fifth partition, you can create fileystems that extend across the two partitions and you can increase and decrease the size of them as your needs change.
However, if you just create a file system on your fifth partition it will be just one filesystem that you can use for storage but it isn't as flexible.
Check out linux LVM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 11:41 AM
09-09-2003 11:41 AM
Re: how to use 5th partition?
Anybody idea else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 11:48 AM
09-09-2003 11:48 AM
Re: how to use 5th partition?
The only way you can get more than 4 partitions is to make one of your existing partitions contain several extended partitions which will destroy any existing data in it.
However, you say that bootitNG uses an entire partition. This seems a bit extreme to me. Are you sure?
From Linux, if you run fdisk /dev/hda (assuming that is the device for your disk and then enter "p", it will show you if you have any unpartitioned sace you can use.
WARNING do not change any partion information you have unless you are confident that it is right or you will destroy things. particularly don't change partitions you have an OS installed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2003 01:18 PM
09-09-2003 01:18 PM
Re: how to use 5th partition?
Thanks for your response.
Bootit did use the entire partition as seen in fdisk.
Now, the questions is, can I use /dev/hda4 being used for linux swap as a extended partition, then from which to create logical partition? Since I don't want to destroy any data on other 3 paritions: linux, win NT, and bootit.
Thanks again,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 05:19 AM
09-10-2003 05:19 AM
Re: how to use 5th partition?
As Mark says, you can only have four primaruy partitions on an IDE disk. If your partitions are hda1, hda2, hda3 and hda4, all primary, then you can't change witgout distroying data on your last partition. Check it with fdisk /dev/hda, then p to see the details.
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 06:28 AM
09-10-2003 06:28 AM
Re: how to use 5th partition?
I know everything you said here, but since I have already used all these 4 partitions, and how I can create extended partition, then from there to create logical paritions. I know I have to destroy one of existing 4 partitions in order to setup the extended one, so can I destroy the "linux swap" first, then create the extended one on it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 06:48 AM
09-10-2003 06:48 AM
SolutionYou can remove your swap partition and then recreate it inside your new extended partition.
Be sure to turn it off first with swapoff /dev/hda4 (assuming it's hda4).
Providing your system has enough ram this should not be an issue but I would do this in single user mode, (or maybe even better, by booting from an install CD (in witch case you dont need to deactivate it)).
If you do it from the running system you can temporarily add a swap file on the linux partition like this :
# dd if=/dev/zero of=/swap bs=1024 count=16384
# mkswap /swap 16384
# sync
# swapon /swap
once you got rid of it (swapoff) you can just scratch the partition and recreate from fdisk, be sure to recreate an extended partition for swapping inside the new extended one, along with any more partitions you want to create.
you can then reactivate it with
# mkswap /dev/hda5 (assuming hda5, extended partitions start with 5)
# sync
# swapon /dev/hda5
and then deactivate the temporary swap file you might have created.
be sure to modify /etc/fstab ! you need to change whatever your previous swap partition was into the new one.
hope this helps :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 07:41 AM
09-10-2003 07:41 AM
Re: how to use 5th partition?
Your posting definitely helps me a lot.
Now only one question (I hope) left is what steps involved to setup extended partition, and create logical partition inside of extended? I assume I can use fdisk to achieve that, but can you list these steps for me?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 08:10 AM
09-10-2003 08:10 AM
Re: how to use 5th partition?
The linux fdisk asks you when go through creating a partitoin what type you want it to be (primary/extended).
You can probably also use tools like partition magic to convert your last primary partition into an extended partition so you don't have to mess with the data that much, otherwise you have to destroy the fourth partition to create the extended partition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 08:25 AM
09-10-2003 08:25 AM
Re: how to use 5th partition?
As Eric put it, it's pretty straightforward from fdisk to do so. use 'd' to delete the previous swap partition, then 'n' to create one and choose extended. for this extended partition you should use all the space left on the drive.
once you have one extended partition you can can keep adding as many partitions as you want, numbered from 5 to (whatever ammount of partitions you want). you will not be able to use /dev/hda4 anymore after this (assuming hda4 was the previous swap partition) as it'll become a container for the extended partitions. instead you'll be able to access /dev/hda5, 6 , etc.
the output from 'p' will look a bit like this :
Device Boot Begin Start End Blocks Id System
/dev/hda1 1 1 60 120928+ 6 DOS 16-bit >=32M
/dev/hda2 61 61 126 133056 63 GNU HURD
/dev/hda3 127 127 192 133056 a5 BSD/386
/dev/hda4 193 193 525 671328 5 Extended
/dev/hda5 193 193 255 126976+ 81 Linux/MINIX
/dev/hda6 256 256 525 66496+ 82 Linux swap
(don't pay attention to the partition types, I fetched this from google as I cannot ssh to my linux system from here).
notice that partition /dev/hda4 is marked as 'extended' and goes from sector 193 to the end of the drive (525) and hda5 & hda6 are actually inside hda4 (looking at start and end sectors).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 12:29 PM
09-10-2003 12:29 PM
Re: how to use 5th partition?
From then , I would use 'chroot /mnt/sysimage' to avoid having my whole system under a /mnt/sysimage subdir, then ./fdisk /dev/hda, and here we go.
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2003 01:50 PM
09-10-2003 01:50 PM
Re: how to use 5th partition?
Now I have one more question left before I assign my points.
Currently /boot is on under one big file system /, since I have additional partition I can use, I wanted to move/copy /boot to a seperated partition, how should I accomplish that. I know /boot is special boot area, any special thing I have to do, in order to create /boot file system, and move everything under /boot over?
Thanks again,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2003 12:37 AM
09-11-2003 12:37 AM
Re: how to use 5th partition?
but if you want to do it anyway, all you need to do is to create a new partition, copy the files from the old one into it and then modify /etc/fstab and /etc/lilo.conf (or /boot/grub/grub.conf, depending on which bootloader you use). make sure you rerun 'lilo' after modifying lilo.conf, and keep the install cd at hand in case something goes wrong and you need to boot in rescue mode to recover.
I'd suggest first changing swap partitions, reboot, and then only try moving /boot.