I have the 'rootfs' filesystem mounted on '/'. How can i partition '/' into 2 partitions such that rootfs is mounted on the first partition and another directory say 'temp' is mounted on the second partition. Kindly give me directions and tutorials which will help me accomplish this. I am very new to this. So kindly let me know the basic things to know solve this problem.
Kindly note that my '/' partition is on RAM and not on harddisk
You should learn how to use fdisk, /etc/fstab and mount.
I can recommand you to read this disk partionning guide : http://tldp.org/HOWTO/Partition/fdisk_partitioning.html
Related
I have a Node-RED flow. It uses a sqlite node. I am using node-red-node-sqlite. My OS is Windows 10.
My sql database is configured just with name "db" :
My question is, where is located the sqlite database file?
I already search in the following places, but didn't found:
C:\Users\user\AppData\Roaming\npm\node_modules\node-red
C:\Users\user\.node-red
Thanks in advance.
Edit
I am also using pm2 with pm2-windows-service to start Node-RED.
If you don't specify a full path to the file in the Database field it will create the file in the current working directory for the process, which will be where you ran either node-red or npm start.
Use full path location with file name.
It should work i guess.
This isn't a valid answer, just a workaround for those who have the same problem.
I could't find my database file. But inside Node-RED everything worked just great. So. this is what I have done as a workaround:
In Node-RED, make some select nodes to get all data from tables
Store the tables values somewhere (in a .txt file or something like that)
Create your database outside Node-RED, somewhere like c:\sqlite\db.db. Check read/write permissions
Create the tables and insert the values stored from old database
In Node-RED, inside "Database", put the complete path of the database. For example, c:\sqlite\db.db
In my case this was easy because I only had two database with less than 10 rows.
Hope this can help others.
Anyway, still waiting for a valid answer :)
I am trying to create a Eucalyptus EBS backed image from an Ubuntu cloud image. I have tried all sorts of different methods I have found on Google and nothing works. I have tried creating a new partition, labeling it cloudimg-rootfs and verifying both fstab and menu.lst are looking for that. I have tried just dd from the image to both the disk itself and to a primary partition and several other methods.. Nothing works. Does anyone actually know how to get a bfEBS going on eucalyptus?
Thanks!
Please refer to the following KB article:
Creating an Ubuntu EBS-backed EMI from an Existing Instance Store-Backed Instance
This explains how to create an EBS-backed Ubuntu image from an existing Ubuntu instance store-backed instance on Eucalyptus.
Please let us know if you have any questions.
Cheers,
This is a noobe question. I am trying to clone a Drupal website on WAMP to test some local development. The current website is maintained on Aegir. With the owners' knowledge but for reasons that I don't know, I have not been able to get information directly from whomever is managing the website.
I have been able to scp the platform [profiles, modules, files etc]. My current puzzle is how to obtain a copy of the database so that I can import it into WAMP.
One of the files that I have copied is called database.sql and is a healthy size (35MB). I have looked around the web and no one outright says this is a readable form of the MySQL database.
My attempts to import it into a database of the same name and username failed with a suggestion the size was too large. (password unknown - have several versions looking at the documentation and cannot tell which one is which).
Working from the MySQL console: mysql -u usernamenewdatabase -p newdatabasename < C:/path/database.sql
Also failed.
Can anyone cut through this muddle for me? Am I even on the right track?
Thanks
Jo
Thanks for jogging me along. WAMP just replies with a suggestion that the file is too big.
I have solved it in the meantime.
Yes - database.sql in Aegir is a straightforward .sql file
To get it into WAMP in particular, the solution is to edit this line of config.inc.php file in the wamp/apps/phpAdmin folder
$cfg['UploadDir'] = 'upload';
by inserting upload beween the ''
And then add a subdirectory to phpAdmin called upload.
Put the big file in the upload directory and import it into a clean database from the phpAdmin screen.
Ridiculously easy when we know how.
Thanks Clive - I appreciate the support.
Everything I have read so far, it seems as though you copy the DB from assets to a "working directory" before it is used. If I have an existing SQLite DB I put it in assets. Then I have to copy it before it is used.
Does anyone know why this is the case?
I can see a possible application to that, where one doesn't want to accidentally corrupt database during write. But in that case, one would have to move database back when it's done working on it, otherwise, next time program is run will start from "default" database state.
That might be another use case - you might always want to start program execution with known data state. Previous state might be set from external application.
Thanks everyone for your ideas.
I think what I might have figured out is that the install cannot put a DB directly to the /data directory.
In Eclipse there is no /data which is where most of the discussions I have read say to put it.
This is one of the several I found:
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-4/#comment-37008
I have been reading the rsync documentation for a few hours, but I can't figure out how to convey to rsync how to only rename (and not re-upload folder and it's content) destination folders when they are renamed at the source.
I'm connecting to the destination with SSH, and the local folder is the source -- and the remote server is the destination. If I rename a folder containing files, rsync automatically re-uploads all the content of the source folder. I'm not using the rsync's server part, maybe it will works if were to do that ?
I have encountered the same behavior with lftp, and this tool doesn't seem's to have these options. Even if it is based on the file's date rule, files inside the renamed folder are removed/re-uploaded.
Thanks in advance if someone knows how to manage this :)
I've been looking for something similar.
so far, the best solution I have found is at:
http://serenadetoacuckooo.blogspot.com/2009/07/rsync-and-directory-renaming.html
It basically mentions including a meta-file in each folder that indicates the folder's name.
Essentially, you would want to check that file with the directory name, and rsync only if they are the same (otherwise, issue a remote rename command.)
It depends on the scope of what you're using rsync for, but I hope that this information can help you.
How would rsync or any other program know what constitutes renamed? What if two directories are very similar candidates and somehow rsync guesses maybe either one could be a rename of what went before? It's not possible. I think you're stuck with uploading everything again.
You know about the --delete option, right:
--delete delete files that don't exist on the sending side
Note also the --force option:
--force force deletion of directories even if not empty