General :: Testing Fstab Without Restart?

Jan 6, 2011

I need to do some changes to fstab,so i wondering is it possible to test it does it work without restating?Because if add something wrong then linux wont start ssh and i wont be able to access server remotely.What i want to do,is to mount /dev/shm with noexec,nosuid instead none.

View 4 Replies


ADVERTISEMENT

General :: Fstab Added To RAID 0 - Server Cannot Restart

May 5, 2011

I made a software RAID 0. It works fine, but when I add it to fstab and reboot the server, I can't restart the server.
Code:
# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda5 swap swap defaults 0 0
/dev/md0 /vz ext3 defaults 0 0

When I go to rescue mode and delete /dev/md0 from fstab, I can restart, but I get this when I try to mount it again:
Code:
mount: you must specify the filesystem type

So I try to make it to a ext3
Code:
# mkfs.ext3 /dev/md0
mke2fs 1.39 (29-May-2006)
mkfs.ext3: Device size reported to be zero. Invalid partition specified, or partition table wasn't reread after running fdisk, due to a modified partition being busy and in use. You may need to reboot to re-read your partition table.
#fdisk /dev/md0
Unable to read /dev/md0

View 4 Replies View Related

Debian :: Cannot Restart Computer - Testing KDE

Apr 4, 2011

I have a slight problem. I think it is corrupted file(s).

My Debian Testing KDE is not functioning properly. When I Leave and click Restart Computer, the computer does not go to a reboot but goes to the KDE login screen. When I cold boot the computer and click Restart Computer from the KDE login window, the same thing happens, the login window reappears.

When I choose Turn Off Computer, the computer properly powers down.

It looks like I should re-install something but what that something is I don't know. I checked the boot and dmesg logs. Nothing leaps of the screen at me but I have to admit that I am not 100% sure what I am looking for.

View 4 Replies View Related

General :: Fstab Sdxx Or Uuid Or / Disk And Partitions In The Fstab File?

Jan 5, 2010

What would be the best way list disk and partitions in the fstab file?

View 1 Replies View Related

General :: Restart Dhcp From /etc/init.d/dhcpd Restart

Feb 27, 2010

i have installed dhcp,there i declared the subnet and network,i used command include "/etc/dhcpd.conf.jutu1"; to start and other files, but it show me this error when i want to restart the DHCP, if you need more information contact me, i have configured this file too jutu1, but it don't let me to restart dhcp from /etc/init.d/dhcpd restart, this show me this message

[Code]..

View 3 Replies View Related

