- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to add a new 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
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
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
тАО08-04-2003 08:41 PM
тАО08-04-2003 08:41 PM
I am having Red hat Linus 8.0.
i have free space on disk and i want to create a new File system on this.
How can i do it ?
please give me step by step process with commands.
Thanks
Sunil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 09:37 PM
тАО08-04-2003 09:37 PM
Re: How to add a new partition
http://www.linux.org/docs/ldp/howto/Filesystems-HOWTO-6.html
Theory, how to extend a filesystem.
http://tldp.org/HOWTO/Filesystems-HOWTO-6.html
This manual almost everything you need.
http://www.cslab.vt.edu/manuals/parted-1.6.1/html_mono/parted.html
Example, growing a partition ext2
http://www.cslab.vt.edu/manuals/parted-1.6.1/html_mono/parted.html#SEC30
More...
http://lists.suse.com/archive/suse-linux-e/2002-Oct/1988.html
You don't mention whether you are using lvm or not. If you are using lvm its just like HP-UX(checked out your profile)
umount
lvextend
extendfs
If not the links are good.
sEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 09:49 PM
тАО08-04-2003 09:49 PM
Re: How to add a new partition
#fdisk /dev/hda
n - add a new partition
w write table to disk and exit
The new table will be used at the next reboot.
#reboot
To create a filesystem use mkfs.
Making file system named "/home_new" on hdb1
# mkfs -V -t ext3 -L /home_new /dev/hdb1
To mount a filesystem change fstab.
#vi fstab
/dev/hdb1 /home_new ext3 defaults 1 2
Mount all filesystems (of the given types) mentioned in fstab.
#mount -a
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 09:50 PM
тАО08-04-2003 09:50 PM
Re: How to add a new partition
# fdisk /dev/hdx
if you have unpartitioned space on hdx.
Option n will guide you through making it.
Option w will write your new partition table to disk.
You may have to reboot before you can perform the next steps.
To create a filesystem on the new partition, use
# mkfs /dev/hdxn
where hdxn is the new partition, ie. hda6.
After this step, you can mount the newly created filesystem, with
# mount /dev/hdxn /mountpoint
Remember to create the mountpoint directory first. You might want to add the new filesystem to /etc/fstab.
For detailed info, see manpages for fdisk, mkfs and mount.
EJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2003 06:52 AM
тАО08-05-2003 06:52 AM
SolutionI will add little more to the details. Just now I finished creating one!!
Before creating a new partition print the info with p. Make sure you start with the correct cylinder. fdisk will give you the first and last cylinder. Calculate it w.r.t your requirements.
You can also use mke2fs. Check the man pages for more info.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2003 07:37 PM
тАО08-05-2003 07:37 PM
Re: How to add a new partition
Thanks to all of you.
but small doubt remains
is it necessary to rebbot after creation of new partition ?
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2003 07:46 PM
тАО08-05-2003 07:46 PM
Re: How to add a new partition
This is from man fdisk
A sync() and a BLKRRPART ioctl() (reread partition table from disk) are performed before exiting when the partition table has been updated. Long ago it used to be necessary to reboot after the use of fdisk. I do not think this is the case anymore - indeed, rebooting too quickly might cause loss of not-yet-written data. Note that both the kernel and the disk hardware may buffer data.
So I dont think it is necessary to reboot.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2003 08:54 PM
тАО08-05-2003 08:54 PM