LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-12-2006, 11:27 PM   #1
lsu420luv
Member
 
Registered: Jun 2005
Posts: 32

Rep: Reputation: 15
fstab and swap space hosed up


I have a hard drive with ubuntu that I just wanted left alone wih free space. It has now turned my entire sdb5 into swap area. I do not want this. that would be like 80 gb of swap. anyways how do I set up swap space on the other drive or this drive and make a new partition for ext3. Here is my fstab. do I create new partition on sdb5 like 2 gb then another partition for the rest of space? Is that sdb5 even my other hard drive. I think I recall during the setup that being it. thanks in advance


Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sdb1       /               ext3    defaults,errors=remount-ro 0       1
/dev/sdb5       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

Last edited by lsu420luv; 08-12-2006 at 11:31 PM.
 
Old 08-13-2006, 12:36 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,813
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
/dev/sdb5 is the first extended partition on the second drive.

Code:
cat /proc/swaps
will tell you the size of your swap space in kB.

Code:
fdisk /dev/sdb
will get you into the partitioning program. Type m for a list of commands. Type p to see the current partition arrangement. This will also tell you which partition is formatted for swap. You should be able to safely delete sdb5 since it is swap space. Then you can create new partitions.
 
Old 08-13-2006, 01:53 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,625

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
Don't worry about doing all that - let's see the output of "sudo fdisk -l" (no quotes, and that's a lower case ell)
 
  


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
About fstab and swap research2004 Linux - Newbie 2 02-19-2004 05:10 AM
swap-space fstab problem MarkGraham Linux - Newbie 3 12-06-2002 11:23 AM
swap-space fstab problem MarkGraham Linux - Newbie 0 12-05-2002 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:11 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