LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2005, 09:52 PM   #1
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Rep: Reputation: 15
Need Help Partitioning 60GB Slackware


My computer: Toshiba Satellite A10 (Celeron 2.4Ghz, 512RAM, 40GB(originally).
At the moment I have 2x20GB partitions. One I run Mandriva LE2005 and the other Windows XP. From Mandriva I cannot copy files from the windows partition and vise-versa. I came across a thread where a member wrote something about a partition he had that are accesible to both - Linux and Windows.
I am going to install a new 60GB Samsung HDD in my laptop (by the way , I think there's no problem right?! It fits in and have the same voltage and frequency as the original 40GB HDD!) But this time I'm going to TRY to install Slackware, as I'm a bit dissapointed with all the trouble I have to install software due to missing libraries and the incredibly loooong time it takes for Mandriva to load! Someone told me that slackware is better in those...
Finally... I need help to decide how to partition all this. Mandriva partitioned itself in a smaller 5GB partition and left 15GB for the /home folder! This was not good because I was nearly out of space to install all the missing libraries and updates and had 12GB free in /home. I want to get things right this time !
I am planning on leaving 30GB for windows and 30 for slackware. I just need to know how to make a partition that is accesible by both systems and what is the most effective way of partitioning the 30GB of slackware (and why)?
Thanks for helping!
 
Old 12-03-2005, 11:39 PM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
The easiest way to share data between the two systems is to use an extra FAT32 partition.

You might want something like this:

Code:
hda1      25GB     NTFS     Windows XP
hda5      10GB     FAT32    Data
hda6      100MB    ext3     /boot
hda7      1GB      swap
hda8      10B      ext3     /
hda9   *the rest*  ext3     /home
I'm not saying that this is THE way ... but a general approach you might like to start with.
 
Old 12-05-2005, 03:48 PM   #3
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Cool! Thanks for the tips! I'm still not to sure about the swap partition though... I will upgrade my RAM to 1012 in the near future, so should I make the swap 2G? And is it possible to change the size of my swap after the installation?
 
Old 12-05-2005, 06:52 PM   #4
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
1GB should be more than adequate ... IMHO it really depends on your usage,
rather than how much memory you have.
You will notice in time this is even more true with Linux, than MSWin

You don't need to change the size of the swap partition later if you need more.
You can just add another (you can even use a file ... with a small performance hit)

Take a look at the swap entry in fstab, and the manpages for swapon and mkswap.
If you suddenly need more swap, just:
# dd if=/dev/zero of=/swapfile.img bs=1M count=1024
# mkswap /swapfile.img
# swapon /swapfile.img

If you really want to steepen your learning curve you could use LVM to control
your partitions, and then you could resize your partitions with a rescue CD
(and the help of ext2resize). However, I suggest you leave that for later
 
Old 12-06-2005, 12:29 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by ivancauso
I came across a thread where a member wrote something about a partition he had that are accesible to both - Linux and Windows.
To reliably share data between WinXP and Linux, you need a FAT32 partition. uberNUT69 already suggested the FAT32 partition in his schema.

Please note that under Windows, there's no user protection in FAT32. So if the PC is used by multiple users, everybody can use that partition and add/delete files there.
Under Linux you can make the partition available to only a certain user or a group of users.

If data integrity is important in a multi-user environment, you should see that partition more as a transfer area than as a storage area.
 
Old 12-06-2005, 02:52 AM   #6
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
I'll keep that in mind! Thanks!
 
Old 12-06-2005, 02:44 PM   #7
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uberNUT69
The easiest way to share data between the two systems is to use an extra FAT32 partition.

You might want something like this:

Code:
hda1      25GB     NTFS     Windows XP
hda5      10GB     FAT32    Data
hda6      100MB    ext3     /boot
hda7      1GB      swap
hda8      10B      ext3     /
hda9   *the rest*  ext3     /home
I'm not saying that this is THE way ... but a general approach you might like to start with.

I could not make all the partitions as in the sheme above because using fdisk or cfdisk, the limit of partitions I could create was 4! Any ideas of what may be the problem? And can I change the partitions now that I have finished the installation???
 
Old 12-06-2005, 02:54 PM   #8
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
the ide hard discs have a limitation of only 4 primary partitions. You may have created all 4 primary partitions. What you should have done was to create 3 primary partitions and then create an extended partition. The extended partition can then have multiple smaller partitions in it called logical partitions. Search google about partitioning. You can change the partitions but you would lose the data there. So backup all your data before messing with partitions. Also it wouldn't hurt to be extremely familiar with fdisk or cfdisk, if you are not already
 
Old 12-06-2005, 03:07 PM   #9
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
That was a fast reply! I did create an extended partition using fdisk but I didn't know how to create the logical partitons, and when I tryed changing the type of the extended partition to fat32 I got a message saying this could not be done with an extended partiton. I'll try google for some answers and I'll study some fdisk commands ! Thanks!
 
Old 12-06-2005, 08:24 PM   #10
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
The primary partitions are always numbered 1-4
Logical partitions (which reside in the extended partition) are numbered 5 onwards.
The extended partition is used in place of ONE of the primary partitions.
In the example I've used above:
Code:
hda1      = primary partition 1      = type=7 for NTFS
hda4      = extended partition         no need to set type, but it's type=5 anyway
hda5      = logical partition 1      = type=c for W95 FAT32 (LBA)
hda6      = logical partition 2      = type=83 for Linux ext2/3
hda7      = logical partition 3      = type=82 for swap
hda8      = logical partition 4      = type=83 for Linux ext2/3
hda9      = logical partition 5      = type=83 for Linux ext2/3
In my example, hda4 was 'implied' (sorry)
This partition could actually be hda2 or hda3, but it can make _some_
future operations a little simpler if the extented partition is the
last primary.

When doing this the first time, it might be easier to use a pretty
tool like cfdisk rather than plain old fdisk.
 
Old 12-07-2005, 04:30 AM   #11
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Ok, I understand. But how do you create a logical partition from the extended using fdisk?
 
Old 12-07-2005, 09:22 AM   #12
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Look here at section 5.1.2 for a quick answer. However, you should read the whole thing
 
Old 12-08-2005, 01:43 AM   #13
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Nice guide tuxrules! I tried google but didn't find anything decent. Most guides were for the windows version or didn't cover primary + logical. I'll read through and give it a go.
 
Old 12-08-2005, 09:16 AM   #14
ivancauso
Member
 
Registered: Aug 2005
Location: Moscow
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Unfortunately the guide didn't help... I know the basic commands of fdisk, how to create, delete etc. But I am getting a strange problem... Is not just me being stupid, or lazy to read the documentation. I will post here exactly what is happening so that you guys see what is going on here, and maybe someone knows what I am I missing!
1st - thats my HDD now:

Disk /dev/hda: 60.0 GB, 60060155904 bytes
255 heads, 63 sectors/track, 7301 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 122 979933+ 5 Extended
/dev/hda2 123 1338 9767520 83 Linux
/dev/hda3 * 1339 4985 29294527+ c W95 FAT32 (LBA)
/dev/hda4 4986 7301 18603270 83 Linux
/dev/hda5 1 122 979902 82 Linux swap

The hda1 extended partition created itself after I installed Windows XP and kicked my previous hda1 (linux swap) to hda5. Not too sure what is that hda1 but I think it must be something to do with the windows boot??? Anyway, what I want to do is to delete hda4, which is my /home and use this free space to create an extended partition in order to have one more partition (1GB) that will be visible from Windows and Linux to allow transfer os files between the two OS.
Here is my attempt and the error message I get:

Deleted the hda4 no problems:

Command (m for help): d
Partition number (1-5): 4

Command (m for help): p

Disk /dev/hda: 60.0 GB, 60060155904 bytes
255 heads, 63 sectors/track, 7301 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 122 979933+ 5 Extended
/dev/hda2 123 1338 9767520 83 Linux
/dev/hda3 * 1339 4985 29294527+ c W95 FAT32 (LBA)
/dev/hda5 1 122 979902 82 Linux swap

Now when I try to create a new partition "extended" is not an option anymore and if I try to create a logical partition it says I have no space... But I do have space because I just deleted my hda4 which is a few GB... And if I create a new primary no problems...???? So what's going on?! Here it is:

Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l
No free sectors available



 
Old 12-08-2005, 02:47 PM   #15
vicye6
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware 10.2
Posts: 9

Rep: Reputation: 0
I had the same "No free sectors availabel" problem before, so I switched to 'cfdisk'.
Under cfdisk, You should create all your logical partitions first, then create your primary partitions.

That's it, good luck!

Last edited by vicye6; 12-08-2005 at 02:49 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware partitioning paul62 Slackware 1 07-16-2004 01:11 PM
NForce 2 hd controller with WD 60gb. Prob in Win; Linux? RedHatMasta Linux - Hardware 1 02-06-2004 06:29 PM
Partitioning for Slackware AceTech747 Slackware 12 02-06-2004 02:41 AM
60GB Fat32 drive mounting Problem mobassir Linux - General 11 08-25-2003 04:21 AM
Slackware Partitioning. liguorir Linux - Software 1 05-28-2003 08:26 AM


All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration