- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- fdisk command
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
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
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
тАО05-22-2006 02:58 AM
тАО05-22-2006 02:58 AM
Not sure why I have this selection when trying to create the new partition:
fdisk /dev/sdb
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
I don't have this selection on another linux box. Please help. Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 03:19 AM
тАО05-22-2006 03:19 AM
Re: fdisk command
Please post the output of fdisk -l if you want more information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 03:39 AM
тАО05-22-2006 03:39 AM
Re: fdisk command
Disk /dev/sdb: 146.5 GB, 146548981760 bytes
255 heads, 63 sectors/track, 17816 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2611 20972826 83 Linux
/dev/sdb3 5162 6466 10482412+ 83 Linux
/dev/sdb4 6467 17816 91168875 f Win95 Ext'd (LBA)
/dev/sdb5 6467 7231 6144831 83 Linux
/dev/sdb6 7232 7766 4297356 83 Linux
/dev/sdb7 7767 8027 2096451 83 Linux
/dev/sdb8 8028 8158 1052226 82 Linux swap
/dev/sdb9 8159 11806 29302528+ 83 Linux
/dev/sdb10 118 17816 48275293+ 83 Linux
I believe I still have 43G left, but could not create more. If I select p, I only create sdb2 with 20G(from 2612 - 5261). If I select l, it said I have no more partition to create. I thought for /dev/sdb I can 15 partitions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 04:09 AM
тАО05-22-2006 04:09 AM
Re: fdisk command
How do I get that conclusion?
If you sum the space used by the logical partitions, you will get the size of the extended partition, so you don't have free space and you cannot create more logical parittions.
If you sum the size of the extended partitions and the primary partitions, you will get 122624113 (122 GB), so you only have aprox 20 GB available for a primary partition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 05:14 AM
тАО05-22-2006 05:14 AM
Re: fdisk command
[root@addel01 etc]# df -k
FS 1K-blocks Used Available Use% Mounted on
/dev/sdb3 10317860 749580 9044160 8% /
/dev/sda1 101089 14829 81041 16% /boot
/dev/sdb1 20641788 16597472 2995676 85% /home
/dev/sdb5 6048320 3034560 2706520 53% /opt
none 2045772 0 2045772 0% /dev/shm
/dev/sdb6 4229840 2214184 1800792 56% /usr
/dev/sdb7 2063504 709708 1248976 37% /var
/dev/sdb9 28842748 10328776 17048848 38% /fsbuild
/dev/sdb10 28842748 9135976 18241648 34% /fs21
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:32 AM
тАО05-22-2006 07:32 AM
Re: fdisk command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 07:43 AM
тАО05-22-2006 07:43 AM
Re: fdisk command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2006 08:18 AM
тАО05-22-2006 08:18 AM
Re: fdisk command
So, this is what you should do:
You don't need to change the partition configuration /dev/sdb10 (accept the default values), just recreate the file system for fs21:
mkfs -t ext3 /dev/sdb10
tune2fs -c0 -m0 -i0 /dev/sdb10
Whit this you should be able to use the whole space for sdb10.
Now create your primary partition and a file system on it. This will be the 20 GB partition that started the discussion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 02:09 AM
тАО05-23-2006 02:09 AM
Re: fdisk command
Or I can use mk2fs command right after umount /fs21?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 02:18 AM
тАО05-23-2006 02:18 AM
Re: fdisk command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 02:27 AM
тАО05-23-2006 02:27 AM
Re: fdisk command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 05:53 AM
тАО05-23-2006 05:53 AM
Re: fdisk command
One more question: should I worry about the data on /fs21 now? Do I need to back it up before to do mkfs? Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 06:42 AM
тАО05-23-2006 06:42 AM
SolutionAs an option to mkfs, you can try using ext2online to resize the file system, in this way you won't loose any data, but anyway you must have a good backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 07:54 AM
тАО05-23-2006 07:54 AM
Re: fdisk command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 08:35 AM
тАО05-23-2006 08:35 AM
Re: fdisk command
If it's mounted as read only (ro), run:
# mount -o rw,remount /fs21
What are the permissions for /fs21 and who is the owner?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2006 08:39 AM
тАО05-23-2006 08:39 AM