This means that my HD has two partitions only, correct? Therefore, If I wanted to install another Linux distribution and have a dual-boot system, I could install such distribution in /dev/sda1 and /dev/sda4, right?
To maybe add to what ken yap said, it’s also very possible that a system
can have many more partitions that are not mounted by the current OS so
they won’t show up. By default this doesn’t happen a ton since the system
tries to give access to everything, but it’s still allowed. Either way,
fdisk is the best way I know of to find out about hard drive partitions
easily/quickly from the command line.
Good luck.
On 05/16/2011 09:06 PM, ken yap wrote:
>
> No. Swap partitions and non-Linux partitions don’t show up in this mount
> table. The correct way is
>
> fdisk -l /dev/sda
>
> Also you can have logical partitions so you are not limited to 4.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
To add a word about dh, you should actually use **dh -hl ** to display your computer’s mounted local filesystems only. Without the option -l, it outputs nfs mounted filesystems as well (in case there are some), which might not be what you want.
On 2011-05-17 13:36, please try again wrote:
>
> To add a word about dh, you should actually use *dh -hl * to display
> your computer’s mounted local filesystems only.
dh? I don’t even have dh. What is it?
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
I sincerely hope not everybody wil follow me in this error. Well at least Carlos sees it.
In any case, I hope the OP reads the docs and makes up his mind about what information he wants to get. It isn’t not very usefull to give him a lot of usefull options when we do not know what he wants.
What I really want to achieve is installing a second Linux distribution on my HD and create a dual-boot system using GRUB. I think what I need to do in order to achieve this goal is to re-size the existing partitions and create new ones (primary, extended, logical, whatever…). I will need to figure out what to create and what to re-size.
I don’t think that the installer for the second distribution (I am thinking of installing Slackware just to see what it is all about) will give me any help in this respect, so I am preparing the ground for a successful install. I have also been trying to find a comprehensive guide on how to install Slackware and create a dual-boot system with openSUSE already installed.
That makes it a lot more clear. I think reading the link I gave above about partitioning will help you in getting an idea what this is all about. Also when you want more advice do please ask, but add an fdisk -l listing thus everybody can have the same idea about what you have as you.
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa9af3f5e
Device Boot Start End Blocks Id System
/dev/sda1 2048 4208639 2103296 82 Linux swap / Solaris
/dev/sda2 * 4208640 46153727 20972544 83 Linux
/dev/sda3 46153728 976773119 465309696 83 Linux
Right now, my Swap file is approx. 2.0 GB, Root is 20 GB and, /home is 437 GB. Correct?
If so, I am thinking about making Swap 6 GB, Root 40 GB (since it is already 47% used!), and /home 200 GB.
The rest would be left for the second Linux distribution (Slackware) partitions: 40 GB for Root (/dev/sda5) and 200 GB for /home (/dev/sda6).
PLease please. Didn’t you notice that we post computer text here between CODE tags for readability. Now all the good things about your fdisk listing are twisted around:Posting in Code Tags - A Guide
> Nothing bad would happen to all the openSUSE things residing in /home
> if I decide to uninstall Slackware?
Depends on how you uninstall things. There is no un-install program, as far
as I know. It is you, manually, who reformats the partitions, so it is up
to you to not format home.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
Right now, my Swap file is approx. 2.0 GB, Root is 20 GB and, /home is 437 GB. Correct?
If so, I am thinking about making Swap 6 GB, Root 40 GB (since it is already 47% used!), and /home 200 GB.
The rest would be left for the second Linux distribution (Slackware) partitions: 40 GB for Root (/dev/sda5) and 200 GB for /home (/dev/sda6).
Does it make sense?
PS: I do not want to share /home because of the different filesystems!
As I understand it you just want to contemplate a little about your planned setup. Thus I will just say a few things that came to my mind.
. I am to lazy to go back in this thread to see if you told what the systems memory size is, but I do not see the need to increase Swap to this incredible amount of 6 GB. For small memory systems, you need about twice the memory size, But for say a 2 GB system about the same size is OK. Only thing is when go for Hibernating, the the Swap must be able to accomodate your memory (but it will be compressed, thus even then the same size is OK).
. Your root partition is “only” for 50% used. I have also about 20 GB and it is filled for about 30%. As long as there is only installed software there, you have allready a lot installed, will that realy grow that much? But when you have a lot of other stuff like web pages, databases, etc. there, you should try to separate that from the root partition in it’s own partition (or in /home with symbolic links to it). Better separate systems files from the rest. And then you know what is growing.
. And yes, when you want a complete separate Slackware (that is with shared Swap), you need an extended partition (sda4) and the sda5 and sda6 as per your own suggestion.
On 2011-05-19 15:06, hcvv wrote:
> But for say a 2 GB system about the same size is
> OK. Only thing is when go for Hibernating, the the Swap must be able to
> accomodate your memory (but it will be compressed, thus even then the
> same size is OK).
Just a detail - fastidious mode on
You have to consider the free swap for that calculation, not the size of
swap. If ram is 2, swap is 2, but there is 1 used, hibernate will
(probably) fail.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)