Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New question

Status
Not open for further replies.
May 15, 2000
245
US
Ok, I have a 4 gig drive in my linux box(small I know but it's for testing and learning more than anything). I finally go Samba configured and working. My question is when I look at the disk size in Windows Explorer, I see that the mapped share, which is from the root is only 250 or so meg. I check the config at the server and it shows a number of partitions hda, hda1, hda2, hda5, hda6, hda7, hda8, hda9. I didn't do a manual partition install, so I'm not sure if this is normal or if something is wrong. Can the other partitions be, merged to create a larger volume? Or is there a way to repartition without having to wipe the server and start from scratch?
Please let me know.

Domenick Pellegrini
dpellegrini@yahoo.com

 
Hi,



Most linux installs nowadays create multiple partitions for different parts of the filesystem. Linux has a 'virtual' filesystem such that everything exists in the directory tree structure under '/' and (assuming everythings mounted) you don't have to concern yourself with the physical media/partition, etc. Under this system, with a few exceptions, and directory or sub-directory can be on a different partition or another machine using nfs or samba.



If you do the command 'df -h' you should see the mapping of (mounted) partitions to directories and how full they are. Also if you 'cat /etc/fstab' you will see all the filesystems defined to the system.



The partition editors mentioned by marsd are fine but I don't believe either does an on-the-fly merge/extend of ext2 partitions (partition magic does this for fat partitions). So you may find it difficult unless you particularly want a big single root partition - in which case you almost certainly will have to reinstall after re-doing the partitions.



Hope this helps

 
Should I be concerned about installing anything else? Will the amount of diskspace in that partition prevent or inhibit installing new programs?

Domenick Pellegrini
dpellegrini@yahoo.com

 
Hi,

The main drawback with multiple partitions is that it can be difficult to allocate the space correctly. Its roughly comparable to having multiple windows drives, e.g. smaller c:, d:, e:, f: (or whatever) rather than a single big 'c:' drive. Obviously you (or redhat's installer!) could have sized some partitions over-generously and others too small.

Its not totally clear from Powerquest's site ( whether their latest version does ext2 partition merges. I suspect you can resize them but not merge. If so and you have spare drives, you could fairly easily re-organise things by copying selected partitions from /dev/hda to (say) /dev/hdb, deleting the /dev/hda partition(s) just copied, re-size the root partition to grab the freed space and then copy the files back from /dev/hdb.

What does your 'df- h' and '/sbin/fdisk -l /dev/hda' say ?

Regards
 
Actually,
I can't give you that info. I decided, since there wasn't anything on the server, to just reinstall the server and repartition during the install process. Now it's go the config I want.
Thanks

Domenick Pellegrini
dpellegrini@yahoo.com

 
Well I'm up and running with Samba, Telnet and FTP, I can access it from my Win2k box, and everything is working well. Or at least as well as I am aware.
Thanks for all your help everyone!!


Domenick Pellegrini
dpellegrini@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top