Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm trying to set up a swap file but I'm having boot issues. I've set up a dual boot with windows and I've got 3 partitions (1 for windows, 1 for linux, and 1 as a "common area"). I've created a swap file in the common area and I can get it to show up when I use swapon. My issue is that when I restart the system, it tells me that the drive failed to mount ... s to skip mounting or m to manually recovery ... and it is not present until I manually start it again. Could anyone help me with this?
First, it's always better to use a swap partition without any strange experiment.
Second, what type of filesystem is used for the "common" partition? Please show here your /etc/fstab file and output of the fdisk -l command.
Third, if the "common" partition has a non-Unix filesystem, it would be a very good idea to create a swap file in the Linux partition or even create a swap partition.
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xad62ba46
Device Boot Start End Blocks Id System
/dev/sda1 2048 3074047 1536000 27 Hidden NTFS WinRE
/dev/sda2 * 3074048 69658623 33292288 7 HPFS/NTFS/exFAT
/dev/sda3 113708070 625137344 255714637+ 7 HPFS/NTFS/exFAT
/dev/sda4 69658624 111673343 21007360 83 Linux
Partition table entries are not in disk order
and here is the fstab:
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda4 during installation
UUID=198ee638-c3a7-476d-83d4-ea7a4b3f68f3 / ext4 errors=remount-ro 0 1
I have to suspect that a different filename would have given you a better chance: spaces in the filename are probably a no-no, and that array of slashes in different directions is probably problematic, too.
That said, separate partitions for swap are far more common (arguably, only for historical reasons...but, in any case, 85%, 95% or more of the installed base is with swap partitions rather than swap files, so you can guess which gets more testing, and if, for example, the mount script 'breaks' with odd characters in the filename, you know where it will be found and cured first).
ok, so I moved my swap file to the linux partition and edited fstab. My common partition mounts automatically and my swap file is auto recognized. Also, getting the spaces out of the name made things a lot easier. Thanks salasi. Thank you all for your help ... much appreciated!