I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
df -h [URL] I did the following command to find everything is in /usr or /var, then tracked it down to /usr/lib and /usr/share as the main offenders, but out of all the directories none are more than 1mb or so.
du -sh /* | sort -gr | head -n 5
I tried to uninstall firefox, which is what got me in this mess in the first place, the log claims it will remove ~240 mb but failes on a "E: Write error - write (28 No space left on device)" [URL] If I could juggle something onto an external hard drive so I can uninstall firefox I would be out of the wood. Failing that I believe a new install is in order.
I'm trying to help my family burn an image to dvd and I can't see the inserted dvd when running brasero with X forwarding over ssh. Any advice? I also can't see the dvd when running nautilus or really anything else.
ive tried my hand and failed. My friend was using my computer nad he didnt safely remove his USB MP3 and now it is write protected. Ive tried windows diskpart (nothing), ive tried fsck ("disk maybe in use?"), i tried to format(write protected)ive tried otehr USB slots and other computers. This has happened to me sooo many times and i can never find a damn thing about it, can some one tell me how to fix this??? There has to be a simple fix as it is such a simple issue, an issue any one who has used windows for 90% of their computing history could make
I have installed Jaunty on my laptop. I have a dual boot with Windows 7 and I've set up access to my windows partition. I can read and write to the music and photos directories but I can't write anything to My Documents in the windows file system. I have tried in Gnome and from a terminal and checked that I have write permissions set correctly.
For example in the My Documents directory:
Code: $ mkdir test mkdir: cannot create directory `test': Operation not supported
I get the same message if I try to rename My Documents using either mv in the terminal or the Rename option in gnome.
I only have an ubuntu machine here, but I wish to transfer some files to her mac via my external hard drive. I only have an ubuntu machine here. I managed to make an hfs+ partition on my external hard drive using gparted after installing hfsprogs. I tried changing the permissions with chmod. The ls -l command yields:ls -l /dev/sdc1 brwxrwxrwx 1 root disk 8, 33 2010-05-24 10:53 /dev/sdc1
i do 10.4. as recently as two weeks ago, i could use my mp3 player as a usb drive. now the player is still auto mounted, but i can't copy/paste to it or cut files from it. i do see it in rhythmbox, but when i right click and choose "eject", the drive unmounts and the mount process starts over. when i check permissions, i see that i am "read only".
I have tried for some time to write an .img file to a USB and a SD Card to boot from to my Netbook. The .img file is from Moblin and they suggest that I use Win32 Disk Imager to write the file to my USB. Though it haven't worked for me even if i use the SD Card and other computers.
The easiest for me would be if i could write the .img file on my SD Card and i have search for some tutorials but haven't found a way to write the file.
I've read something about "dd" but don't get the "command", "code" - thingy. If any one know an easy tutorial for it would be great! Or even better would be a tip to another program/utility like the Win32 Disk Imager that works.
I Use a Windows 7. HP Pavilion Elite and a Windows XP. Compaq Mini 110
i bought a new phone(Sony ericcson xperia x8 ).i had been using it fine till few days back.now, i plug the usb.the drive appears, i copy files, files appears in the drive, eject.but the files dissapear.when i plug the usb again, the files arent there.
I did install QLandkartGT and the plugin to use Garmin with it and it looks like it work, but when I do press "Live Log" I get the error message; "Device Link Error. Failed to request real time position. Realtime thread failed. Failed to configure USB: could not set config 1: Operating not permitted".
I also get a similar error when trying to download tracks; "Failed to download tracks. Failed to configure USB: could not set config 1: Operation not premitted".
My guess is that Ubuntu do not allow programs to use the USB port, so my question is how I do allow this program (or all) to use the USB ports.
I have a 8GB USB drive that recently started to behave improperly. And by started I mean that my dad decided he'd use itke a bootable drive and succeeded in breaking it.I tried formatting and zeroing the drive with dd but no luck. It seems to finish normally, but everything remains the same. Then I read a similar thread here that worked for one guy and tried working it that way but again could not manage it. It using sfdisk and the negative result might have been because I hadn't used it before so didn't know exactly what I was doing.
Anyway, the situation is absolutely the same: cannot format/erase partition, cannot format/erase/write data, errors are spewed out like -Error creating partition table: helper exited with exit code 1: Error calling fsync(2) on /dev/sdb: Input/output errorOR Error creating partition table: helper exited with exit code 1: Error calling fsync(2) on /dev/sdb:
I'm wondering if it's possible to write changes to a LiveUSB stick. As you probably already know ubuntu gets mounted to a ramdisk to improve performance and save your USB stick's life (I think so anyway, don't quote me on that).
I'm wondering if it's possible to write any changes made, such as changing running services and installed packages back to the USB stick without actually installing ubuntu fully onto the USB stick.
I tried to read the File Permissions page on the wiki and my eyes glazed over after about three sentences. I've got a folder called /var/www/pics that I just want to be able to save image files to. My only other choice as I understand it is to save them to my home folder, then use a "sudo mv" command to copy files to that directory. How do I give my account permissions to save a file in that directory?
8.04 64bit LTS no gui loaded Only the root user can write to /tmp. I tried to create a cron job for a user and received an error
crontab -e no crontab file for ed - using an empty one /tmp/crontab.SCQ30O: Permission denied Creation of temporary crontab file failed - aborting
Then I tried a simple touch /tmp/test1 and it failed with a 'touch: cannot touch `/tmp/test1': Permission denied I tried the Windows fix and rebooted, no change. Only root can write to tmp. This may sound lame but... using ls /tmp show reversed video (highlighted blue on green) on the servers the the users have access to, just plain blue on the 'broke' one. I did a sudo chmod a+w /tmp but do not know if that was a smart thing to do or not...
I want to backup my Ubuntu box and I found a couple very helpful articles that describe how to use tar for backup and restore. So far so good. I've dabbled in Lin/Unix in the past, mainly on work systems, but Linux on my personal PC is new to me.
When I ran the tar command as root (su -) I noticed several errors scrolling by in the window. It's scrolling too fast to note the exact errors, but I did notice "permission denied" a few times.
Is there some way that I can capture the output of the tar command to a file so I can review it for errors and/or permission denied statements?
Can I just add some arguments to tar?
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
Is anyone aware of a way (or a program I can use) to write to an existing ISO image?To set the scene I've used APTonCD to create an ISO with all the programs on I want so that the next time I install Linux Mint (or Ubuntu) I can just put in the CD & install a lot of programs in one go with Package Manager. Thats worked fine & I have the ISO ready for CD but I would like a way to change it a bit so that I can add some of my own custom setup scripts (stuff to set up user accounts & so on) then every thing I need is all on one CD / DVD
I have come across this question many times and recently had this discussion again: "I wrote a script to cd into a directory for me. How come it doesn't work when I run it?" I have seen some information out there on google but there doesn't seem to be one centralized answer, so I will try to offer one here. For those of us that have taken an operating systems course, you should understand why already (or I am assuming you know, as processes are such a fundamental part of an operating system). For everyone else, here is my simple/unofficial explanation, how to accomplish what you are after. This assumes you are running a bash shell (run the command "echo $SHELL" if you aren't sure). I can't be certain that all of the solutions below will work in all shells.
The shell, terminal, console, whatever you want to call it is a running process in the operating system. It has what is known as an "environment". You can see all of the variables in this environment by running the "set" command without any arguments. When you invoke a script, you are actually spawning a child process, that has a totally different environment. Any modifications made to the environment for the child process cannot be made to the parent environment. For example:
I want to copy a bunch of several hundred GB to a ntfs drive.Is it a bad idea to use two different Os's? Are the files written to the drive the same way? Is there a more likely chance for corruption using different Os's to write files?
I just installed Ubuntu 10.04 on my system, and I put in a really old game CD for my really old computer. I cannot run the setup program , however because "it is not executable". I can't change this , because it is read-onlybut I can't chane this either. As I'm new to this, I was wondering .
I was able to read and write to my USB thumb drives until I mounted a USB thumb drive with an autoinstaller, and every since then all of my flash drives show up with the owner as "root". I've tried changing the owner, and I'm not allowed- even with using sudo chown.
I don't get an error with that, but the owner isn't changed. I can read from the drives but not write to them. (I found that I can copy to the flash drive by using sudo cp, but I want to get away from command line stuff. I have too much to do to be constantly dropping into terminal mode!)I had no problems until the very minute I mounted that flash drive.I've read a few threads, and found other people with symptoms similar to mine, but when I try the fixes suggested, they didn't work.I've also not been able to locate anything that the flash drive autoinstaller changed or put in, but I must admit that I still am a relative newbie to Linux (been around computers since the early 70's, around Windows since 92-93, around OS/2 94-96, and Linux for only a year or so- and haven't learned that much command line stuff yet!).