Re: [opensuse] /dev/disk/by-uuid ?
- From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
- Date: Tue, 31 Mar 2009 21:31:29 +0200 (CEST)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, 2009-03-31 at 15:07 -0400, Greg Freemyer wrote:
On Tue, Mar 31, 2009 at 2:58 PM, Randall R Schulz <> wrote:On Tuesday March 31 2009, Greg Freemyer wrote:...
# mkswap -L swap /dev/sda1
/dev/sda1: Device or resource busy
Obviously, it is in use.
You can't reformat a swap partition while it's being used, of course.
Use "swapoff" to take it out of service before recreating it then
use "swapon" to put it back into service.
# swapoff -a
swapoff: /dev/sda1: Cannot allocate memory
You have three alternatives:
- Try switching to text mode (init 3), to reduce the amount of memory in
use. If it fails try runlevel 1, which stops all services.
- Create another swapspace (on file, for example), add it, then remove
sda1, use mkswap to recreate it with a label, then revert the process
to leave only sda1. After sda1 is activated, change the fstab (the
kernel might not see the label till next reboot.
- Reboot to a live dvd or rescue dvd to do the change while the system is
not running - unless the live founds swap space and uses it.
Remember, all I want to do is "label" the swap partition and update my
fstab to reference it. I can label a mounted filesystem, so it seems
like there should be a tool to label a in use swap partition.
Well, it can be handy, but the devs probably did not find it useful enough to do it. As far as I remember, it is not possible to label a filesystem while in use, and often the kernel does not see the change till you reboot.
I know I'm being a bit pig headed, but every opensuse distro update
I've done recently has told me to abort my upgrade and move away from
/dev/sda style references in /etc/fstab and then restart the upgrade.
(many of my machines started life several versions ago.)
Mine too.
If OpenSUSE is going to advise doing that, it really should provide
basic tools for doing so.
I don't remember off-hand if yast automates this or not :-?
After all, sysadmins have to earn their potatoes somehow ;-)
- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAknSb5gACgkQtTMYHG2NR9UI1wCeJy6lJb0chgahu4Xh60YPp+O/
UKgAnj+89H9jcVHOLR7RA+0+0kdEXyy9
=5BmA
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] /dev/disk/by-uuid ?
- From: Felix Miata
- Re: [opensuse] /dev/disk/by-uuid ?
- From: Greg Freemyer
- Re: [opensuse] /dev/disk/by-uuid ?
- References:
- [opensuse] /dev/disk/by-uuid ?
- From: Greg Freemyer
- Re: [opensuse] /dev/disk/by-uuid ?
- From: Felix Miata
- Re: [opensuse] /dev/disk/by-uuid ?
- From: Greg Freemyer
- Re: [opensuse] /dev/disk/by-uuid ?
- From: Randall R Schulz
- Re: [opensuse] /dev/disk/by-uuid ?
- From: Greg Freemyer
- [opensuse] /dev/disk/by-uuid ?
- Prev by Date: Re: [opensuse] Is there a way to take a customized FF to another user?
- Next by Date: Re: [opensuse] New ATI driver released... And works!
- Previous by thread: Re: [opensuse] /dev/disk/by-uuid ?
- Next by thread: Re: [opensuse] /dev/disk/by-uuid ?
- Index(es):
Relevant Pages
|