LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-07-2008, 10:33 AM   #1
verndog
Member
 
Registered: Oct 2007
Posts: 278

Rep: Reputation: 67
I can't get swapon automatically


I read the following link and several others. Everything looks correct, but still I need to manually turn swapon using gparted. Here's some outputs.

===== sudo swapon -a /dev/hda5 === output =====
sudo swapon -a
swapon: cannot canonicalize /dev/disk/by-uuid/0703bda2-3d0b-42e5-9d49-5c2634a4bd53: No such file or directory
swapon: cannot stat /dev/disk/by-uuid/0703bda2-3d0b-42e5-9d49-5c2634a4bd53: No such file or directory
===
sudo swapon -a /dev/hda5
swapon: cannot canonicalize /dev/disk/by-uuid/0703bda2-3d0b-42e5-9d49-5c2634a4bd53: No such file or directory
swapon: cannot stat /dev/disk/by-uuid/0703bda2-3d0b-42e5-9d49-5c2634a4bd53: No such file or directory
swapon: cannot stat /dev/hda5: No such file or directory

================FSCK==================
fsck 1.40.8 (13-Mar-2008)
fsck.ext3: Unable to resolve 'UUID=d8533154-cef1-4cce-a823-9f3f74aab65b'
================FSTAB=================
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=d8533154-cef1-4cce-a823-9f3f74aab65b / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=0703bda2-3d0b-42e5-9d49-5c2634a4bd53 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
================FDISK=================
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3200 25703968+ 83 Linux
/dev/sda2 3201 3576 3020220 5 Extended
/dev/sda5 3201 3576 3020188+ 82 Linux swap / Solaris

Last edited by verndog; 05-07-2008 at 10:35 AM.
 
Old 05-07-2008, 10:44 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Seen http://www.linuxquestions.org/questi...e-uuid-640366/ ?
 
Old 05-07-2008, 11:13 AM   #3
verndog
Member
 
Registered: Oct 2007
Posts: 278

Original Poster
Rep: Reputation: 67
Quote:
Originally Posted by unSpawn View Post
Thanks, I'll try that next. If it does work then what happened to UUID?
Also here is the output of blkid:
sudo blkid
/dev/sda1: UUID="d8533154-cef1-4cce-a823-9f3f74aab65b" TYPE="ext3"
/dev/sda5: TYPE="swap"

Shouldn't the swap partition "/dev/sda5" reflect a UUID like the "/" partition does?

Okay, swap is now on. I changed 'fstab' from 'UUID=...' to '/dev/...'. Now the question is why command 'blkid' is still show the same UUID number instead of /dev/..

Last edited by verndog; 05-07-2008 at 11:28 AM. Reason: solved
 
  


Reply



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
swapon of 32 GB causes slow boot bluethumb Linux - General 3 12-06-2007 01:33 AM
swapon on ntfs willy_9 Linux - Newbie 4 10-25-2005 09:37 AM
weird 'swapon -a' error elluva Slackware 3 08-18-2004 02:39 AM
swapon command Krenn Slackware 3 08-13-2004 08:53 AM
2.6.3 swapon - function not implemented Sammy2ooo Linux - General 3 03-10-2004 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:50 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
Open Source Consulting | Domain Registration