LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2004, 04:05 AM   #1
D!lbert
Member
 
Registered: Jun 2004
Location: Poland
Distribution: Slackware
Posts: 37

Rep: Reputation: 15
mixing fat->linuxswap


I need to add some linux swap space using my fat32 partitions. My question is: will it be harmful for any of my OS (winshit&slack) if I "cut" some disk space from fat32 and "stick" it to linuxswap, doing everything under windows with PartitionMagic (cause I have some at least exp. with it)? Any better ideas?

Tnx. /D!lbert
 
Old 07-30-2004, 04:33 AM   #2
El Basto
Member
 
Registered: Jun 2004
Location: Thousand Oaks, CA
Distribution: Suse 9.2, Slackware
Posts: 76

Rep: Reputation: 15
If the space is taken from the end of the FAT32 partition then there should be no problems. If the space is taken from the beginning of the FAT32, in other words, to steal 1gig the files will have to be moved 1gig forward on the partition before the space is taken, then there is a chance something could go wrong. But PM is pretty good at not destroying data.

But when you are repartitoning hdd's there is always a chance that something could go wrong. IE: accidentally unplugging the computer will most difinitely have dire results no matter what partitioning app you use. Ya, I hot myself on the head after doing that.
 
Old 07-30-2004, 04:39 AM   #3
D!lbert
Member
 
Registered: Jun 2004
Location: Poland
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
Ok, cool, tnx. Another thing: sticking space to swap is safe to linux, isn't it?
 
Old 07-30-2004, 05:49 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
When you have done your repartitioning - and thus have more space available for swap - you need to let linux know abot your intent to give it more swap-space.
Do you have an additional swap partition now or do you have just one - but now larger then before?
If its still only one - there is nothing to change in /etc/fstab.
If its one more, you will need to add it there - plus you will have to "format" it as swap space and then tell linux about it - like this:

mkswap /dev/_your_new_swap_partition

swapon /dev/_your_new_swap_partition

If you did all this repartitioning from within windows - you should check if linux still recognises the new larger swap area.
The output (in the 4-th line) of "top" tells you about this - among other things.
It' safest to:
1.) unmount all your swap-partitions
2.) make(reformat) the new swap space --> with mkswap /dev/...
3.) "mount" it back in with: swapon /dev/... for each of your swap-partitions
 
Old 07-30-2004, 06:46 AM   #5
D!lbert
Member
 
Registered: Jun 2004
Location: Poland
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
Things got little... shit. I Use PM, to cut 300MB from fat32 partition. Operation took hour, cause this fat is in the middle of the disk, so my root partition was moved down by circa 300MB. After reboot winshit works fine. But when I start Linux in BootMenu, I've got:
Loading Linux EBDA id to big; kernel setup stock overlaps Lilo second stage.
Ok, but things aren't so bad, I booted linux from diskette, and here I am now Everything seems to work, but I don't want to check it, cause I don't know what's up. I think: Is it only case of lilo?! Should I just try rewrite it?

Please help... and tnx4everything

PS.Now, I've 300MB unalocated space, prepared for swap, at the end of disk, near real swap part..

Last edited by D!lbert; 07-30-2004 at 06:48 AM.
 
Old 07-30-2004, 07:05 AM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
why not rewrite it? without doing so you will need a diskette bo boot linux and probably cannot use windows at all - how do you boot windows if you don't got lilo anymore?
Or something may have gone wrong - thats what backups are for :-) - but you cannot do anything about it now - I suppose - so why not try it...
What did you need the extra swap-space for? 300 MB is a lot (if it's a desktop)! And you already had a certain amount.
 
Old 07-30-2004, 07:19 AM   #7
D!lbert
Member
 
Registered: Jun 2004
Location: Poland
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
1) I didn't say I don't have lilo anymore It's in MBR, so it's safe&sound there.
2) I need to experiment with swap, cause I have 227MB swap with 256MB ram. System hangs when swap is full. You can: http://www.linuxquestions.org/questi...hreadid=211200
3) i just want to be sure cause I didn't have hell of an idea what: "Loading Linux EBDA id to big; kernel setup stock overlaps Lilo second stage." means exactly...
 
Old 07-30-2004, 07:42 AM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
I'd say that means, someting overwrote part of your mbr - cannot say for sure.
By reinstalling lilo you should be getting that fixed, but maybe your partitions where partly moved where they should not be - I don't know - you'll have to use Google...
 
Old 07-30-2004, 07:49 AM   #9
D!lbert
Member
 
Registered: Jun 2004
Location: Poland
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
lilo + [enter] did the trick I hope... Probably (as I think) lilo saves info about starting sectors of every partition. If they were moved... but It's just my sugestion, I'm not a lilo project developer... Who cares, it works, no errors, no fatals, It was a risky operation, but I survived Now, just to change the unalocated space to swap... 5,6 hours and I'm in home
 
Old 07-30-2004, 07:59 AM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
the rest should not take you more than 10 minutes now - glad it worked - bye
 
  


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
package mixing greythorne Red Hat 3 06-15-2004 09:58 PM
i want to compile fat file system module and get fat.o working ramya272 Linux - Newbie 9 02-26-2004 12:41 PM
sound mixing how??? onix Slackware 2 05-03-2003 07:49 PM
Mixing C and C++ Cruelpeace Programming 1 02-01-2003 11:41 PM
Linux supports fat or fat 32? dark_light Linux - General 3 04-25-2002 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 AM.

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