General :: Sustain Data After Reboot?
Feb 1, 2011i want to sustain some contents in a particular directory say /usr/bin/dir1 after reboot
View 5 Repliesi want to sustain some contents in a particular directory say /usr/bin/dir1 after reboot
View 5 RepliesI have a laptop running slackware-current. The disk is /dev/sda and the root 'sda1' is xfs formatted (there is also linux swap at sda2).
recently I was trying to setup openvpn and had to copy a folder with configuration files from /usr/doc/openvpn_<version>/easy-rsa to /etc/openvpn.
I am sure the copying completed cause I got a prompt, but a few seconds later the battery died on me. When I got mains and powered it up, I could see the directory I copied under /etc/openvpn, and the files where all there too. but they all contained nothing. i.e. they had a size of 0.
I read [URL] Fthat an external journal filesystem for root is not supported. I am not sure If it applies to my situation though. As in does it use an internal journal instead?
and the bottom line is: shouldn't the copying have completed successfully? shouldn't I be worried, that this copy failed?
use fedora system, and installed fedora 12 on my usb disk by live-usb creator.Now, the problem is everytime i reboot the computer, the user data and software i installed will disappear.When installing, i choose persistent space which is described for user data and software, but it seems not work now.What can i do if i want my fedora on usb disk is just like the system installed on hard disk
View 1 Replies View RelatedI'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.
View 2 Replies View RelatedI am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.
View 6 Replies View RelatedA few months ago I have setup a server with three hard disks. The partition mapping the disks as follows:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7ca36fee
[code]....
Now I have the following problem the LVM file system don't mount properly.If I open the mount point I see only a few files of the LVM disk. If I want to unmount the disk I get the following error:
umount /data/
umount: /data/: not mounted
If I want to mount the volume I get the following error:
mount -a
mount: /dev/mapper/gegevens-Data already mounted or /data busy
Further to this LQ thread which Tinkster solved by suggesting the last command (thanks Tinkster) I have been exploring last -x reboot and have found that the reported duration is incorrect for the last reboot and shutdown when a old wtmp file is used. Not having a record for the following shutdown, last assumes that the system has been up until the current time and similarly for the shutdown.
The output comes in time order, latest first, each line showing the time of the reboot and the uptime from then to shutdown. Using last -x reboot shutdown to show the shutdown time, here's an illustration
Code:
shutdown system down 2.6.29.6-smp Sun Mar 7 15:35 - 03:02 (11:27)
reboot system boot 2.6.29.6-smp Sun Mar 7 09:35 (05:59)
09:35 until 15:35 is 05:59.
When the uptime exceeds 24 hours it is shown as (<days>+<hours:minutes) like this
Code:
shutdown system down 2.6.29.6-smp Sun Feb 21 12:39 - 13:20 (00:40)
reboot system boot 2.6.29.6-smp Sat Feb 20 09:39 (1+02:59)
09:39 until 12:39 the next day is 1 day 02:59.
The time in parentheses at the end of the shutdown lines is normally the time until the next shutdown.
So far so good. The incorrect output is for the last reboot and shutdown of an old wtmp file. Here's the output of last /var/log/wtmp -x reboot shutdown; last -f /var/log/wtmp.1 -x reboot shutdown
Code:
[snip]
reboot system boot 2.6.29.6-smp Fri Mar 12 07:42 (01:54)
shutdown system down 2.6.29.6-smp Fri Mar 12 01:31 - 09:37 (08:05)
wtmp begins Thu Mar 11 08:25:26 2010
[snip]
reboot system boot 2.6.29.6-smp Wed Mar 10 14:12 (15+01:42)
shutdown system down 2.6.29.6-smp Wed Mar 10 12:41 - 15:54 (15+03:13)
[snip]
The boot started at "Wed Mar 10 14:12" which had an actual uptime of 1 day 11:20 is reported as 15 days 03:13 which is the time from then until the last -f /var/log/wtmp.1 -x reboot shutdown command was issued. The time from shutdown to shutdown is similarly affected.
Currently we have migrated data from Unix linux. The data in Unix is in Big endian byte structure. Where are as Linux (suse linux) byte structure us little endian. This byte order mismatch is creating problem when data is read again in microfocus cobol.
Is there any way to set byte order in Linux is big endian?
Is there any utility to convert data in big endian byte structure to little endian byte order.
last -a shows server rebooted, how to identify the source or cause of reboot? thx reboot system boot Wed Feb 16 08:52 (02:0 2.6.21.7-2.fc8xen
View 2 Replies View RelatedI want to know if there is a way to know the uptime for a server after a reboot process, I need that information for a statistic, but I forgot to take the uptime before reboot the server, so I am looking for that information after the server is power on.
View 1 Replies View RelatedWhat is the exact way 'reboot -f' command operates? How does it differ from regular reboot/shutdown? Is it proper to restart pc using 'reboot -f', if not why? The reason why I'm asking this: After installing live-distros via USB, I usually do this 'reboot -f' for restarting.
View 1 Replies View RelatedI login to my server and when I open new console I get:
-bash: /etc/profile: Input/output error
-bash: /root/.profile: Input/output error
and nothing is working I tried to reboot or top command but not working also I can't open SFTP the server says The server has rejected the SFTP request.
Where apart from ~/.kde4/share/apps/kmail does kmail keep account data, such as login data/names of pop/smtp servers? I wanted to install an entirely clean version of kmail, so I uninstalled/re-installed kmail via YAST. I manually deleted ~/.kde4/share/apps/kmail. After installing kmail I found that the account data of my Yahoo account were still listed in the kmail configuration panel. Shall I delete the Yahoo account within kmail prior to uninstalling the kmail package?
View 4 Replies View RelatedI'm trying to connect to the VPN of my employer; after fix various minor issues I reach this point in which the DNS entries and the default gateway of the VPN are overwritten with the values of the eth0 device that appears by default. Therefore the vpn is not useful.
View 1 Replies View RelatedI have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port
Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)
[code]...
I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:
//------------------------------------------------------------
char m_readBuffer[255] = {0};
char* p_curChar = m_readBuffer;
[code]...
I've been using Excel from OpenOffice with moderate success for the last year. Now I've just tried to open a new spreadsheet and I'm suddenly getting a highly condensed view. The cells are about 1mm X 4mm. If I expand them by selecting and dragging, then try to copy data from another spreadsheet onto the new one, the data shrinks to the small scale -- unreadable.
View 4 Replies View RelatedUbuntu 9.10 64bit. Acer Laptop
Using ubuntu 9.10 cd to access laptops hard drive.
foun readme file in /media/disk/mark
opened with openoffice. THIS DIRECTORY HAS BEEN UNMOUNTED TO PROTECT YOUR DATA.
From the graphical desktop, click on: "Access Your Private Data"
or
From the command line, run: $ ecryptfs-mount-private
So I tried a couple of ways...
Right now I have a 320GB system drive and 3TB data drive. I want to add two more 3TB drives and do a software RAID5 3x3TB. Is that possible without losing the data that is already on the data drive?Just want to make sure before I bought the 2 two drives. Not looking for instructions on how to do it,but if you want to include some that would be great too Just making sure it will work.
View 1 Replies View RelatedI have machine with Windows and Linux with GRUB, only with remote access. Is there any way to chage default OS in grub from windows? I know how to achieve it from linux, something like
echo "savedefault --default=2 --once" | grub --batch; sudo reboot
should work. Is there any way to achieve it from windows?
I've been messing around with a Verizon Hub trying to see if I can get it to register with my Asterisk server. I have been able to telnet into the phone with the root username. I can change files in every other folder on the device except in the /etc folder. I have tried mounting many different ways, changing file permissions but everytime I change the file and reboot it goes back to its default configuration.
View 2 Replies View RelatedI have installed CrunchBang, then I moved the /tmp and /var to different partitions (I like to put these on reiserfs) the reason I did it after the install is because CrunchBang's installer doesn't give me the options to create reiserfs partitions during install (but does recognise reiserfs as I can manually mount them). Also these two partitions are logical.Anyway I have Windows 7 and Ubuntu 10.04 already installed and working fine but CrunchBang always changes the UUIDs of /var and /tmp when I reboot. Is that even possible I have also tried using the old method of /dev/sd** but of course that gets changed as well.
View 3 Replies View RelatedI have a friend who needs a script to reboot a system every 5 min... not sure how to set cron to do this every 5 min.
View 1 Replies View RelatedRunning close to a go live date of 11/10/10 and need to have this fixed. DBA is pointing to the OS which is RedHat Enterprise Release 5.3. with Oracle RAC 10G
Oracle works fine it just won�t start up automatically after a reboot. After a reboot a person with root access has to increase the number of semaphores and then oracle will start and function. The next time the machine is bounced the same issue will arise and the semaphores need to be increased again by hand. Every time the machine is bounces the semaphores need to be increased by hand. This is not normal for a Unix machine. Semaphores are not part of the oracle install, it is a kernel parameter on Unix machines. Eventually after several reboots the semaphore parameter will be too high for the box to function. Once the semaphores have hit their peak, we reset them back to the original value and the whole process starts over again. This is a Unix build issue that has only surfaced on the production machines. The DAS development machines have the exact same oracle build and do not have this issue.
I just installed Ubuntu and after the restart all I get is a black screen. Sounds like the program booted up but I can't see any thing.
Using a Gforce 9400 vid card.
running Linux release 2.4.19-uc0, build #511 embedded on a device. It is stripped down to a very minimal configuration and so many of the normal commands are not present.I'm trying to force a reboot from an application I've got running. I've tried the following:
system("shutdown -r");
or
sync();
[code]....
I know if I do a shutdown -rF now, it will perform an e2fsck on all my volumes with the -y switch. But if I just want to check one of the volumes rather than all of them, and have it use the -y switch so it will automatically answer yes to everything, how can I do that?I'm using RHEL, and have a huge volume I need to run a check on, and I dont want to sit there for the next 24 hours hitting the Y key every time it finds a problem ;-)
View 1 Replies View RelatedI don't mind a few lines of reboots, but this is getting rather long:
How can I clear (or reduce) the history that comes up when ssh to my host?
I have a server that said a volume was dirty and to check it at reboot, so someone did a shutdown -rF now. Only problem is the other volumes are HUGE and it will take forever, which I cant have happen. The volume with the trouble is non-critical so I could take it offline and check it that way if i can get this to boot quickly. How can I do that if its going to auto check every volume on reboot now?
View 2 Replies View RelatedHow would i detect the ip address from where the reboot command been given to linux host.
My linux host details are as below.
Code:
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release: 5.2
Codename: Carthage