i did a sudo fdisk -l on my office issued laptop and here is the output :
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeb36eb36
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 2433 4864 19535040 f W95 Ext'd (LBA)
/dev/sda5 2433 3648 9759928+ 7 HPFS/NTFS
/dev/sda6 3649 4864 9767488+ 83 Linux
okay, seems that somebody in my tech support dept messed up bigtime and did not install swap ... since it doesnt show up (or is it invisible ?)
the box is using windows xp and ubuntu 8.04 ...
if swap is indeed missing, is there a way i can install swap without reformatting or reinstalling ?
thanks in advance.
BASED FROM YOUR POSTS, I HAVE EXAMINED YOUR BEHAVIORAL PATTERN AND I SAW YOUR BRAIN'S TWO SIDES : LEFT & RIGHT, AND I SAW THAT ON THE LEFT SIDE THERE'S NOTHING RIGHT WHILE ON THE RIGHT SIDE THERE'S NOTHING LEFT
Boot to Linux
Log in as root
Go somewhere convienent - I put mine on the root directory - and create a file with all 0s in it
dd if=/dev/zero of=/swapfile bs=1024 count=500000
This creates a 500mb file.
Then make it a swapfile -
mkswap /swapfile
Then enable it
swapon /swapfile
Then you'll want an entry in /etc/fstab for it as well... same as a regular swap partition, but instead of a /dev/... device just put the path to the swapfile.
500000+0 records in
500000+0 records out
512000000 bytes (512 MB) copied, 59.3131 s, 8.6 MB/s
root@bandido-laptop:~# mkswap /swapfile
Setting up swapspace version 1, size = 511995 kB
no label, UUID=8f37e2f8-052d-4920-8b3d-82fd9bae7453
Then you'll want an entry in /etc/fstab for it as well... same as a regular swap partition, but instead of a /dev/... device just put the path to the swapfile
Last edited by jamesbandido; 06-27-2008 at 01:01 PM.
BASED FROM YOUR POSTS, I HAVE EXAMINED YOUR BEHAVIORAL PATTERN AND I SAW YOUR BRAIN'S TWO SIDES : LEFT & RIGHT, AND I SAW THAT ON THE LEFT SIDE THERE'S NOTHING RIGHT WHILE ON THE RIGHT SIDE THERE'S NOTHING LEFT
BASED FROM YOUR POSTS, I HAVE EXAMINED YOUR BEHAVIORAL PATTERN AND I SAW YOUR BRAIN'S TWO SIDES : LEFT & RIGHT, AND I SAW THAT ON THE LEFT SIDE THERE'S NOTHING RIGHT WHILE ON THE RIGHT SIDE THERE'S NOTHING LEFT
looks proper to me. just be sure it is *after* your root partition, since htey will both load on hte first pass, you want / mounted before you try to activate /swapfile
BASED FROM YOUR POSTS, I HAVE EXAMINED YOUR BEHAVIORAL PATTERN AND I SAW YOUR BRAIN'S TWO SIDES : LEFT & RIGHT, AND I SAW THAT ON THE LEFT SIDE THERE'S NOTHING RIGHT WHILE ON THE RIGHT SIDE THERE'S NOTHING LEFT
Bookmarks