 |
|
| Linux Forum Index » Linux - Suse Forum » Mounting Linux partition... |
|
Page 3 of 4 Goto page Previous 1, 2, 3, 4 Next |
|
| Author |
Message |
| Shmuel (Seymour J.) Metz... |
Posted: Wed Oct 28, 2009 3:52 pm |
|
|
|
Guest
|
In <slrnhege5q.ejo.houghi at (no spam) penne.houghi>, on 10/28/2009
at 01:27 PM, houghi <houghi at (no spam) houghi.org.invalid> said:
Quote: What I do when I am done with YaST is edit fstab so that the order is in
an order I like. It will change lines, not delete them and add at the end
afterwards.
I don't recall the details, but I've had cases where I edited a
configuration file manually and Yast later overwrote my changes. I've
found it to be safer to just use Yast across the board, and only edit
those files that Yast doesn't handle.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap at (no spam) library.lspace.org |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Wed Oct 28, 2009 8:42 pm |
|
|
|
Guest
|
Am Mittwoch, 28. Oktober 2009 20:11, VWWall a écrit :
Quote: Strangely enough, openSUSE already has /dev/disk/by-label,
which shows *all* partitions that have been given labels.
Actually, only file system labels are in /dev/disk/by-label,
not the partition labels assigned upon creation with
parted. Partitions used as swap or raid member do
not show.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| VWWall... |
Posted: Wed Oct 28, 2009 11:51 pm |
|
|
|
Guest
|
Marcel Bruinsma wrote:
Quote: Am Mittwoch, 28. Oktober 2009 20:11, VWWall a écrit :
Strangely enough, openSUSE already has /dev/disk/by-label,
which shows *all* partitions that have been given labels.
Actually, only file system labels are in /dev/disk/by-label,
not the partition labels assigned upon creation with
parted. Partitions used as swap or raid member do
not show.
Those assigned partition numbers are shown at the end of entries in
/dev/disk/by-id and also in /dev/disk/by-path.
I used /sbin/e2label to label partition sda11 as "PCLOS_root".
It shows in /dev/disk/by-label as such.
I assume it defines, (and shows), labels actually written to the boot
record of the partition. These will show with blkid, as will the UUID.
--
Virg Wall |
|
|
| Back to top |
|
|
|
| David Bolt... |
Posted: Thu Oct 29, 2009 1:56 am |
|
|
|
Guest
|
On Thursday 29 Oct 2009 05:51, while playing with a tin of spray paint,
VWWall painted this mural:
Quote: Marcel Bruinsma wrote:
Actually, only file system labels are in /dev/disk/by-label,
not the partition labels assigned upon creation with
parted.
Oh, I missed that part. Partitions don't have labels although they do
have types, e.g. 82 is for swap, 83 for a Linux file system, 8E for one
that's able to be a part of a logical volume.
Quote: I assume it defines, (and shows), labels actually written to the boot
record of the partition. These will show with blkid, as will the UUID.
The labels are stored inside the superblock of the file system, which
may or may not be the boot record (sector 0), and are of a variety of
lengths. Reiserfs and ext2/3 can have upto 16 character labels, and
will truncate a label any longer when creating the file system. XFS can
have upto 12 characters but will abort when creating a file system if
the given label is longer. JFS supports labels, but the maximum number
of characters for the label isn't specified in the man page.
Regards,
David Bolt
--
Team Acorn: www.distributed.net OGR-NG at (no spam) ~100Mnodes RC5-72 at (no spam) ~1Mkeys/s
openSUSE 10.3 32b | openSUSE 11.0 32b | |
openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1
RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 |
|
|
| Back to top |
|
|
|
| David Bolt... |
Posted: Thu Oct 29, 2009 2:18 am |
|
|
|
Guest
|
On Thursday 29 Oct 2009 07:27, while playing with a tin of spray paint,
houghi painted this mural:
Quote: Shmuel Metz wrote:
I don't recall the details, but I've had cases where I edited a
configuration file manually and Yast later overwrote my changes. I've
found it to be safer to just use Yast across the board, and only edit
those files that Yast doesn't handle.
I have heard about this by people over time, yet I never have noticed it
in the years since at least SuSE 6.3 where I have been using YaST and
edited fstab by hand.
I've seen it happen where I've made some changes to /etc/fstab, namely
reordering the partition ordering and some other cosmetic changes
like making the various columns line up, and then had YaST reorder and
destroy the cosmetic changes. However, it's been a while since that
happened and, since I now only use the YaST partitioner during the
installation, that's not an issue. Interestingly, it do
Quote: Sure it changes my settings but only those changes that I select to be
changed.
One of my favourite things to do after a fresh install is to go through
the /etc/sysconfig files turning on and off various options.
Quote: I am not saying it does not happen. I am saying that apparently either I
am very lucky, I do not notice the changes or YaST is afraid of me and
does not dare to change things that I do not want to change.
Maybe it's afraid of you. Have you ever wielded a debugger in anger
anywhere near YaST?
Regards,
David Bolt
--
Team Acorn: www.distributed.net OGR-NG at (no spam) ~100Mnodes RC5-72 at (no spam) ~1Mkeys/s
openSUSE 10.3 32b | openSUSE 11.0 32b | |
openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1
RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Thu Oct 29, 2009 2:28 am |
|
|
|
Guest
|
Am Donnerstag, 29. Oktober 2009 06:51, VWWall a écrit :
Quote: Marcel Bruinsma wrote:
Am Mittwoch, 28. Oktober 2009 20:11, VWWall a écrit :
Strangely enough, openSUSE already has /dev/disk/by-label,
which shows *all* partitions that have been given labels.
Actually, only file system labels are in /dev/disk/by-label,
not the partition labels assigned upon creation with
parted. Partitions used as swap or raid member do
not show.
Those assigned partition numbers are shown at the end
of entries in /dev/disk/by-id and also in /dev/disk/by-path.
Yes, but partitions also have a label, if you create them with the
parted command mkpart, e.g. 'mkpart SuSE_root 64 16777279'.
These labels (e.g. SuSE_root) are stored in the partition table
inside the disk label, not on the partition itself.
Quote: I used /sbin/e2label to label partition sda11 as "PCLOS_root".
It shows in /dev/disk/by-label as such.
That is the label of the file system created on partition sda11,
which is stored in the super block of that file system (for ext
file systems at least, other file system types might store it in
a different location of the file system).
If you erase the file system (dd if=/dev/zero of=/dev/sda11),
the file system label disappears, but the partition label will
still be there. The partition label is only removed when the
disk label (and thus the partition table) is erased (e.g.
dd if=/dev/zero of=/dev/sda).
Unfortunately, udev doesn't create links in /dev/disk/by-label
for the partition labels, only for the file system labels.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Thu Oct 29, 2009 2:49 am |
|
|
|
Guest
|
Am Donnerstag, 29. Oktober 2009 08:45, David Bolt a écrit :
Quote: On Thursday 29 Oct 2009 02:42, while playing with a tin of spray
paint, Marcel Bruinsma painted this mural:
Am Mittwoch, 28. Oktober 2009 20:11, VWWall a écrit :
Strangely enough, openSUSE already has /dev/disk/by-label,
which shows *all* partitions that have been given labels.
Actually, only file system labels are in /dev/disk/by-label,
not the partition labels assigned upon creation with
parted. Partitions used as swap
Yes they do:
You're right, the SWAPSPACE2 style swap areas, can be given
a label upon creation. That, however, is not the same thing as
the partition label, assigned with the mkpart parted command.
The swap area label assigned with mkswap is similar to a file
system label assigned with mke2fs (or tune2fs).
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Thu Oct 29, 2009 2:52 am |
|
|
|
Guest
|
Am Donnerstag, 29. Oktober 2009 08:56, David Bolt a écrit :
Quote: On Thursday 29 Oct 2009 05:51, while playing with a tin of spray
paint, VWWall painted this mural:
Marcel Bruinsma wrote:
Actually, only file system labels are in /dev/disk/by-label,
not the partition labels assigned upon creation with
parted.
Oh, I missed that part. Partitions don't have labels
Of course, partitions have a partition label, which is stored
in the partition table, which is part of the disk label.
Quote: although they do have types, e.g. 82 is for swap, 83 for
a Linux file system, 8E for one that's able to be a part of
a logical volume.
Those partition types are only used for the old, deprecated
mbr format (not really a disk label). Of course, mbr doen't
provide partition labels (or 64 bit LBAs, or backup, etc.).
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| David Bolt... |
Posted: Thu Oct 29, 2009 3:35 am |
|
|
|
Guest
|
On Thursday 29 Oct 2009 08:49, while playing with a tin of spray paint,
Marcel Bruinsma painted this mural:
Quote: Am Donnerstag, 29. Oktober 2009 08:45, David Bolt a écrit :
Yes they do:
You're right, the SWAPSPACE2 style swap areas, can be given
a label upon creation. That, however, is not the same thing as
the partition label, assigned with the mkpart parted command.
Which version of parted are you using? The one supplied with openSUSE
11.1, parted-1.8.8, doesn't support partition labels. There the mkpart
command is as follows:
mkpart part-type [fs-type] start end
part-type is the partition type, primary, extended or logical
fs-type is the file system type, and is optional
start and end are the start and end of the partition
Regards,
David Bolt
--
Team Acorn: www.distributed.net OGR-NG at (no spam) ~100Mnodes RC5-72 at (no spam) ~1Mkeys/s
openSUSE 10.3 32b | openSUSE 11.0 32b | |
openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1
RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Thu Oct 29, 2009 4:29 am |
|
|
|
Guest
|
Am Donnerstag, 29. Oktober 2009 10:35, David Bolt a écrit :
Quote: On Thursday 29 Oct 2009 08:49, while playing with a tin of spray
paint, Marcel Bruinsma painted this mural:
You're right, the SWAPSPACE2 style swap areas, can be given
a label upon creation. That, however, is not the same thing as
the partition label, assigned with the mkpart parted command.
Which version of parted are you using? The one supplied with
openSUSE 11.1, parted-1.8.8, doesn't support partition labels.
There the mkpart command is as follows:
mkpart part-type [fs-type] start end
part-type is the partition type, primary, extended or logical
fs-type is the file system type, and is optional
start and end are the start and end of the partition
Version 1.8.9 (with a few local minor-bug-fixes). Older
versions (1.8.7 and 1.8. do support partition labels
too, even if the manual doesn't mention them. The
semantics of mkpart (and many other commands)
depend on the disk label type (see mklabel). The gpt
disk label partition table is linear; 'primary', 'logical'
and 'extended' are meaningless with a linear partition
table. Instead, the 'part-type' string is used as the
label of the partiton. The label can be modified with
the name command.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| Marcel Bruinsma... |
Posted: Thu Oct 29, 2009 4:32 am |
|
|
|
Guest
|
Am Donnerstag, 29. Oktober 2009 11:29, Marcel Bruinsma a écrit :
Quote: Am Donnerstag, 29. Oktober 2009 10:35, David Bolt a écrit :
On Thursday 29 Oct 2009 08:49, while playing with a tin of spray
paint, Marcel Bruinsma painted this mural:
You're right, the SWAPSPACE2 style swap areas, can be given
a label upon creation. That, however, is not the same thing as
the partition label, assigned with the mkpart parted command.
Which version of parted are you using? The one supplied with
openSUSE 11.1, parted-1.8.8, doesn't support partition labels.
There the mkpart command is as follows:
mkpart part-type [fs-type] start end
part-type is the partition type, primary, extended or logical
fs-type is the file system type, and is optional
start and end are the start and end of the partition
Version 1.8.9 (with a few local minor-bug-fixes).
Sorry, that should have been 1.9.0, of course.
Quote: Older
versions (1.8.7 and 1.8.  do support partition labels
too, even if the manual doesn't mention them. The
semantics of mkpart (and many other commands)
depend on the disk label type (see mklabel). The gpt
disk label partition table is linear; 'primary', 'logical'
and 'extended' are meaningless with a linear partition
table. Instead, the 'part-type' string is used as the
label of the partiton. The label can be modified with
the name command.
--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! # |
|
|
| Back to top |
|
|
|
| houghi... |
Posted: Thu Oct 29, 2009 6:14 am |
|
|
|
Guest
|
David Bolt wrote:
Quote: I am not saying it does not happen. I am saying that apparently either I
am very lucky, I do not notice the changes or YaST is afraid of me and
does not dare to change things that I do not want to change.
Maybe it's afraid of you. Have you ever wielded a debugger in anger
anywhere near YaST?
There are worse things it is afraid of. WSell, actualy openSUSE is
afraid of it. By starting makeSUSEdvd and especially the options to add
stuff and make your own distro, they started a small webapllication
Studio. Yeah that's it.
houghi
--
Remind me to write an article on the compulsive reading of news. The
theme will be that most neuroses can be traced to the unhealthy habit
of wallowing in the troubles of five billion strangers. -- Heinlein |
|
|
| Back to top |
|
|
|
| Shmuel (Seymour J.) Metz... |
Posted: Thu Oct 29, 2009 6:59 am |
|
|
|
Guest
|
In <slrnheigv4.6q1.houghi at (no spam) penne.houghi>, on 10/29/2009
at 08:27 AM, houghi <houghi at (no spam) houghi.org.invalid> said:
Quote: I have heard about this by people over time, yet I never have noticed it
in the years since at least SuSE 6.3 where I have been using YaST and
edited fstab by hand.
I believe that I was still using DeadRat when SuSE 6.3 was current.
Quote: Sure it changes my settings but only those changes that I select to be
changed.
In my case it reverted changes that I had previously made, and I had not
selected for it to do so. I can't guaranty that it was fstab and
Partitioner.
Quote: or YaST is afraid of me
Fear is the mind killer.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap at (no spam) library.lspace.org |
|
|
| Back to top |
|
|
|
| Shmuel (Seymour J.) Metz... |
Posted: Thu Oct 29, 2009 7:08 am |
|
|
|
Guest
|
In <hcbl3v$dgg$2 at (no spam) aioe.org>, on 10/29/2009
at 09:52 AM, Marcel Bruinsma <mb at (no spam) nomail.afraid.org> said:
Quote: Of course, partitions have a partition label, which is stored in the
partition table, which is part of the disk label.
Logical drives in extended logical partitions also have labels, as do
logical volumes in LVM.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap at (no spam) library.lspace.org |
|
|
| Back to top |
|
|
|
| Rikishi42... |
Posted: Thu Oct 29, 2009 1:27 pm |
|
|
|
Guest
|
On 2009-10-28, Shmuel Metz <spamtrap at (no spam) library.lspace.org.invalid> wrote:
Quote:
In <slrnhege5q.ejo.houghi at (no spam) penne.houghi>, on 10/28/2009
at 01:27 PM, houghi <houghi at (no spam) houghi.org.invalid> said:
What I do when I am done with YaST is edit fstab so that the order is in
an order I like. It will change lines, not delete them and add at the end
afterwards.
I don't recall the details, but I've had cases where I edited a
configuration file manually and Yast later overwrote my changes. I've
found it to be safer to just use Yast across the board, and only edit
those files that Yast doesn't handle.
It used to be said that you had to run SuSEconfig after modifying a
configuration file manually. I allways did that, and never had any loss.
Just checked it out, seems 11.1 still has a SuSEconfig in it.
--
Any time things appear to be going better, you have overlooked
something. |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Wed Dec 02, 2009 9:24 am
|
|