I have a hp pc that has a hard drive of 750 gb and a recovery hard drive of 31gb. I installed linux side by side with windows 7 for dual booting. Now I can't boot windows 7 anymore. During the installation of linux, I chose the advanced option so as to manually partition the drives for linux. On the available list of drives, I chose the 750gb and clicked on modify. I chose 150gb for the root "/" (on ext4) and 700mb for swap out of the 750gb and clicked install. After finishing the installation I restarted the pc and sought to test linux. The linux works fine but when i tried to start windows, I have a boot error. My pc doesn't seem to recognize windows anymore. It takes me straight to the HP recovery tool. I don't understand why. So I logged into ubuntu and check the disk utility and I discovered that I have a whooping 600gb unallocated space. It's like my whole windows is gone. This is what Disk Utilty shows
I installed windows 7 after I installed linux. I got grub reinstalled but windows doesnt show up in the grup menu. So I run in linux sudo update-grub, but this doesnt find my windows system.
Here's my fdisk -l
Code:
Device Boot Start End Blocks Id System /dev/sda1 1 8511 68358144 83 Linux /dev/sda2 8511 8572 487425 5 Extended
I've had a problem for a while-- when I save files on a USB stick in Ubuntu, then put it in a windows computer, it doesn't recognize the files. It only recognizes a video file that I have, but not the .doc files. The folders either don't appear or only appear as shortcuts.
I have Ubuntu 10.04 in my laptop and at the same time I have Windows 7 (partitioned disk). I use mostly Ubuntu, but I need windows for some stuff. I want to share files of windows with Ubuntu (is weird but when I installed Ubuntu never gave me the option "share files from windows", I dunno why). Anyway, I can see the disk in Ubuntu, and I can see the folder /Documents and settings/, that creates windows by default with my files. However, the route is too long to arrive there from Ubuntu using the Terminal.
I created a shadow link using lndir to arrive to my files easier. It works fine, however, sometimes when I go to the files using this route, these are lightened in red, and when I try to enter to one of these folders, the system doesn't recognize it. After a while, these are in blue and I can go in them. Why it is happening?. What I did Is the "correct" way to do it?.
I typed in a text file (Feb.txt) at work using the basic Microsoft Notepad text editor and emailed it home. When I tried to open it from the email using the default gedit I got an error message - Could not open the file /tmp/Feb.txt gedit has not been able to detect the character encoding. check that you are not trying to open a binary file. Select a character encoding from the menu and try again.The character encoding is set to 'automatically detected'.
How come it can't detect the encoding? I had to manually set the encoding to Western(ISO 8599-15) to load it. I can't remember this happening in the past, and it was OK loading one I sent earlier (Jan.txt) which presumably had the same encoding, as it was written in the same way.
Before Christmas, I wiped all partitions off my Acer Aspire One D150 netbook and installed Jolicloud Linux to try out. It's great, but I'm missing too much of my Windows-only software so I'd like to switch back.The problem I'm having is that the Windows XP Home setup CD is starting up the installer fine, but when it comes to selecting the harddrive to install on it's not finding anything.I've tried using GParted to wipe all partitions again and create a new FAT32 partition, but that's not being picked up by Windows XP setup either. (I've tried setting the 'boot' flag on this partition in GParted as well, but no change.)Is FAT32 not the correct paritition type for Windows XP Home? I'm thinking this isn't relevant at this point, because Windows XP setup doesn't seem to be mounting the HDD, nevermind analysing what partitions it has on it already.
I have a gateway laptop that I have attempted to dual boot, but the computer only sees the Ubuntu OS and the Vista Windows Recovery Partition. (Actually, gnome reports 3 separate Ubuntu OSs... part of the problem?)
When I type fdisk -l, I get the following message code...
I recently have installed Ubuntu 10.10 Maverick Netbook Edition in my personal netbook. The thing is that I had installed Windows 7 in the hard disk drive so I decided to install Ubuntu alongside with it. After the process of installation everything was cool but I hadn't the Grub working. I then pressed the Shift button during the booting process so I got the Grub menu but it didn't show the Windows 7 partition. The Windows installation was not erased because its file system is present in Nautilus. I have tried reinstalling the Grub a thousand times but nothing changes. I have attached the results of the boot info script so you can have some info about my booting configuration.
my android phone doesn't seem to be recognized by the system and it's file system is vfat how did it occur while i've been using my phone as a storage device it still works yesterday but upon plugging it in the usb port it says "cannot mount volume".....
I can do multiscan documents using xsane and the scanner and create multipage PDF. My next wonderment was how would you create it so you can search for text in the PDF file. I am assuming the scanner is really just creating an image file. And the reader needs text? I did find a decent OCR web based solution. It looks like it would be a lot of work to put something like that together.
I have a file with 5000 lines. it is a list of books authors, series and titles. all lines start with the author names, than there is a dash (-) than the series name, a dash again and the title of the book.
The problem I encounter is that sometime there is a series, sometime not, and as I try to enter this list in a database, I wanted to create a cvs file to import into mysql.
ex:
The best would be to be able to add in the second line, a "space dash space" just after the author name, but how to make sure it does not do it to the first line as well.
If I could separate all line with 2 dash, (grep ?) then I would be able to do a simple replace, and change the single dash into two.
I want to create a logon script (or somesuch) that creates a file (if it doesn't already exist) and checks the file for some info otherwise. If it finds a given trigger in that file, it logs into a local database and does some operations.
Now my problem isn't with creating that file or even getting it to function as a logon script -- it's with permissions. After the logon script creates the file, I want that user to have read access on it ONLY. Further, I don't want to give the user any kind of root access so that they could do the database operations in question or chown/chmod the file.
What's the best practice here? I'm noticing that whenever the script runs (in .bashrc right now) the script runs with the current user's permissions. Ideally, I'd like to make it so the login script can run at a higher level of permissions, (higher than the user has). Is this even possible? What's the best way to do this?
I need to create a script to count the number of lines from a text file . The output must be put on another text file (no_lines.txt) and in this file i need to generate from the script this output :"File $FILE has $NO_LINES lines ".
I was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.
But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??
trying to learn how to write a bash script that will create a new text file named jimbola in my home directory. The file will need to be able to have the first and last name of Jim Bola included in it.
I created text for a bunch of "#!/bin/bash" scripts in MS SQL Server. Being on a Windows machine, I used Ultraedit to create text files for a few examples. After copying the files to a machine running Ubuntu 10.10, I changed group and owner, and made them executable. However, they won't execute. I get "file not found" errors. But, if I paste the content into text files created in Ubuntu, it runs fine.
im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.
echo $(ps aux) >>out
The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.
Firstly i'd like to introduce myself before I ask my question, i am currently studying a "Network Operating System 2" course, and in the syllabus the professor decided to use Ubuntu Linux for us. This is a first for me and I am truly greatly interested in the OS. It seems like a solid system once you get to know the deep foundations of it. The professor has already given us an assignment, but I feel its not fair as its just a bit too much from out of what he taught us .. He did not teach us what he is asking for. He asked us to create to a text file which lists the Sales from two Salespersons, and each one will have an amount for each month .. So 12 entries for each salesperson.
Using that text file, we should write a bash script which would read the values from the above text file, and produce a "Monthly Sales" text file, which shows the total sales of each month (combined from both the salespersons). I would like to ask for some guidance, some help on how to start. It's just that he didn't teach us any commands about this matter.
I want to convert many text files(copied from windows workstation) into utf-8 encoding file. Yes, iconv is available for it. However, I have to give source file encoding at the command line parameters! The problem is, at most case, I am not sure the source encoding of it. And, I also want to use a script to convert many files recursively.
Lets start with useful information:I need to create a hidden file for windows/linux using my c++ program.The file will be created on a mp3 player (fat32 file system) and the name will be ".myFile", so the file will appear hidden onux system (period before the name).The problem:Using windows I'm able to see this file, cause the "hidden" attribute is not set. On Windows API there's a function to do that (CreateFile), then I was trying to find a compatible function to set the hidden attribute, but there's no success until now.Could someone show me the way? There's a program to change these attributes: mattribI will try (again) to find the source code, if someone knows where could I find it