FS#30808 - swap partition isn't added into the /etc/fstab

Attached to Project: Arch Linux
Opened by Jonathan Vasquez (Cows) - Sunday, 22 July 2012, 23:41 GMT
Last edited by Dave Reisner (falconindy) - Monday, 23 July 2012, 00:16 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The swap partition isn't inserted in the /etc/fstab after you do a genfstab -p /mnt >> /mnt/etc/fstab

Additional info:
Arch Linux Media: 2012.07.15

Steps to reproduce:
Make your partitions (let's assume the following:

/dev/sda1 - /boot
/dev/sda2 - swap
/dev/sda3 - /
/dev/sda4 - /home

cd /mnt
mkdir boot home
mount /dev/sda1 boot && mount /dev/sda4 home
pacstrap /mnt base{,-devel}
swapon /dev/sda2
genfstab -p /mnt >> /mnt/etc/ftab

If you check fstab, you will see that /boot, /, and /home are there, but swap isn't there. All you see is:
noee swap defaults 0 0
but the partition isn't. It should be

/dev/sda2 noee swap defaults 0 0
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 23 July 2012, 00:16 GMT
Reason for closing:  Fixed
Comment by Dave Reisner (falconindy) - Sunday, 22 July 2012, 23:58 GMT
Works for me.
Comment by Ionut Biru (wonder) - Sunday, 22 July 2012, 23:59 GMT
i think he didn't swapon /dev/sda2 before running genfstab
Comment by Jonathan Vasquez (Cows) - Monday, 23 July 2012, 00:06 GMT
I did swap on.. I even have it on video:

http://www.youtube.com/watch?v=uJEiyt4-4k8&list=UUHawtdBuQxE88jnxq10Gl9A&index=1&feature=plcp

2:45 - I make the partitions
3:14-3:20 - I mkswap, and swapon
3:45 - I make sure swap is mounted (for a second time)
11:25 - You see that swap (Local mountpoints fail, even though swap says it activated fine)
11:40 - I tell people what was missing in /etc/fstab

EDIT:

You can also see I wrote "swapon /dev/sda2" before genfstab.
Comment by Jonathan Vasquez (Cows) - Monday, 23 July 2012, 00:13 GMT
Also you might want to check why it says "noee" .. sometimes it says "none" and sometimes "noee". For the fstab entry for swap. Maybe it was user error on my part, but I could have sworn that when I first opened the /etc/fstab, I saw it says "noee".
Comment by Dave Reisner (falconindy) - Monday, 23 July 2012, 00:16 GMT
Fails explicitly for partitions, but not files.

Loading...