Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: How to add a swap file to Ubuntu

  1. #21
    Join Date
    Nov 2009
    Location
    London
    Beans
    92
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to add a swap file to Ubuntu

    Quote Originally Posted by sisco311 View Post
    You don't need the Live CD to delete the files. Boot your Ubuntu installation use the rm command to delete the files:
    Code:
    sudo rm -i /mnt/512Mb.swap
    and
    Code:
    sudo rm -i /media/shared4096Mb.swap
    Be careful, the rm command is dangerous, make sure that you delete the files you want.
    The problem is that one of the files I'm trying to delete is called 'shared' (see attached screenshot). In /media, there is a folder called shared (which is the mounted partition). If I do
    Code:
    sudo rm -i /media/shared
    might that delete (or affect) the partition?
    I can't even unmount the Shared partition because it gives me an error messgae:
    Error unmounting: umount exited with exit code 1: helper failed with:
    umount: only root can unmount /dev/sda6 from /media/Shared
    Thanks again for all the help, don't know what I'd do without these forums
    Attached Images Attached Images

  2. #22
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: How to add a swap file to Ubuntu

    Linux is case sensitive shared is a file & Shared is a directory. By default, rm doesn't delete directories. So, go ahead & remove that shared file.

  3. #23
    Join Date
    Nov 2009
    Location
    London
    Beans
    92
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to add a swap file to Ubuntu

    Quote Originally Posted by sisco311 View Post
    Linux is case sensitive shared is a file & Shared is a directory. By default, rm doesn't delete directories. So, go ahead & remove that shared file.
    Ok, done that... thought it would be better to double check before blindly running it.
    Thanks so much again, had a few other problems but I fixed them myself and everything seems ok now
    Thanks everyone!
    I wonder if I will ever get the hang of Ubuntu >__<
    Last edited by lsk3993; April 7th, 2010 at 01:16 AM. Reason: Sorted out problems

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •