search for: mtab

Displaying 20 results from an estimated 204 matches for "mtab".

Did you mean: mta
2008 Jul 03
1
extlinux and install script
.../usr/bin/extlinux -i /mnt/boot /mnt/boot is device proc /usr/bin/extlinux: cannot open device proc But /mnt/boot is mounted on /dev/sda1 and ext3 file system. I read the source code and found the following code in install_loader() if ( (mtab = setmntent("/proc/mounts", "r")) ) { while ( (mnt = getmntent(mtab)) ) { if ( (!strcmp(mnt->mnt_type, "ext2") || !strcmp(mnt->mnt_type, "ext3")) && !stat(mnt->mnt_fsname, &dst) &&...
2001 Oct 24
3
a bug in ext3 code for 2.4.7
Hello , I use kernel 2.4.7 patched with corresponding ext3 patch. The problem I have is that when I startup I get a panic in a kernel. I started to debug util-linux and found that mount does a segmentation fault when trying to open /etc/mtab file. The segmentation fault ocurrs on open() call inside mtab_is_writable() procedure: printf("mtab_writable: pass 1\n"); if (ret == -1) { int fd; if (!MOUNTED) printf("mtab_writable: MOUNTED=null\n"); fd = open("/etc/passwd", O_RDWR | O_CRE...
2001 Nov 06
0
[PATCH] nomtab support
This patch was sent to me by Urban Widmark <urban@teststation.com> (thanks Urban!). It allows me to mount remote Win shares to my Linux box automatically. I'm using kernel automounter. The problem was that I have a ro root fs and my /etc/mtab isn't writable (symlinked to /proc/mounts). Patch adds -n and -o nomtab options for smbmount. -o nomtab was particularly useful for me. I don't see it applied in Samba 2.2.2. I rediffed it for 2.2.2, compiled, and so far it is working fine. I'd like to see it merged into ma...
2001 Sep 05
3
[e2fsprogs-1.24] "fsck -A -a" fails on reboot
...ilure for example, "fsck -A -a" cannot continue after checking the root filesystem on reboot, issuing the error msg "/dev/???? is mounted, e2fsck: Cannot continue, aborting." The problem is that e2fsck in e2fsck-1.24 no longer takes into account whether /etc/mtab is writable or not; whenever it finds an mounted entry in /etc/mtab (/proc not mounted yet at this time), it assumes it's already mounted, even though the system has just experienced a crash. I think the mtab checking code in older version of e2fsck is still needed: --- e2fsprogs-...
2012 Feb 15
0
corrupted /etc/mtab
Hello everyone, It seems like we have a corrupted /etc/mtab file and I just wanted to check that my plan of action is correct. df -k returns: df: cannot read table of mounted file systems: No such file or directory ls -la mtab: ?--------- ? ? ? ? ? mtab messages full of errors: EXT3-fs error (device cciss/c0d2p1): ext3_look...
2005 Aug 23
3
Not mounting on boot
...ey never mount on boot. [I don't reboot very often, about 1 every 1.5yrs or so, for HW changes and alike] But regardless, I'd rather automate the mounting process for these drives. [I don't want to use a boot script] The /etc/fstab does not show any ocfs drives The /etc/mtab shows the original ocfs drives I've tried editing the mtab to include the new drives, but it doesn't mount the drives and they're not listed in mtab post reboot. Any help much appreciated Thanks in advance clarke ||||||||||||||||||||||||||| P. Clarke Thomas SysAdmin Houghton Interna...
2002 Aug 25
2
2 root disks sdb1,sdc1; if set "root=/dev/sdc1", mtab lies saying sdb1 is root!?
.... When I alter SYSLINUX.CFG with: "append initrd=initrd.img root=/dev/sdc1". The boot also works just fine: dmesg|grep Kernel results in: Kernel command line: initrd=initrd.img root=/dev/sdc1 BOOT_IMAGE=vmlinuz -b THE PROBLEM: the mount command and /etc/mtab indicate that "/dev/sdb1" is root- I know this is false because the sdb disk is never accessed (LED never lites) , and because I have distinct files on sdc not on sdb. If I reverse the SCSI ids on the 2 RH 7.3 disks the behavior is identical when I boot from /dev/sdc1. W...
2005 Jun 15
3
Burning CDs
...ave just installed 4.1 on a new Dell Latitude d610. It does not automount the CDs. When I mount the CD manually I get: $mount /media/cdrecorder mount: block device /dev/hdc is write-protected, mounting read-only The CD writer is an Philips IDE: CDRW/DVD-ROM CDD5263 Here is my mtab: $ cat /etc/mtab /dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0 none /proc proc rw 0 0 none /sys sysfs rw 0 0 none /dev/pts devpts rw,gid=5,mode=620 0 0 usbfs /proc/bus/usb usbfs rw 0 0 /dev/sda1 /boot ext3 rw 0 0 none /dev/sh...
2016 May 12
0
[PATCH 09/11] appliance: fix errors in init for SLE / openSUSE
Running the init on openSUSE and SLE machines showed up minor errors: * skip the /etc/mtab symlink creation if the file is already existing. * make sure /run/lvm is created or lvmetab will complain. --- appliance/init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appliance/init b/appliance/init index 413a95f..b22032e 100755 --- a...
2011 Feb 02
0
[PATCH] appliance: Force /etc/mtab to be a symlink to /proc/mounts
I'm currently testing this patch on Rawhide, F14, Debian and Ubuntu. It's required to fix Rawhide at the moment, so I'm going to add this patch to the Rawhide SRPM. An alternative fix would be to change the daemon to always parse '/proc/mounts'. I'm not really sure which is better. Rich. -- Richard Jones, Virtualization Group, Red Hat
2011 Feb 03
0
[PATCH] daemon: Parse /proc/mounts instead of /etc/mtab
This is a better alternative to: https://www.redhat.com/archives/libguestfs/2011-February/msg00006.html Tested by running 'make check'. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages.
2001 Sep 24
7
ext3 and kernel 2.4.10
...0 0 none /dev/pts devpts gid=5,mode=620 0 0 /dev/hda6 swap swap defaults 0 0 /dev/hda7 swap swap defaults 0 0 Weierstrass:[~] > cat /etc/mtab /dev/hda5 / ext3 rw 0 0 none /proc proc rw 0 0 none /dev/pts devpts rw,gid=5,mode=620 0 0 I don't know where is the problem. Regards, JKB
2013 May 03
3
[PATCH] xfstests: unmount scratch mnt in test 307
So if you have a mount command that doesn''t use /etc/mtab then it will spit out a different device for the mounted device. So say we have SCRATCH_DEV_POOL="/dev/sda /dev/sdb /dev/sdc" we will turn this into SCRATCH_DEV="/dev/sda" SCRATCH_DEV_POOL="/dev/sdb /dev/sdc" and the...
2005 May 19
1
extlinux and block loopbacks
...isk image, but I've hit a wall. I've got a partitioned hard disk image with one ext2 partition in it. I've mounted the partition through a block loopback device (/dev/loop1 on the host) and chrooted into it in order to run extlinux. Within the chroot environment, /etc/mtab says: /dev/hda1 / ext2 rw 0 0 ...and within the chroot, /dev/hda1 is a device node for the loopback. But when I run extlinux, it complains: extlinux: cannot find device for path /boot I'm confused. I know that extlinux is reading /etc/mtab, and I know t...
2013 Mar 26
1
[bug] mount and /proc/mounts disagrees
3.8.0+ #3 This happened after ''umount /btrfs'' was interrupted by ctl-C # mount | egrep btrfs /dev/mapper/mpathe on /btrfs type btrfs (rw,degraded) # cat /etc/mtab | egrep btrfs /dev/mapper/mpathe /btrfs btrfs rw,degraded 0 0 # cat /proc/mounts | egrep btrfs # umount /btrfs umount: /btrfs: not mounted # -Anand -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majo...
2014 Mar 18
0
Problem with RW_MOUNT in a diskless system
...S 5.10 and the system is read-only. It has been working fine for a while (although I discard some initiation errors, but as of functionality it is working). But recently when I tried to setup autofs to mount some of the directories from NIS server, I've been having problems because /etc/mtab is not writable. I have enabled temporary state in the OS, please find below my /etc/sysconfig/readonly-root: ==================== # Set to 'yes' to mount the system filesystems read-only. READONLY=yes # Set to 'yes' to mount various temporary state as either tmpfs # or...
2006 Jul 01
3
cifs mounts in smbfstab
...mbfstab; //msserver/share /mnt/smb-share cifs file_mode=0777,dir_mode=0777,credentials=/etc/cifsusers/admin,rw However, when using 'mount /mnt/smb_dir' I get; mount: can't find /mnt/smb_dir in /etc/fstab or /etc/mtab Using 'mount -a' doesn't mount either. If I use "smbmount /mnt/smb_dir" I get; Could not resolve mount point I get the same error if I use the IP address in place of the server name in smbfstab. Any ideas? I can ping by name and the mount works if in fstab. Than...
2006 Sep 15
1
Root filesystem on ext2
Dear All, I have a following query: - My initrd image is created using ext2 filesystem. - The filesystem type of / is specified as ext3 in /etc/fstab file. - I dont mount the real root during execution of linuxrc because I referred some documents saying that if you dont mount real root from linuxrc the kernel will mount it after linuxrc is finished. - The system boots up
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...file changed, 32 insertions(+), 16 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 55a1495..7bb7443 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_file, "r"); @@ -1131,7 +1131,7 @@ static...
2008 Jul 21
5
OCFS processes active after a umount [SEC=UNOFFICIAL]
Hello, I have two OCFS file file systems mounted at /ocfs_1 and /ocfs_2. I have unmounted both OCFS file systems and was trying to then offline and unload OCFS. The offline command failed with - # ./o2cb offline Stopping O2CB cluster ocfs2: Failed Unable to stop cluster as heartbeat region still active Looking at the processes on this box shows a number of OCFS processes are still