General :: How To Umount "/" File System
Jun 3, 2011
I want to umount root partition. below is the o/p for df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 12G 3.2G 7.8G 30% /
tmpfs 506M 0 506M 0% /dev/shm
If i give #umount /dev/sda1 im getting the below error.i can't unmount the file system
umount: /: device is busy
umount: /: device is busy
View 14 Replies
ADVERTISEMENT
Feb 1, 2010
I have built a kernel with a ramdisk(ramdisk.image.gz) included. Also in the kernel command line I specified root=/dev/ram0. I am trying to use this ramdisk to load a loopback file as the root filesystem off a fat partition. This is /sbin/init from the ramdisk.
#!/bin/sh
mount -n -t msdos /dev/mmcblk0p1 /mnt
losetup /dev/loop0 /mnt/linux/linuxdsk.img
mount -t ext2 /dev/loop0 /mnt2
[Code]....
The problem is both umount and blockdev report "device is busy". I want to free up this RAM any suggestions?
View 1 Replies
View Related
Oct 25, 2010
I've mounted a share using standard nomenclature for the NFS mount command with the following command line:
mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw)
mnt_for_70 is a mount point I created on {IP address2}
I'm confuse and want to be sure I use the correct command on the correct host to correctly umount the nfs share.
Would I execute umount /mnt_for_70 on {IP address2}
Not sure if such a simple command will work. As this is a semi-production host pair, I hesitate to just umount so simply & I have no test systems to try this on...
View 2 Replies
View Related
Mar 27, 2010
Is there a way to provide post-mount and pre-umount scripts in Linux?
I am trying to do some scripts on storage media when mounted and before umounting (eg, for syncing).
View 3 Replies
View Related
Dec 15, 2010
I am using ubuntu8.04 and i am not able to umount my usb using unmount option even as root on command line.
If i try the same using mouse right click, it showing error mesage as follows. "Cannot unmount volume. The volume 'STEEVEN_1' was probably mounted manually on the command line. Details: Device to unmount is not in /media/.halmtab so it is not mounted by HAL."
usb label is appearing even after the unmouting the usb manually.
next time mounting adding another hyphen to the usb label as follows.
steeven_1, steeven_1_, steeven_1__, steeven_1___ etc.
View 2 Replies
View Related
Jul 19, 2011
I am writing this software that creates virtual block device nodes almost like loop does. I need to allow non-superusers to mount and umount filesystems from these devices. I don't know the names of the block device nodes beforehand so i can't use fstab entries to add "user" or "owner" flags there.
Currently i solve this by providing a small suid helper tool that verifies that this is indeed "my" block device the user is trying to mount and then just call /sbin/mount or /sbin/umount to do the job. This is definitely better than setting a suid bit for the whole program but not really perfect.
View 1 Replies
View Related
Aug 1, 2011
I'm a little bit confused with partitioning the filesystem in Linux. the difference between creating the file system with fdisk and mkfs (when formatting the disk). I can't clearly tell my problem, so please look at this picture:
View 2 Replies
View Related
Apr 6, 2010
i have generated .exe file from C file (ie filename.c ) after compiling in linux machine with -O option. I wish to know about how to run that .exe file when linux system starts up ?
View 3 Replies
View Related
Feb 22, 2010
So 2 days ago everything was all fine on my machine. Has been for about a month, but all of a sudden as of yesterday I have no sound, I am seeing IRQ interupts on boot, During boot I am seeing file system is not clean, , and swap space is being used for the first time while doing normal task, etc. These are 2 new hard drives in RAID 1 with ReiserFS. I should have used a newer FS but thats a whole other argument.
Anyways here we go.
The system is Debian Lenny amd64
Physical RAM 4GB + 6GB swap
/var/log/messages
Code:
Feb 21 07:35:09 Sarah kernel: imklog 3.18.6, log source = /proc/kmsg started.
Feb 21 07:35:09 Sarah rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="3994" x-info="http://www.rsyslog.com"] restart
code....
View 8 Replies
View Related
Apr 9, 2011
I am getting occasional errors during the boot process.One at the beginning and one or two when I switch to single user mode.I 'd like to run the system file checker to fix any possible errors.But when I run fsck in the terminal I get the message:Code:
mansour@ubuntu-notebook:~$ fsck
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
[code]...
View 14 Replies
View Related
Apr 12, 2010
Can anyone answer me the color code of the linux file system?
Especially, for those which have different colors in the background also like some have green background colors and are written in green some have yellow background and are written in black,why is it so?
Also please explain me the color code of other also.
View 2 Replies
View Related
Nov 3, 2010
I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.
View 6 Replies
View Related
Dec 16, 2009
my partitioning layout was as follows
Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
View 7 Replies
View Related
Nov 23, 2010
As in windows all the delted items will got to RecycleBin is there any such thing in linux.
(Or)
Can we retrive the file which got removed from file system(using rm command)
View 4 Replies
View Related
Apr 6, 2010
I have an ntfs partition that I wish to access as a normal user(non-root). For this I did the following. As root I created a folder /windows and did a chmod 777 -R on /windows. Then I added the following line to /etc/fstab
Code:
/dev/sda3 /windows ntfs-3g defaults,nosuid,nodev,umask=000 1 0
Now, the partition is mounted alright but the problem is that when any other user (non-root) creates a files in /windows (say by executing touch newfile) the newly created file has the owner and group set as root. The non-root user can create the file and he can also delete the file, however, he cannot change the permissions of the file and also the owner:group is always set as root:root. How do I get across this problem, i.e. how do I mount a partition, so that a non-root user can also change the permissions and ownerships of the files he creates.
View 2 Replies
View Related
Jan 10, 2011
I used the ext3 format when I formatted my partition prior to installing Ubuntu10.10. I had accidentally deleted a file and began the process to get it back. It wasn't critical but helpful to recover the file. To make a long story short I ran into to some unexpected road blocks. I tried to use PhotoRec to get the job done but with no success.
I'm just looking down the road in the event I might have to recover something important.If it would be better going back to the Fat32 file system I would rather do it sooner than later. Just as a side note I am dual booting between linux and windows.
View 6 Replies
View Related
May 2, 2010
I bought a new SD card which I intend to put some MP3s on - except that I can't write to it because it tells me the destination is Read Only. No-probs thinks I: I'll just reformat it.
"Error creating file system: helper exited with exit code 1: cannot open /dev/mmcblk0p1: Read-only file system"
Various chmod commands all result in Read-only file system. I tried umount then mount commands, but it couldn't find it to mount once I'd unmounted it using the same /media/ file path (I assume it's the only one).
View 9 Replies
View Related
Jul 12, 2010
My Redhat Enterprise Linux 4 with 6x partitions (/, /boot,/home, /usr, /var, /tmp) of 6.0 GB IDE Hardisk was working quite fine. I decided to create LVM on /home and /var partitions but due to some errors occured and I delete the /home partitions. That's why partition table altered. I then delete 4,5,and 6th partitions (/home, /var, /tmp) partitions and now try to create one by one but following error is coming:-
[Code]....
The Super block could not be read or do not describe a clear ext2 file system. E2fsck b 8193 <device> I have tried following commands,but could not successful:- e2fsck -p /dev/hda7 (where hda7 was created but afterthat it was deleted) e2fsck -a /dev/hda7
View 2 Replies
View Related
Mar 16, 2011
I use this command for make image file :
Code:
#dd if=/dev/zero of=disk.img seek=2G count=1
and use this command for check file size :
[code]...
View 4 Replies
View Related
Jan 19, 2010
I have a netbook I am setting up for our class (30 in all when I get it working). I had pam_mount working at creating the mount and unmounting with version 11, but I ran into some problem and am trying to reproduce the same results with Fedora 12. The only problem I seem to be having is the umount process. I don�t even see pam_mount trying to unmount at logoff in the log. Here are the conf files that should be relevant.The part I am getting stuck on is there is no output in the message log and I have the exact same setup on a Fedora 11 setup and it works no problem.
Pam_mount_conf.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
[code]....
View 2 Replies
View Related
Apr 2, 2011
On one of my computers that I upgraded from 11.3 to 11.4 with a SSD HDD, it no longer umounts any disks on reboot or shutdown, there are no errors shown, it goes from sending TERM and KILL to rebooting.here is my fstab:
Code:
/dev/disk/by-id/ata-OCZ_SOLID_SSD_MK0109030A6100011-part1 /boot ext4 acl,user_xattr,noatime 1 2
[code]...
View 6 Replies
View Related
Mar 27, 2011
I mount my NFS shares with fstab entries likexxxx.xxxx.xx:/srv/vdr /media/vdr_video nfs noauto,user,bg,soft,intr,retry=5 0 0 With openSUSE 11.2 works this fine. With openSUSE 11.4 installation (no upgrade) only NFS mount works fine. The umount command works only with root.
View 9 Replies
View Related
Jul 30, 2010
I managed to boot from hard disk, everything works ok. But Gparted has a bug, it works in Live Hard Disk, but not when I click the install icon because it can't umount /cdrom. But I solved that by formatting ext4 and swap area from gnome-panel Live Hard Disk and only put mount point / after click on install.But problem stroked back: install is not possible because it wants to umount itself before installing, wich cannot be possible. I'm installing it in a new place /dev/sda5. Live Hard Disk is booting from /dev/sda3.
ubuntu@ubuntu:~$ df -h | grep sda
/dev/sda3 2.0G 726M 1.3G 36% /cdrom
/dev/sda1 43G 17G 26G 41% /media/Windows
[code]....
View 1 Replies
View Related
Aug 29, 2010
I've installed aufs in order to seemlessly union two filesystems over /usr. One branch is the plain old, existing /usr directory; it's not mounted from a separate filesystem or anything. The other is a /usr on a microsd card. This is what I've added to /etc/fstab:
#the microsd mounted on /aufs/internal_microsd
/dev/mmcblk0p1 /aufs/internal_microsd/ ext2 defaults,noatime 0 0
#the aufs /usr union
[code]...
View 1 Replies
View Related
Feb 9, 2011
I need to do mount/umount operations in my c program. But my program can only be run under normal user. However, the user who run my program have sudo priviledges to do mount/umount operations. How can i apply the sudo privileges in the mount(2) system call?
View 6 Replies
View Related
Apr 27, 2010
I have some trouble using autofs with Slackware64 13.0I use the alien's script [URL]Here's my auto.master :/mnt/autofs/etc/auto.misc --timeout 20Here's my auto.misc [URL]
View 6 Replies
View Related
Feb 2, 2010
Have just assembled a new computer and thought I would install the 64 bit version of openSUSE 11.2 in a "Windows free zone". After a hiccup or two I have managed to get a system of sorts running but on trying to copy files from my old computer(via a memory stick) it tells me that Vfat is an unknown file system.On my old computer I am running 32 bit openSUSE 11.2 as a dual boot system with Windows XP and have no problems moving files between the two different file systems.Is it possible to get a 64 bit file system to read 32 bit file system drives and if so how do I do it?
View 7 Replies
View Related
Sep 1, 2011
Ubuntu 10.04 lts Desktop suddenly started to delete the mountpoint directory after umount:
mkdir dirsudo mount -t ntfs /dev/sda1 dir... works well ...sudo umount dirdir is gone Another similar unanswered post.
View 4 Replies
View Related
Apr 29, 2009
I want my apache user (www-data) to be able to umount drives that are mounted with fuse. (i think it is the same as regular umount, but i'm not sure)
when i execute: www-data@1:$ umount /2345umount: /2345 is not in the fstab (and you are not root)
how can i get this done?
View 4 Replies
View Related
Jul 10, 2010
I have a network share mounted with cifs which does not work as expected. It should automount at boot and dismount at shutdown. It does not automount at boot, but "# mount -a" will mount it in the gui after booting finishes. This I can live with, but at shutdown or reboot, the cifs share hangs for about 30 seconds before dying. My /etc/fstab entry code...
I saw a bug report about the cifs umount issue, but can't find it at the moment. I did notice that it was a very old bug. If I remember to do "# umount /media/data-srv" before rebooting, all is fine, but I seem to constantly forget and then stew as the system hangs for an extra 30-45 seconds. I've tried several things to automate it including shutdown scripts added to /etc/init.d/ and elsewhere, but nothing seems to work. Anyone have this issue and find a work-around?
View 3 Replies
View Related