search for: e2label

Displaying 20 results from an estimated 70 matches for "e2label".

Did you mean: dilabel
2015 Jul 08
0
[PATCH 2/5] labels: move e2label to ext2.c and call it locally
...aemon/ext2.c b/daemon/ext2.c index e8d2655..7bb1221 100644 --- a/daemon/ext2.c +++ b/daemon/ext2.c @@ -38,6 +38,7 @@ GUESTFSD_EXT_CMD(str_resize2fs, resize2fs); GUESTFSD_EXT_CMD(str_mke2fs, mke2fs); GUESTFSD_EXT_CMD(str_lsattr, lsattr); GUESTFSD_EXT_CMD(str_chattr, chattr); +GUESTFSD_EXT_CMD(str_e2label, e2label); /* https://bugzilla.redhat.com/show_bug.cgi?id=978302#c1 */ int @@ -123,14 +124,30 @@ do_tune2fs_l (const char *device) } int +ext_set_label (const char *device, const char *label) +{ + int r; + CLEANUP_FREE char *err = NULL; + + if (strlen (label) > EXT2_LABEL_MAX) { +...
2016 Oct 21
3
VM disk question
...r: 0x0001c6d3 Device Boot Start End Blocks Id System /dev/sda1 * 2048 20482047 10240000 83 Linux /dev/sda2 20482048 22530047 1024000 82 Linux swap / Solaris /dev/sda3 22530048 41943039 9706496 83 Linux however when I run: e2label /dev/sda1 / e2label: Bad magic number in super-block while trying to open /dev/sda1 Couldn't find valid filesystem superblock. Three questions: 1) Am I doing something wrong? 2) Is there a better way? 3) How do I support VM formats (VBox, VHD and VMWare) easily? Thanks, Jerry
2013 Nov 26
1
Filesystem labeling confusion or mess up
Hi, I do have an iscsi storage with two raidsets. I'm logged in to the target and get two devices: /dev/sdb and /dev/sdc. After formatting the devices with ext4 I realised, that I had used a wrong label, so I tried to relabel the devices. But now I'm confused: doing a e2label /dev/sdb or /dev/sdc returns always the same label name for both devices. so I did "e2label /dev/sdb students" and "e2label /dev/sdc staff" and now mounting the devices shows the same filesystem under sdb and sdc! Looks like sdc (an empty device) is gone... Any suggestions...
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...tNew ]; then candidate=RootNew fi if [ -z "$candidate" ]; then @@ -69,7 +69,8 @@ ovirt_boot_setup() { umount /liveos rc=0 else - lvrename HostVG $candidate RootNew + candidate_dev=$(readlink -f /dev/disk/by-label/$candidate) + e2label $candidate_dev RootNew rc=$? fi if [ $rc -ne 0 ]; then @@ -77,7 +78,7 @@ ovirt_boot_setup() { log "$(lvdisplay -c)" return $rc fi - mount /dev/HostVG/RootNew /liveos + mount $candidate_dev /liveos # install oVirt Node image for local boot...
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...if [ -z "$candidate" ]; then @@ -80,7 +87,7 @@ ovirt_boot_setup() { umount /liveos rc=0 else - candidate_dev=$(readlink -f /dev/disk/by-label/$candidate) + candidate_dev=$(findfs LABEL=$candidate 2>/dev/null) e2label $candidate_dev RootNew rc=$? fi @@ -90,7 +97,7 @@ ovirt_boot_setup() { return $rc fi - mount $candidate_dev /liveos + mount $candidate_dev /liveos/ rm -rf /liveos/LiveOS mkdir -p /liveos/LiveOS @@ -212,11 +219,7 @@ if [ $rc...
2008 Feb 05
2
obdfilter/datafs-OST0000/recovery_status
...a Scientific Linux 5 (derived from RHEL5) distro with e2fsprogs 1.40.4.cfs1. I''m doing the following: aaa() { set -x dmesg -c >/dev/null mkfs.lustre --fsname datafs --mdt --mgs --reformat /dev/sda1 mkfs.lustre --fsname datafs --ost --mgsnode=pool4 at tcp --reformat / dev/sda2 e2label /dev/sda1 e2label /dev/sda2 mount.lustre /dev/sda1 /mnt/data/mdt mount.lustre /dev/sda2 /mnt/data/ost0 dmesg -c >dmesg.0 mount.lustre pool4 at tcp:/datafs /mnt/datafs dmesg -c >dmesg.1 umount /mnt/datafs umount /mnt/data/ost0 umount /mnt/data/mdt e2label /dev/sda1 e2labe...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...tNew ]; then candidate=RootNew fi if [ -z "$candidate" ]; then @@ -69,7 +69,8 @@ ovirt_boot_setup() { umount /liveos rc=0 else - lvrename HostVG $candidate RootNew + candidate_dev=$(readlink -f /dev/disk/by-label/$candidate) + e2label $candidate_dev RootNew rc=$? fi if [ $rc -ne 0 ]; then @@ -77,7 +78,7 @@ ovirt_boot_setup() { log "$(lvdisplay -c)" return $rc fi - mount /dev/HostVG/RootNew /liveos + mount $candidate_dev /liveos # install oVirt Node image for local boot...
2015 Jul 08
5
[PATCH v2 0/4] labels: rework
We should use the existing function from specific fs, if not, move it to specific fs files. Chen Hanxiao (4): labels: move e2label to ext2.c and call it directly labels: move ntfslabel to ntfs.c labels: use existing do_xfs_admin for xfslabel labels: return ENOTSUP if could not set label for specific fs daemon/daemon.h | 2 ++ daemon/ext2.c | 23 ++++++++++++----- daemon/labels.c | 70 ++++-------------...
2012 Sep 14
3
directory /dev/disk/by-label
I am trying to create a CF card that boots 686 CentOS 6.3 On boot I get a message about /dev/disk/by-label/\x2f where \x2f is "/" cannot be found. Adding rdshell to the boot line and booting up sure enough the /dev/disk directory does not exist. What "creates" that early on in the boot process? My CF card was changed from UUID to LABEL. So I edited grub.conf and make
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove. This would break in the case of split Root and HostVG devices. Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-config-boot | 11 +-------- scripts/ovirt-config-uninstall | 48 ++++++++++++++++++++++++--------------- scripts/ovirt-functions | 33 +++++++++++++++++++++++++++ 3 files
2016 Jul 15
2
[PATCH] : Adding dlabel option to chain.c32
...048 411647 409600 200M EFI System > /dev/vda2 411648 1435647 1024000 500M Linux filesystem > /dev/vda3 1435648 22646783 21211136 10.1G Linux filesystem > /dev/vda4 22646784 25163775 2516992 1.2G Linux swap > > > # fatlabel /dev/vda1 > labelefi > > # e2label /dev/vda2 > labelboot > > # e2label /dev/vda3 > labelroot > > # swaplabel /dev/vda4 > LABEL: labelswap > ... > > > Filesystem *label* and *label* of a swap area > distinguish from > GPT *name* of a partition > _If_ I understand Erwan's patch co...
2004 Apr 15
2
Strange Fedora Booting problem: can not mount "LABEL=*"partitions
...nel (with SMP problem) boots > without a glitch, my vanilla 2.4.25 kernel plus libata patch > 2.4.25-libata8 fails with the above symptoms described. What happens without the libata patch? > The solution to fix it is: manually run "e2fsck -y -f /dev/hd?, > tune2fs -j /dev/hd?; e2label /dev/hd? <LABEL>" again even there is no > problem with file system, journal node and ext2 label, then reboot. Very very odd --- that really helps, every time? --Stephen
2015 Jul 08
9
[PATCH 0/5] labels: rework
We should use the existing function from specific fs, if not, move it to specific fs files. Chen Hanxiao (5): label: move btrfslabel to btrfs.c label: move e2label to ext2.c and call it locally label: move ntfslabel to ntfs.c label: use existing do_xfs_admin for xfslabel labels: return ENOTSUP if could not set label for specific fs daemon/btrfs.c | 16 +++++++++++ daemon/daemon.h | 4 +++ daemon/ext2.c | 29 +++++++++++++++---- daemon/labels.c | 8...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...cripts/ovirt-config-boot b/scripts/ovirt-config-boot index d545878..347fc18 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -88,7 +88,7 @@ ovirt_boot_setup() { rc=0 else candidate_dev=$(findfs LABEL=$candidate 2>/dev/null) - e2label $candidate_dev RootNew + e2label "$candidate_dev" RootNew rc=$? fi if [ $rc -ne 0 ]; then @@ -97,7 +97,7 @@ ovirt_boot_setup() { return $rc fi - mount $candidate_dev /liveos/ + mount "$candidate_dev" /l...
2008 Aug 15
1
Hard disk, format, filesystem
...0.51kB 100MB 100MB primary ext2 (parted) quit // If I try to create a file system on the new partition, // I get an error message: [root at mail dev]# mkfs ext3 sdb1 mke2fs 1.39 (29-May-2006) mkfs.ext2: invalid blocks count - sdb1 // I cannot create a volume label: [root at mail dev]# e2label sdb1 /mnt/mirror [root at mail dev]# e2label sdb1 [root at mail dev]# //fsck informs me like this: [root at mail dev]# e2fsck sdb1 e2fsck 1.39 (29-May-2006) The filesystem size (according to the superblock) is 77392578 blocks The physical size of the device is 24414 blocks Either the superblock...
2016 Oct 21
0
VM disk question
> However I wish to change the disk from UUID booting (fstab) to the old > style LABEL. > (so I can export it and use on another machine). > > however when I run: > e2label /dev/sda1 / > e2label: Bad magic number in super-block while trying to open /dev/sda1 > Couldn't find valid filesystem superblock. > > Three questions: > 1) Am I doing something wrong? > 2) Is there a better way? > 3) How do I support VM formats (VBox, VHD and VMWare) easil...
2012 Jan 05
2
swap labeling annoyance
I just upgraded a blade server via rsync from another server. Rebuilt the initrd. It boots fine... except that it won't turn on the swap partition. Several times, I've made sure swap was off, then mkswap -L SWAP-sda3 /dev/sda3, but when I do swapon -L SWAP-sda3, it complains it can't find the device for the label. The only thing I find while googling, other than redoing what I've
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...fix=/grub (hd0) +setup --prefix=/boot/grub (hd0) EOF rc=$? if [ $rc -ne 0 ]; then @@ -175,7 +175,6 @@ EOF ovirt_store_config /etc/iscsi/initiatorname.iscsi umount /liveos - umount /boot # mark new Root ready to go, reboot() in ovirt-function switches it to active e2label $candidate_dev RootUpdate diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index af13935..77e00d0 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -22,14 +22,12 @@ fi default_overcommit=0.5 -default_boot_size=50 default_root_size=256 d...
2005 May 20
3
How NOT to have a disk recognized by grub?
Greetings: I'm upgrading a fileserver running 3.4 (upgrade to a larger disk). I backed up the data from the "old" disk and slapped in a newer, larger disk and installed Centos-3.4. No problems. Now, there are some files on the "old" disk that I forgot to move to the back-up disk, so I'd like to mount the "old" disk as /dev/hdd and reboot the system and
2012 Feb 27
4
[PATCH 0/4] Add various ntfs* tools and unify label setting.
This miscellaneous patch adds bindings for: - ntfsfix - ntfsclone - ntfslabel and unifies filesystem label setting through a single API 'set-label' which replaces 'set-e2label' and is also able to set labels on NTFS using the ntfslabel program. 'ntfsfix' has been added as a possible way to fix RHBZ#797760. However I have not found a way to fully fix this bug. See discussion in the bug. 'ntfsclone-in' and 'ntfsclone-out' have been added at t...