Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465
Rep:
Partition Free Space?
My HD is 30GB now I have 1 / partition, 1Swap, 1/home and
I have a 10GB free space without partition what can I do to take advantage of the free space ?, how can I do a partition? I tried with this:
[root@ud3-25 Gerardo]# /sbin/fdisk /dev/shm
You will not be able to write the partition table.
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465
Original Poster
Rep:
My HD config is :
[root@ud3-25 Gerardo]# /sbin/fdisk /dev/hda -l
Disk /dev/hda: 255 heads, 63 sectors, 3738 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1925 15358140 83 Linux
/dev/hda3 1926 2435 4096575 83 Linux
/dev/hda4 2436 3738 10466347+ f Win95 Ext'd (LBA)
/dev/hda5 2436 2459 192748+ 82 Linux swap
and I tryed sbin/fdisk /dev/hda and it works but in the menu what command I need choose?
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
So you have cylinders 2460 - 3738 left for partitioning.
Just like the menu says, n creates a new partition (but not unless you exit with w) with the default start = first available cylinder and end = last cylinder
man fdisk
info fdisk
Don't forget after partitioning, you have to format with mkfs, then make mount points, then mount.
Last edited by fancypiper; 06-02-2003 at 12:30 AM.
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
As is says, w actually writes the partition table and exits. You can chicken out with q quit without saving changes.
It's self explanatory, at least it makes sense to me.
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465
Original Poster
Rep:
I tried this one
Command (m for help): w
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.
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465
Original Poster
Rep:
Sorry but belive me I'm newbie in partitions and I fear to fall in a big mistake
I reboot my box then I add a new partition and then "w" and appeared me the same error and now if I try to add a new partition appear me "No free sectors available" what do you think?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.