Hardware :: Changes To Fstab (UUID's) / Revert Fstab's Listings Back To The Old /dev/hd Settings?

Jan 15, 2010

I've had two hd's in my box forever. for more space and backup reasons. Well I have started running the Debian Squeeze distro since December. I've had many issues, some are still unresolved. but now I'm running into major headaches with the fstab. Specifically dealing with/wondering why UUID's are used instead of the old /dev/hd? I was a little annoyed when I tried Kubuntu to find /dev/sd? used instead of /dev/hd? but that was workable. But the UUID's are a nightmare. Here's my problem.

My main box is finally giving up the ghost. The mobo is dying. So in order to do some tests I took my hd bundle (my two hard drives with their cables) physically out of the box and temp installed them in a test box. I wanted to do some benchmark and other tests. I got all kinds of errors. I found that the system wasn't recognizing the UUID's listed in fstab. My concern is when the new mobo gets here next week I won't simply be able to plug the hd's in like I always have been and just let Linux reconfigure itself (Debian used to be good about this). I really don't want to have to clean reinstall if it's not needed.

So for this I have two questions. WHY developers decided to drop using /dev/hd? or even /dev/sd? ?

And is it possible to revert fstab's listings back to the old /dev/hd? settings. In debian fstab had lines commented out showing how each partition was listed in it's /dev/hd? status during install.

I'm getting really sick of all these archane changes in ALL aspects of linux that don't seem to have any good explaination or need.

View 4 Replies View Related

General :: Difference Between Restarting/stopping Apache Using 'service Httpd Restart/stop' And Apachectl Restart/stop

Oct 11, 2010

whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?

View 1 Replies View Related

Ubuntu :: Rename The Fstab-BAK To Fstab?

Jan 19, 2010

I've apparently changed my fstab file and now my boot drive fails to mount. The original file is still there "fstab.BAK". How do I rename the current fstab to another name and rename the fstab.BAK to fstab? Since this is read only in the /etc directory I have not been able to make this happen from a command prompt.

View 9 Replies View Related

General :: How To Add A New Entry To Fstab

Sep 13, 2011

I mount a device mount /dev/xvdf /mnt/mongo and verify the mount using df-h:

Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 955M 6.9G 12% /
tmpfs 299M 44K 299M 1% /dev/shm
/dev/xvdf 20G 589M 19G 4% /mnt/mongo

But now I'm trying to figure out how to make it auto mount on boot. I understand I need to add a new entry to /etc/fstab, so I perform: $ sed -i '$ a/dev/xvdf /mnt/mongo xfs defaults 1 1' /etc/fstab But, after reboot, it seems that the auto mount didn't work. The device didn't appear in the df -h list.

View 2 Replies View Related

General :: Mounting The Partitions Without Fstab?

Jun 23, 2011

I have ubuntu 10.04 LTS installed. I want to mount a windows partition. I can, of course, use fstab. However, I open nautilus and click on the windows partition in the placed panel. How do I use mount (or any other command) to emulate this?

View 6 Replies View Related

General :: Will Not Boot After Editing Fstab

Sep 24, 2010

I have a removable SATA Mobilerack which i use to play with.It has redhat linux loaded on a 500GB disk and i made a new partition using fdisk and then made an ext3 filesystem with mkfs. I then tried to edit fstab to add the new partition but have obviously stuffed it up. When I tried to reboot I get the error fsck ext3: UNABLE TO RESOLVE `LABEL=/mnt'.

View 3 Replies View Related

General :: Apache Server For Testing?

Jun 11, 2010

Iam using red hat linux for testing Apache server.The apache server "httpd" is working and in the web brower when i write "http://localhost" itshow me the apache test page. Well i want to know that where this test page exist and if i want to change this page and add my pwn web page then how can I do it. (My server IP address is 192.168.1.10 Subnet mask 255.255.255.0)

2- An other linux client computer is connection with a switch when it open its brower and write my apache server ip address in the web browser like http://192.168.1.10 it show melinux directory structure instead of apache test page. My client IP address is 192.168.1.20 Subnet mask 255.255.255.0)


3- My last computer running windows xp whic is(IP address 192.168.1.30 subnet mask 255.255.255.0 ) also connection with the switch for testing purpose.When I open IE and type http://1920.168.1.10 it say "page cannot be displayed"

View 2 Replies View Related

General :: XFS Won't Mount With Fstab Options In Fedora 12

Feb 6, 2010

I used the usual 'mkfs.xfs -l size=128m,lazy-count=1 /dev/sdX' at creation. After that, I would like to use custom mount options like: This goes instead of the "defaults" part in /etc/fstab

noatime,nobarrier,logbsize=256k,logbufs=8,biosize=16

I receive the following error at boot: INVALID log iosize 4 [not 12-30] << No one used iosize 4... what does it mean? it is connected to the options..but which one? (At the minute I'm usig it with: noatime,nobarrier).

View 1 Replies View Related

General :: Mount And Umount As User Without Fstab?

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

General :: Fstab File And Backup Products

Aug 18, 2010

The fifth field in the /etc/fstab file specifies dump frequency isn't it ?now this value can be theoretically used by backup products isn't it ?

View 2 Replies View Related

General :: ERROR:can't Find /mnt In /etc/fstab Or /etc/mtab

Sep 22, 2010

I've observed a problem which stops me from mounting my external hard disk into my machine. I used a bash script to perform the mounting operation; but the script faced error, Whereas the mount command works properly correct when I use it directly in command line.

#!/bin/bash
mount_point= fdisk -l | sed -n '$p' | cut -c1-9
mount $mount_point /mnt

the code should have split the mount location of external hard disk in /etc/fstab and pass the mount_point' variable to mount command, but it doesn't.

ERROR:can't find /mnt in /etc/fstab or /etc/mtab

View 4 Replies View Related

General :: RAID Impossible To Mount Through Fstab

Nov 3, 2010

After having solved my raid5 creation problems, I'm running into a new one: the RAID is just impossible to mount through fstab. I get a wonderful "The disk drive for /dev/md0 is not ready yet or not present.
Continue to wait or press S to skip mounting or M for mount recovery."

Once the system has booted, I can perfectly run a mount /dev/md0 /media/raid and mount it manually.
I've already tried mdadm.conf with UUIDs, with device names, tried several options in fstab, xfs and ext4 filesystems, nothing to do, it won't mount.

All this is running under Ubuntu 10.04 server, kernel: 2.6.32-25 server, mdadm 3.1.4 (from a Debian sid)

Here's my mdadm.conf:

Code:

The entry in my fstab:

Code:

And just for info, my /proc/mdstat:

Code:

View 8 Replies View Related

General :: Sheevaplug - USB Will Not Mount At Boot As Per Fstab

Feb 11, 2010

I've just started playing around with a Sheevaplug running a very light version of Ubuntu. I'm planning to run it with an SD card to store all my server data and a USB stick to regularly back up some of it.My problem is that the 2 partitions on my SD card mount fine at boot, but my USB stick's single partition does not. Could it be that the mounts specified in fstab are done before my USB device has finished getting alive? Mounting the USB stick manually works perfectly well.

fstab
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 /media/usb1 ext2 defaults 0 0
/dev/mmcblk0p1 /media/sd1 ext2 defaults 0 0
/dev/mmcblk0p2 /media/sd2 ext2 defaults 0 0
dmesg after boot

Code:
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver.....

In the dmesg
Code:
usb-storage: device scan complete
comes after

Code:
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
which makes me think the USB stick has missed the fstab train the 2 SD card partitions are on. And changing the order of the entries in fstab does not make any difference either.

I'm not planning to reboot my Sheevaplug every 5 minutes, but I like things to be nice and clean.

View 1 Replies View Related

General :: Add Flash Drive To Fstab File?

Mar 30, 2011

I have Debian 5 XFCE currently installed on my old desktop. I cant open my flash drive, it doesnt pop up on the desktop, nor is it in the file manager. I read that you can add it to the fstab list but I dont know how to do it.

My flash drive shows up as sda1 in lsusb.

get my flash drives working, thats how I install packages.

View 11 Replies View Related

General :: Fstab And My Vista Partition - Can't Mount At All

Dec 19, 2009

I can't remember if things with mounting vista/ntfs partitions has changed, but I cannot seem to get my partition mounted as a read-write partition.

I tried this in fstab:

And it made it read-only..

So i tried this:

And it wouldn't mount it.

Quote:

Failed to mount '/dev/sda1': Operation not supported Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by clicking on the 'Safely Remove Hardware' icon in the Windows taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for your own responsibility. For example type on the command line:

Or add the option to the relevant row in the /etc/fstab file:/dev/sda1 /media/vista ntfs-3g force 0 0

View 4 Replies View Related

General :: Access Fstab To Automount In Kubuntu?

Jul 11, 2010

Other users can't access my second SATA HDD until I have logged in and clicked on it (or saved or opened a file, etc) and it asks for a password. Once I enter a password then I can access it and so can other users.

I figure I need to auto mount the drive.

I can't seem to view the fstab. In a terminal it says 'permission denied'. I've tried changing to root but get 'Authentication failed'

P.S. I was sure under Kubuntu 7 or 9 you could right click on the icon and select 'automount'. Or was it MEPIS...?

View 6 Replies View Related

General :: Boot In RHEL 4 With Error In /etc/fstab?

May 26, 2010

shut down my RHEL 4 system with an error still present in the /etc/fstab file. Current symptom: When I now try to boot, everything hangs when "Enabling swap space". Highly likely, the reason is the failure to "Mount local filesystems" in the previous step (i.e. "mount point 0 does not exist" = error due to my incorrect line in the /etc/fstab file).Question: Is there any way that I can still boot my system, such that I can remove the incorrect line in the /etc/fstab file?

View 6 Replies View Related

Ubuntu Installation :: System Automatically Tried To Restart But On The Restart Got The 'terminal' View

Apr 30, 2011

I have just finished the upgrade of the latest version and I'm at the point of my system restating.

My system automatically tried to restart but on the restart I got the 'terminal' view. It stopped when asking for my username (it never normally asks for this before the grub menu) and then password. I didn't get any further than that.

I now have on my screen (still in the terminal view before the grub menu)

"name@name-desktop:...$ "

I'm on my phone now so I don't actually have the symbol for before the dollar sign but your know what it is. The raised S on a 90 degree angle.

View 6 Replies View Related

General :: Testing - Live CD For Burn-in With Bonnie++?

Mar 31, 2010

Is there a live linux distro that I can use for burn-in? I'd like something that has Bonnie++ on it. I've found other live CDs that have utilities, but nothing with bonnie++ on it.

View 2 Replies View Related

General :: Automated Telnet For Testing Servers

Aug 20, 2009

So I have a script that is supposed to check to see if a mail server is up and responsive. What I want to know is how I can send it the telnet escape character. I've tried:VAR=`(sleep 5;echo quit) | (telnet mailserver.timbuktu.net 25 2>&- )`

This works BUT there is a problem as the mail server may have been accidentally firewalled off. If this happens, my automated checking script will hang. What I want to do is send the escape character so that the '>' prompt comes up. They I should be able to send it "quit" even if it is hung on not getting a response from the server. VAR=`(sleep 5;echo -e '^]';sleep 1;echo quit) | (telnet arhqmg01.usarec.army.mil 25 2>&- )`

The above doesn't work. telnet interprets CTRL+] as '^]' but you can't type '^]' and get the same effect. So I guess what I need is to send the actual keystrokes. Like echo "somenumber" ; echo quit

View 4 Replies View Related

General :: Book On Testing Distributed Systems?

Apr 30, 2011

I'm built an distributed application, and now I want to take some metrics to show how my application works. These metrics includes the time of computation, the time of communication and the amdhal law. I would like to know what tests can be done to show the performance of the application. So, I'm searching for a book or document that shows me what type of tests can be done to show the performance of an application.

View 2 Replies View Related

General :: Fake Block Device For Testing LVM?

Jun 1, 2010

I want to test LVM+Raid. When I was testing ZFS on Solaris, I was able to create regular files, and use those as disks for testing.I tried creating a regular file full of zeros w/ dd, then partitioning that. fdisk seemed to be able to create a partition on the regular file, but mkfs and parted couldn't work with it. Is there any way to create fake block devices for testing?

View 4 Replies View Related

General :: Looking For Online System Testing Environment?

Jul 31, 2010

I would like to find a Linux testing environment , my PC is slow , it is not good to install VM and I do not have laptop , besides , I want to do testing at different places , can advise is there online Linux testing environment ? I just want to test the Linux command .

View 1 Replies View Related

General :: Difference Between Sid (unstable) And Squeeze (testing)?

May 7, 2010

What is the difference between Sid (unstable) and Squeeze (testing)?

Is it better to download Squeeze(testing) rather than Lenny(stable) because the software is more up to date?

Or would I want to get Sid? How unstable is it?

This is for a desktop by the way.

View 6 Replies View Related

General :: Shell Script For Testing Connectivity Via URL?

Aug 5, 2010

I have comma separated file containing 3 fields:

Name,Shortcode,URL
Example of file is
Sony,52525,http://17.0.0.1/xyz
NDTV,53636,http://10.0.0.1/abc

Now i want to test every URL connectivity from my server by executing it using shell script and if url gives back response it shows output as "OK" in green color and if url is not responding it shows "NOT CONNECTED" in red color.

Output will be like following:

Sony 52525 OK
NDTV 53636 NOT CONNECTED

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved