General :: Scripting - Cp A List Of Files Which Starts With - Or Space Without - Or Space?

Oct 14, 2009

I have a list of files in a directory which starts with - or have space.

I need to copy them back without the space or -?

linux1[sim]% ls linux1[sim]% cp ./-* ./*

View 8 Replies


ADVERTISEMENT

General :: Division Of Logical Memory Space In To User Space And Kernel Space

Jan 4, 2010

Logical Memory Space of 4GB is divided in to 3GB User Space and 1GB Kernel Space. Always. Correct?

1. How can we change it? (just changing value of PAGE_OFFSET is okay?)

2. If system have only 256MB of memory (embedded system) and suppose Kernel Modules eat away all the memory during boot. User space will be left will no memory. Is this case possible?

View 2 Replies View Related

General :: Calling User Space Callback Function From Kernel Space?

Sep 22, 2009

I am writing device driver in which i have to call callback function from kernel space, which are saving my data. But the callback functions are in userspace. While accessing them i am getting segmentation fault.

View 1 Replies View Related

General :: Virtual Space Seen By Each New Process In User Space?

Jun 21, 2010

In a 32-bit system, max memory addressable is 4GB. Now Linux kernel does memory mapping division of 1GB for kernel address space and 3GB for user address space. That means 4GB of virtual address space is divided between kernel (1GB) and user (3GB).

Q1. All virtual mapping utilizes the available physical RAM without any division? I mean to say that if RAM is 512MB then a page in kernel space can lie any where RAM (leave aside old PCI dma accesses)? (How this fits to fact that kernel memory is non-pageble)

Q2. If a process is created in user space, it has visibility 4GB address space or 3GB address space?

View 2 Replies View Related

General :: Use Free Space To Extend The Space Of A Drive?

Jul 5, 2011

My system is dual boot with win7 and ubuntu. I have free space of around 10 gb. I want to add this free space to my ubuntu drive. How can i do that?

View 4 Replies View Related

General :: List Output In Single Line (space Separated)?

Feb 1, 2011

got a situation where if i process a command i get a numeric output something like below:

for example:

# cat example.txt
856589
856470
987866
656658
876897

now i want to see this output in single line like below:

856589 856470 987866 656658 876897

how do i get this?

View 10 Replies View Related

General :: Add / Of 3000mb In The Remaining 20380mb Free Space It Showing An Error Message That No Free Space Is Available

Jul 25, 2010

I have 160gb laptop. i installed vista in c primary partition which is 25gb and installed ubuntu in d primary partition which is 20gb. A remainig for my data. Now i tried to install CENT OS by formatting ubuntu. I inserted CENT OS DVD and restarted and i selected to delete my /dev/sda2 which is showing 20480mb and it shown me free space. but i tried to add partion /boot of 100mb it got added. but, when i am trying to add / of 3000mb in the remaining 20380mb free space it showing an error message that no free space is available.

View 4 Replies View Related

General :: Getting Backslash+space Instead Of Just Space?

Jul 26, 2010

I just mounted my drobo(NTFS) on my slackbox using NTFS-3g, and I can read all my files and see them all, but any file name with a space in it turns into EX: (File Name)... instead of (File Name)I am worried that my Sync software will not recognize the name.Does anyone have any tips Except to not put Spaces in the names of files?

View 3 Replies View Related

General :: "No Space Left On Device" Error On /tmp. Increase Space On /tmp?

Jan 20, 2011

cp: writing `/tmp/tmpX2KZDc/system.image': No space left on device However, when I right-click on properties, I see it has 51 items, totalling only 130.5 KB!this is a dual boot system with Win XP and Ubuntu 10.10 (~58Gb partition)Quote:

anil@anil-HP-EliteBook-8440p:/tmp$ mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)

[code]...

View 12 Replies View Related

General :: Low On Disk Space - Looking For Biggest Files?

Nov 10, 2010

I seem to be running low on disk space on my linux server. 'df' shows about 82% usage on a stock CentOS install with sendmail. I routinely delete old email directories, but for some reason, I stay pretty high in disk usage. Is there a fancy little bash script or something I could run that would find the biggest files and I could go get rid of them?

View 3 Replies View Related

Ubuntu :: Dual Boot Linux / Change Drive Space Configuration For More Space

Mar 6, 2010

I have linux and windowsxp on one machine. I have only 3gigs free on the windowxp machine and 20gigs free on the linux machine. I want to transfer space from the linux box to the windows machine.Is this possible and what steps would I need to follow to do this?

View 1 Replies View Related

Debian :: Create An Unallocated Space The Space Will Stay In That Extended Partition

Mar 20, 2010

my home partition is an extended one, and when i want to create an unallocated space the space will stay in that extended partition. but there is also an 7 gb unallocated space which i want to merge with the other unallocated space. I also cannot extend that partition over that 7 gb. how can i overcome that problem?

i m also uploading a screenshot of gparted.[URL]..

View 4 Replies View Related

Programming :: Passing Data Between Kernel Space To User Space In Asynchronous Way

Dec 13, 2010

I am developing a I2C CDROM client driver. The CDROM firmware supports TOC information read through a I2C command. It sends the TOC information in burst ( Interrupts a GPIO pin when it is ready ) and my CPU does a I2C read to read the TOC. When the CDROM firmware finishes sending the last data burst , it informs my CPU that it is done with the TOC, by a flag in the last data burst. I would like to know, which is the most efficinet way I can send these TOC information to userspace?

View 4 Replies View Related

Programming :: Function In Kernel Space Called Form User Space

Jul 7, 2009

I wanna write a file in kernel space but from my searching I can to know that instead of writeing file in kernel space ,I can write data to user space by copy_to_user space.

But link is missing ...I dont know how will my user space will access kernel space means my function in kernel space which will do copy_to_user /....How my user space function will call my kernel level function ..

Can any one of you provide me with some example file which are doing this .I know every char driver is using it ...but i could not trace back how user level function is accessing it ...i m confused between user space and kernel space.

View 2 Replies View Related

Slackware :: Disk Space Lost- Root Partition Has Very Little Space Left

Jan 31, 2010

Today I was installing a lot of software since I'm just setting up my Slackware system again after a fresh install, and I realized that my root partition has very little space left.

Here is the output of df -h:


Code:

As you can see, I have a 20G (19G here for some reason) root partition, 8G /var, and 86G of /home. I thought this would be plenty since many recent recommendations for / are 10-15G. Now, though, 17G are used up for some reason! How is this possible? I thought a full slackware install only had about 4G of software! I don't have any music or movies or any crazy huge files that I know of, and those would be in my /home directory anyway. Is there any way I can see which files are taking up all this space?

If it's necessary to allocate more space to my / partition, is it still possible to boot up a GParted live Cd, shrink /home a bit, move some partitions to the right, and expand my root partition? I would REALLY prefer I don't have to reinstall since I just spent a ton of time setting up my system again, but if worst comes to worst ... :'-(

In case you're curious, here's my /etc/fstab:

Code:

View 14 Replies View Related

Programming :: Call Socket Prog Code Written In User Space From Kernel Space?

Jul 14, 2009

How to use execv from kernel space to call a user space program writtenfor socket prog.

I tried to write code for socket in kernel but its not working.

Socket code in kernel is also needed.

View 2 Replies View Related

General :: Measure Kernel Space Time And User Space Time?

Nov 28, 2010

measure kernel space time and user space time?

View 1 Replies View Related

Fedora Installation :: Convert Unallocated Space To Free Space?

Jun 7, 2010

I was trying to install Fedora 13, on to my laptop. I have 30 GB of unallocated space in extended partition. When trying to install Fedora 13, I got stuck, as the installer says that there is no free space for installation.can convert the unallocated space into free space.

View 1 Replies View Related

Ubuntu :: How To Turn Unallocated Space Into Usable 'free' Space?

May 25, 2010

i used gddrescure to clone an 80gb harddrive and this is the result ROFL.i guess you can only do this making sure the target drive is the same size, you see i didnt know lol so..i now have THIS problem.can anyone tell me how to turn my unallocated space into a usable 'free' space? i could play with gparted right now but i dont wanna do anything wrong, so if theres anyone who can tell me how to do this.

View 1 Replies View Related

Hardware :: Reduced Disk Space / Use The Total Amount Of Space?

Aug 25, 2009

OS: RHEL AS 5 64-bit

HDD:300 GB Hardware mirror (HP blade bl460c)

While installing OS, in partition window after OS file system structure I've left 277 GB. But after installation it shows Size - 255GB and available disk space is 242 GB.

Isn't it weired? How can I use the total amount of space in Linux? I need the whole 277GB exactly. What should be my workaround?

View 6 Replies View Related

Red Hat :: Showing 0 Byte Free Space Istaed Of Freeing The Space

Dec 30, 2010

I have red hat linux server and it has mysql installed whenever i write on terminal command mysql -u root it shows error "ERROR 2002 (HY000): can't connect to local MYSQL server through '/var/lib/mysql/mysql.sock (111) "

And another problem is that it is showing 0 byte free space istaed of freeing the space. it may seems that both problems are dependent on each other.

View 6 Replies View Related

General :: Bash - Compressing Files Despite Low Disk Space?

Jul 18, 2011

I use Linux. I coded a screenshot program some time ago and now I have 9 GIG of screenshots, 60000 JPEGs, most of them look pretty similar, and I have 300 MB of disk space remaining.

What are some good ways to start to compress batches of them (or all of them) in the background given the limited space? The problem with compressing the folder all at once is that I wouldn't have enough disk space for that. It seems the process needs to be broken down into chunks. So maybe something like: Get a list of all the files Add a chunk of the files (say, 20) to a compressed archive. Once it is done and saved successfully, delete the chunk of files

View 2 Replies View Related

General :: Disk Full Deleted Files But No Space Available

May 3, 2010

My main storage partition got full, so I'm deleting files to make room. However, df -k keeps reporting no space available on that partition (/disk). Here's the output of the command several minutes apart while another process is deleting a 30G of space:What can I do to make the space available immediately?

View 4 Replies View Related

General :: Which Files Are Taking Space To Make The Partition 68% Used

Jun 8, 2011

I have some confusion about one of my partition and the space it is taking. df -h output is given below;

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ddf1_ADVDTARTINGp1
494G 18G 452G 4% /

[code]....

above information is showing that /var/lib/mysql partition total size is 379 GB and it is 68% used. However when I execute command du -sh /var/lib/mysql it shows following output.

# du -sh /var/lib/mysql
45G /var/lib/mysql

Now I want to know what files are taking space to make the partition 68% used. I want to list down all files in that partition with size.

View 8 Replies View Related

General :: Find Which Files Are Suddenly Taking Up The Space?

Jul 27, 2010

I had this come up in logwatch: /dev/sda5 4.8G 3.6G 960M 80%/

Any ideas how I can find which files are suddenly taking up the space?

View 17 Replies View Related

General :: Files Seem To Take Up More Space In Destination After Rsync Copy?

Feb 9, 2010

I have recently purchased an external hard drive in order to backup my home partition. In my PC I have a "1.5T" drive with several partitions on it, containing OSes and the home partition. The home partition is 1.3T according to df, the external drive contains one partition that spans the entire disk,df reports it as 1.4T in size. Both partitions are ext3. When I use rsync to copy files from the home partition to the external partition, the external disk becomes full, despite the destination - supposedly - being larger than the source. I don't understand why copying files from one partition to a slightly bigger partition should need more space than on the source partition. Does anyone know what is happening ?

Details : I created the partition on the external drive with gparted; gparted reported it the already have several gigabytes in used space immediately after the partitions creation - I thought at the time that this must be normal. The home partition contains many files of all sorts, including lots of big audio and video files. If you are wondering, for all my important files this external disk is only secondary backup, as they are also backed up to the "internet".

These are the mount points :

/mnt/tmp/ : home partition, /dev/sdb6
/mnt/external/ : external partition, /dev/sdc1

I used rsync to copy the files, I know there are more efficient ways to do this, but I wanted to use the same command that I will subsequently run to sync the backup.

rsync -av --progress --stats --recursive --perms --links --delete /mnt/tmp/ /mnt/external/

Next I tried adding the --sparse switch, as I was wondering if the problem may come form sparse files. I don't know however if rsync would go back and shrink the sparse file by just adding the switch and executing the command. I also added --one-file-system, for good measure. Here is what I ran next :

rsync -av --progress --stats --sparse --one-file-system --recursive --perms --links --delete /mnt/tmp/ /mnt/external/

I tried an fsck on the home partition :

fsck -f /dev/sdb6

This is the output from the last rsync :

rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "abcd.avi": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.6]

[code]....

Looking at the destination after a partial copy seems to indicate that the problem is not symbolic links being "expanded". I have not checked the source filesystem for sparse files, nor the destination to see if these files could be larger there, as this does not seem trivial.

Here is some additional info :

$ df /mnt/tmp/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb6 1415342836 1414173740 369096 100% /mnt/tmp

[code]....

View 2 Replies View Related

Ubuntu Installation :: Add More Space To Sda2 From Free Space?

Jul 22, 2010

i made space by shrinking my window partition and so i have unallocated and would like to add to sda2 to have more space. Check out this pic. How can i do this?

View 1 Replies View Related

Ubuntu :: The Problem Is Running Out Of Disc Space \ Can Add More Space?

Apr 23, 2011

I installed Ubuntu 10.10 with wubi and i have been enjoying my Ubuntu experience a lot. I installed quite a bit of programs and spent a couple hours customizing my machine. The problem is im running out of disc space. Any ideas on how i can add more space. I have gparted but i dont know where to move the free space to because wubi installed it.

View 1 Replies View Related

Programming :: Signal From Kernel Space To User Space?

Jul 21, 2011

I have the following requirement in my module. The driver gets some data from the external device. After getting 1MB of data it has to send it to the user space application. What is the best thing to implement for this in driver.? Is it ok to implement like, after getting data, the driver will send a signal to the user space application. Then the user space application sends an ioctl to read the data. Is there any alternate, that the driver directly sends the data without the user space application asks for it.?

View 4 Replies View Related

General :: Sort Big Files, /tmp/sortA3aLjF: No Space Left On Device

Aug 3, 2010

i'm sorting 8GB text file but came up with this error for an investigation

/tmp/sortA3aLjF: No space left on device

is there anyway that sort won't use /tmp?

View 3 Replies View Related







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