[opensuse] Swap on wrong drive, according to fstab.
I recently moved my swap partition to a new drive. Partioner and swaplabel show it on the new drive, but it's still on the old drive according to fstab. How do I get fstab to show the correct drive/partition? Shouldn't Partitioner have updated it? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-18 13:28, James Knott wrote:
I recently moved my swap partition to a new drive. Partioner and swaplabel show it on the new drive, but it's still on the old drive according to fstab. How do I get fstab to show the correct drive/partition? Shouldn't Partitioner have updated it?
If you are using labels, perhaps both drives have the same labels. That's a conflict, only one works. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Carlos E. R. wrote:
On 2014-03-18 13:28, James Knott wrote:
I recently moved my swap partition to a new drive. Partioner and swaplabel show it on the new drive, but it's still on the old drive according to fstab. How do I get fstab to show the correct drive/partition? Shouldn't Partitioner have updated it? If you are using labels, perhaps both drives have the same labels. That's a conflict, only one works.
It's using labels, but there's not even a label for the new drive in fstab. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-18 14:05 (GMT-0400) James Knott composed:
If you are using labels, perhaps both drives have the same labels. That's a conflict, only one works.
It's using labels, but there's not even a label for the new drive in fstab.
I'm pretty sure if you want a swap drive labeled you need to do it yourself. I don't think there's any way to get YaST to do it. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Felix Miata wrote:
I'm pretty sure if you want a swap drive labeled you need to do it yourself. I don't think there's any way to get YaST to do it.
Well, something put the old drive in there originally. Also, how does swap find the new one, where it's apparently working? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-18 14:41 (GMT-0400) James Knott composed:
Felix Miata wrote:
I'm pretty sure if you want a swap drive labeled you need to do it yourself. I don't think there's any way to get YaST to do it.
Well, something put the old drive in there originally.
YaST would have put something in fstab at installation time, most likely using /dev/disk/by-id/yadayadayadayada, which is why that one would be the one currently in use.
Also, how does swap find the new one, where it's apparently working?
Swap doesn't "find" anything. The kernel finds whatever swap is enabled. Until something creates swap on the new HD, and something puts that swap space into fstab, or you execute swapon to turn it on, there will be no swap used on the new HD. If you want swap to have a label, you have to do it yourself. e.g. mkswap -L knottnewswappartlabel /dev/sdX#(#)' Once that's done you have the option to put knottnewswappartlabel into fstab and have the kernel find it automatically at boot time. e.g. /dev/disks/by-label/knottnewswappartlabel swap swap defaults 0 0 or LABEL=knottnewswappartlabel swap swap defaults 0 0 Of course, kernel will still use the swapper on the old HD until you excise the fstab entry for it, and turn it off with swapoff, or reboot. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-18 19:41, James Knott wrote:
Felix Miata wrote:
I'm pretty sure if you want a swap drive labeled you need to do it yourself. I don't think there's any way to get YaST to do it.
Well, something put the old drive in there originally. Also, how does swap find the new one, where it's apparently working?
You could post for fstab here, and the output of: lsblk --output \ NAME,FSTYPE,LABEL,UUID,PARTLABEL,PARTUUID,MOUNTPOINT,SIZE \ | grep -i swap (one line - thunderbird wraps it) -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Carlos E. R. wrote:
You could post for fstab here, and the output of:
lsblk --output \ NAME,FSTYPE,LABEL,UUID,PARTLABEL,PARTUUID,MOUNTPOINT,SIZE \ | grep -i swap
/dev/disk/by-id/ata-MAXTOR_6L060J3_663216018220-part8 swap swap defaults 0 0 /dev/disk/by-id/ata-MAXTOR_6L060J3_663216018220-part7 / ext4 acl,user_xattr 1 1 /dev/disk/by-id/ata-MAXTOR_6L060J3_663216018220-part1 /boot ext4 acl,user_xattr 1 2 /dev/disk/by-id/ata-Maxtor_6G160P0_G20CHMZG-part1 /home ext4 acl,user_xattr 1 2 /dev/disk/by-id/ata-MAXTOR_6L060J3_663216018220-part2 /local ext4 acl,user_xattr 1 2 /dev/disk/by-id/ata-MAXTOR_6L060J3_663216018220-part5 /opt ext4 acl,user_xattr 1 2 /dev/disk/by-id/ata-MAXTOR_6L060J3_663216018220-part6 /tmp ext4 acl,user_xattr 1 2 sdc5 swap 66af7539-2f50-482b-a430-121e3a5c85b3 10G As you can see, swap is on sdc5, but fstab says it's on sda8 (the 60 GB Maxtor drive). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-19 02:36, James Knott wrote:
Carlos E. R. wrote:
You could post for fstab here, and the output of:
lsblk --output \ NAME,FSTYPE,LABEL,UUID,PARTLABEL,PARTUUID,MOUNTPOINT,SIZE \ | grep -i swap
/dev/disk/by-id/ata-MAXTOR_6L060J3_663216018220-part8 swap swap defaults 0 0
sdc5 swap 66af7539-2f50-482b-a430-121e3a5c85b3 10G
As you can see, swap is on sdc5, but fstab says it's on sda8 (the 60 GB Maxtor drive).
Well... that's all the problem? Edit fstab and change it! :-) UUID=66af7539-2f50-482b-a430-121e3a5c85b3 swap defaults 0 0 -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 19/03/2014 00:27, Carlos E. R. a écrit :
lsblk --output \ NAME,FSTYPE,LABEL,UUID,PARTLABEL,PARTUUID,MOUNTPOINT,SIZE \ | grep -i swap
and one more command line that I didn't know and is very smart thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-19 09:14, jdd wrote:
Le 19/03/2014 00:27, Carlos E. R. a écrit :
lsblk --output \ NAME,FSTYPE,LABEL,UUID,PARTLABEL,PARTUUID,MOUNTPOINT,SIZE \ | grep -i swap
and one more command line that I didn't know and is very smart
I knew about lsblk since some time, but I found out about customizing the output just about a week or two ago. It is a nice command, yes. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2014-03-18 19:26, Felix Miata wrote:
On 2014-03-18 14:05 (GMT-0400) James Knott composed:
It's using labels, but there's not even a label for the new drive in fstab.
I'm pretty sure if you want a swap drive labeled you need to do it yourself. I don't think there's any way to get YaST to do it.
No, you'd be wrong. Try yourself, yast does it. Click on the button for "fstab options" and you will see the label entry inside. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2014-03-19 00:20 (GMT+0100) Carlos E. R. composed:
Felix Miata wrote:
On 2014-03-18 14:05 (GMT-0400) James Knott composed:
It's using labels, but there's not even a label for the new drive in fstab.
I'm pretty sure if you want a swap drive labeled you need to do it yourself. I don't think there's any way to get YaST to do it.
No, you'd be wrong. Try yourself, yast does it. Click on the button for "fstab options" and you will see the label entry inside.
I did that before writing my previous thread post. I see no option to create a label for formatting a swap partition type, only an option to mount by label if a label already exists. IOW, to format a swap partition, YaST offers no options at all. http://fm.no-ip.com/SS/Suse/yast2-131-part-opts.png -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-19 01:00, Felix Miata wrote:
On 2014-03-19 00:20 (GMT+0100) Carlos E. R. composed:
No, you'd be wrong. Try yourself, yast does it. Click on the button for "fstab options" and you will see the label entry inside.
I did that before writing my previous thread post. I see no option to create a label for formatting a swap partition type, only an option to mount by label if a label already exists. IOW, to format a swap partition, YaST offers no options at all. http://fm.no-ip.com/SS/Suse/yast2-131-part-opts.png
And I tried myself in YaST before posting. It does work :-) It is in your photo. Click on "Volume label", then write a label, and the label is created. If you have "device name" active, the label is not created. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2014-03-19 01:11 (GMT+0100) Carlos E. R. composed:
Felix Miata wrote:
On 2014-03-19 00:20 (GMT+0100) Carlos E. R. composed:
No, you'd be wrong. Try yourself, yast does it. Click on the button for "fstab options" and you will see the label entry inside.
I did that before writing my previous thread post. I see no option to create a label for formatting a swap partition type, only an option to mount by label if a label already exists. IOW, to format a swap partition, YaST offers no options at all. http://fm.no-ip.com/SS/Suse/yast2-131-part-opts.png
And I tried myself in YaST before posting. It does work :-)
I did not all the way through, for three reasons: 1-absence of existing swap partitions lacking labels; 2-lack of interest in creating new a swap partition just to test this; 3-the only things I ever do with the YaST "partitioner" is choose mount point, choose mounting options, and optionally select to be formatted... Except for one time about three years ago on a 2TB data-only HD, all of my BIOS-compatible partition table operations I do with DFSee, a cross platform app with binaries functionally and behaviorally identical for DOS, Linux, Mac, OS/2 & Windows.
It is in your photo. Click on "Volume label", then write a label, and the label is created.
That is non-intuitive (unexpected) workflow. Everything else in that window is about what gets written to fstab. The logical place to create the label would be elsewhere involving writing to a partition, such as formatting and formatting options. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-19 02:16, Felix Miata wrote:
On 2014-03-19 01:11 (GMT+0100) Carlos E. R. composed:
It is in your photo. Click on "Volume label", then write a label, and the label is created.
That is non-intuitive (unexpected) workflow. Everything else in that window is about what gets written to fstab. The logical place to create the label would be elsewhere involving writing to a partition, such as formatting and formatting options.
Well, yes, it could be elsewhere. However, in that dialog you select other mount options (uuid, id, etc), which you don't need to create yourself. The label is the exception. So, there is arguably some logic in having it there. Not only only that, but you can not add a label unless you select "mount". I often create partitions I do not intend to mount (external media) and can not add a label. Lately, I'm using gparted instead. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Carlos E. R. wrote:
And I tried myself in YaST before posting. It does work :-)
It is in your photo. Click on "Volume label", then write a label, and the label is created.
If you have "device name" active, the label is not created.
Found the button. After setting it to Volume label, it appeared in fstab with a label. Then after changing it to device ID, it remained in fstab, but with a device ID. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-19 02:32, James Knott wrote:
Carlos E. R. wrote:
Click on the button for "fstab options" and you will see the label entry inside.
Where do you see that button?
See the photo Felix linked to. The button is partly covered, but it reads "fstab options". -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 18/03/14 08:28 AM, James Knott wrote:
I recently moved my swap partition to a new drive. Partioner and swaplabel show it on the new drive, but it's still on the old drive according to fstab. How do I get fstab to show the correct drive/partition? Shouldn't Partitioner have updated it?
Edit by hand. I have no reason to believe that the paritioner tools updates the fstab. -- Where there is no vision, the people perish. - Proverbs 29:18 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 03/18/2014 09:00 AM, Anton Aylward pecked at the keyboard and wrote:
On 18/03/14 08:28 AM, James Knott wrote:
I recently moved my swap partition to a new drive. Partioner and swaplabel show it on the new drive, but it's still on the old drive according to fstab. How do I get fstab to show the correct drive/partition? Shouldn't Partitioner have updated it?
Edit by hand. I have no reason to believe that the paritioner tools updates the fstab.
It should if you use a mount point or swap in the configuration. It has for me when adding a second drive for storage/backup. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 18/03/14 09:21 AM, Carlos E. R. wrote:
On 2014-03-18 14:00, Anton Aylward wrote:
Edit by hand. I have no reason to believe that the paritioner tools updates the fstab.
YaST does, mostly.
True. But partitioner tools like cfdisk don't. Mr Knott didn't say what he used. I'd expect him to say Yast if he used Yast. Perhaps it was n oversight - we all do that at times. -- The first responsibility of a leader is to define reality. The last is to say thank you. - Max DePree -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Anton Aylward wrote:
On 18/03/14 09:21 AM, Carlos E. R. wrote:
On 2014-03-18 14:00, Anton Aylward wrote:
Edit by hand. I have no reason to believe that the paritioner tools updates the fstab.
YaST does, mostly.
True. But partitioner tools like cfdisk don't. Mr Knott didn't say what he used. I'd expect him to say Yast if he used Yast.
He did say "Partitioner" (capital P), which most often means the YaST Partitioner. -- Per Jessen, Zürich (17.7°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 18/03/14 09:44 AM, Per Jessen wrote:
Anton Aylward wrote:
On 18/03/14 09:21 AM, Carlos E. R. wrote:
On 2014-03-18 14:00, Anton Aylward wrote:
Edit by hand. I have no reason to believe that the paritioner tools updates the fstab.
YaST does, mostly.
True. But partitioner tools like cfdisk don't. Mr Knott didn't say what he used. I'd expect him to say Yast if he used Yast.
He did say "Partitioner" (capital P), which most often means the YaST Partitioner.
Why don't we ask rather than speculate? -- If you think you can do a thing or that you cannot do a thing, in either case you are right. - Henry Ford -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
On 2014-03-18 14:00, Anton Aylward wrote:
Edit by hand. I have no reason to believe that the paritioner tools updates the fstab. YaST does, mostly.
The Partitioner is part of Yast. It's under System. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-03-18 14:51, James Knott wrote:
Carlos E. R. wrote:
On 2014-03-18 14:00, Anton Aylward wrote:
Edit by hand. I have no reason to believe that the paritioner tools updates the fstab. YaST does, mostly.
The Partitioner is part of Yast. It's under System.
I know. But we were not sure you had used that one. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 18/03/2014 15:53, Carlos E. R. a écrit :
I have no reason to believe that the paritioner tools updates the fstab.
what's sure is that fdisk do not jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Anton Aylward
-
Carlos E. R.
-
Felix Miata
-
James Knott
-
jdd
-
Ken Schneider - openSUSE
-
Per Jessen