General :: Find/search Root Partition ONLY?

Jun 11, 2010

Say I need to do: find / -name somefile.txt

And say root partition / is mounted on /dev/sda5; however, let's say I also have 250GB partitions (/dev/sda6, /dev/sda7) mounted in /media - AND another location that I cannot currently remember. Say, also, that I know the file I'm looking for is on /dev/sda5.

Obviously, the above command will also descend in /media and that other directory which represent the big partitions, wasting time in looking for the file in the wrong place.

Is there a way to instruct find (or other command) to search only / on /dev/sda5, and NOT to descend to directories if they are on different partitions ?

View 1 Replies


ADVERTISEMENT

Ubuntu :: Grub Cannot Find Partition / Set It To Search?

Jun 27, 2011

I recently installed Ubuntu 11.04 on a clean hard drive. Everything went well and I ended up giving /home it's own partition. After a while I figured I would dual boot with windows 7 and my mbr got overwritten. Now after this happened I googles how to fix it and found the same answer almost everywhere. It had me go into terminal and run grub an find my partition and setup grub again. All of this was done off a livecd. The only problem was that my livecd didn't have the grub shell installed. Everytime I ran "sudo grub" it would say "sudo: grub: command not found" I tried to install it but it kept giving me errors and I only once actually got into grub, but it could not find my partition. Whenever I typed "find /boot/grub/stage1" it said directory does not exist. So I attempted to fix it my own way. I installed another version of ubuntu along Sid the first. This allowed me to triple boot between the two versions of ubuntu and windows 7. So I booted into my original ubuntu (11.04) and deleted the older version of ubuntu with gparted. I deleted the partition and restarted, but when I restarted I got an error saying that grub could not find the partition. I can boot into my original ubuntu through the ultimate boot cd but it is a round a bout way of doing it. Is there anyway I can set grub to search for ubuntu 11.04 on startup instead of the deleted version of ubuntu?

View 9 Replies View Related

General :: Pausing Kernel During Boot - VFS Cannot Find Root Partition

Sep 28, 2010

First time trying anything like this. I'm running a Abit NF7 with a silicon image 3112 that's support was broken in 2.6.35. I get a kernel panic when VFS can't find the root partition, I can't remember the exact line (can't log it, root isn't mounted yet) but it says something like sata1: link down (sstatus 0 scontrol 0). I think there might be a more telling error message before, but it flies by too fast to see or capture with my camera video recorder.

There's a patch that reverts back to when there was a delay in /drivers/ata/libata-sff.c in the function ata_sff_tf_load, by calling ata_wait_idle(ap) which fixes the issue for some people but not my system. I don't know anything about what I'm doing, but I thought I'd go through and add printk's in each function in sata_sil and see how far the device was initialized. I did this but they all happen early in the boot that flies by. Is there any way to add a pause like the "more" command? [URL]

View 5 Replies View Related

General :: Search The Root With Everything Treated As Lowercase First?

Jan 6, 2011

I would love to see if there is a way in linux that if I have forgotten the command name and would like the search the entire root using "find" command but I am not sure of the case sensative of the command name (eg. VBoxManager or vboxmanager). So how can I search the root with everything treated as lowercase first? or is there a regular expression to search?

View 4 Replies View Related

Ubuntu :: Boot Failure - Can Not Find Root Partition No Uuid

Mar 5, 2010

I posted this first to thread 'Boot problem - "Gave up waiting for root device.", (initramfs)' then realized that I should start a new thread because the problem is not the same. On boot the splash goes black and nothing happens, On a recovery boot it drops into shell BusyBox and messages indicate that the root partition cannot be found. After booting from CD Gparted GUI partition information shows no label or ssid for the root partition sda2. The data for the root partition appears to be there. how to fix this? My /home, swap, and / are on separate partitions formatted ext3. I have a recent backup only for my data. I would like to avoid having to rebuild my system from scratch.

View 9 Replies View Related

General :: Did Not Find Any Option For Root Password For Root User In Ubuntu 9.10?

Mar 2, 2010

i used opensuse 11.1 ...there is option for root user to create password for root...but for ubuntu i did not find anything like that...so how can i create root password....or how can i use root

View 1 Replies View Related

General :: Case Insensitive Search From Find Command?

Apr 29, 2011

I am not able to figure out how can I do case-insensitive search using the find command.

I tried

find . -name -i pattern

And it does not work.

View 2 Replies View Related

General :: Find Command \ Search File Excluding The NFS?

Jan 20, 2010

I want to search file excluding the NFS ...find / -mount -name 'filename' restricts the search only in the root disc partition,but the file can be in other partitions alsoIs there any way to exclude the NFS only.

View 2 Replies View Related

General :: Find Command To Search Wildcard In Path?

Dec 8, 2009

I need a command to search for any file in a directory like so:

/home/*/upload/* and then change permissions any file in that directory.

Find doesn't seem to match what I need.

View 12 Replies View Related

General :: Find Text After String Search In File

Aug 2, 2011

I have a file called Regions.ini that looks like this:

Code:
[Granite]
RegionUUID = 54ab7cd2-0e70-49b7-8020-8dbeb84c08d0
Location = 9991,10007
InternalAddress = 0.0.0.0
InternalPort = 9001
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9

[Syenite]
RegionUUID = 8fc56fdd-0afd-4074-9432-0ae8f42b799f
Location = 9992,10007
InternalAddress = 0.0.0.0
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9
What I need to do is find out what the IP address is after "ExternalHostName ="

After that I will need to compare that IP to whatismyip and if it's different then replace it but that is easy to do with sed. I just can't figure this simple hurdle out.

View 12 Replies View Related

General :: Using Find Command To Search For All Pictures, Or All Music?

May 17, 2010

Trying to find a way to have the find command perform a search using multiple file extensions such as "find all pics" i.e. .jpg, .png, .gif, .raw etc. I would have thought something like the following would have worked, but apparently I'm doing something wrong:

sudo find / -type f -iname "*.jpg" "*.png" "*.gif" -printf

I'm guessing find simply doesn't support more than one "-name/-iname" at a time? Or perhaps I'm going about this the wrong way? I realize most times there's several different ways to skin a cat when a task is requested in linux/unix.

View 5 Replies View Related

General :: Search Partition For Specific Sequence Of Bytes

Aug 17, 2010

I lost an important file. I know what bytes the file begins with. How can I search the partition for the sequence of bytes?

View 4 Replies View Related

General :: Ubuntu 10.04 - Search A Ntfs Partition For Files?

Aug 24, 2010

My Linux system has an NTFS disk attached to it. How can I search for all *.txt files on the NTFS partition using Linux?

View 2 Replies View Related

General :: Search A File To Find If Variable Belongs To A Field?

May 18, 2011

I have a file that contains 5 fields and anothen one with two I want to take the value from user and search file1 and if the value exists then write in file2 to the $2 to the line that $1=value

file 1
1:fsdfsd:g:33:fsdf
2:yytgdcf:a:3:sgd
3:tttt:g:67:yujhggfg

[code].....

View 2 Replies View Related

Ubuntu :: Desktop Search Dead \ Trying To Find A Good Desktop Search Tool?

Jun 16, 2011

I'm trying to find a good desktop search tool. Beagle is dead, Recoll and Strigi are KDE, and Tracker is not many features (can't even search Thunderbird 3). Do I miss something? Is desktop search on Linux dead? Should I use Google Desktop Search instead

View 2 Replies View Related

General :: Defined Root Partition Not Created A / Boot/efi Partition?

Aug 31, 2010

when I tried to install Fedora on my pc, I got this error message " Defined Root partition not created a / boot/efi partition. I am trying to install it on a seperate hd. My main one has windows xp pro, but I do not want to interfer with that at all?.

View 14 Replies View Related

General :: Find Command When Loggin As A Normal User And Search For A File Passwd Under?

Dec 25, 2010

when loggin as a normal user and search for a file passwd under /etc. i get few errors with permission denied.how to ignore this permission denied errors.

csh hostname 109 % find . -name passwd
find: ./lvm/backup: Permission denied
find: ./lvm/archive: Permission denied

[code]....

View 4 Replies View Related

General :: Could Not Find /dev/root

Mar 8, 2011

My server unable to boot up and got the the message "could not find filesystem /dev/root" after adding 1Tb of storage space from Storage Area Network (SAN) to the root partition. how to restore my backup folder or how to restore the server to it original state.

View 1 Replies View Related

Red Hat / Fedora :: Root Search Path ?

Aug 31, 2010

I am trying to find the permissions of the directories in the $PATH variable.

I am trying to use the following:

View 1 Replies View Related

General :: How To Find Root Files And Dirs In Some Dir

Oct 31, 2010

For example I have "/some/dir" which contains user's files and directories. I want to check if there are any files or directories of root. I guess I should use "find" command but what's the full command to find it out?

View 2 Replies View Related

General :: Can't Log In / Root Partition Full

Jun 15, 2011

I am having trouble logging into my ubuntu 11.04 desktop. When I type my username and password to login my screen goes blue, as if it is going to next show my desktop wallpaper, but then it loops back to the login screen. I had no idea why and so I went to ALT-F1 and typed in "df" and it turns out that my root partition is full. This is strange since I set aside 40GB for it and I didn't install anything or that many programs that would fill it up. Anyhow, is this fixable by booting to a live cd and using gparted to make root bigger or is there a better way to fix this?

View 6 Replies View Related

Slackware :: Warning With Search By Find?

Jul 16, 2011

I mount two ntfs partitions under my Slackware/win/C/win/Dwhen i process a search via "find" it give me the following when reach /win directoryfind: warning: not following the symbolic link '/win/C/Document and settings'i wantto know what is going on and the solution

View 2 Replies View Related

General :: Upgrade From 9.10 To 10.04 On A Netbook With A 4GB Root Partition?

May 13, 2010

I have an Asus EeePC 901, running Ubuntu 9.10. I'd like to upgrade it to 10.04. I don't want to reinstall, since I have a bunch of scripts and programs all set up.However, when I attempt to upgrade using sudo do-release-upgrade, I get an error asking me to free up another ~600MB on /.

My / is mounted on sda0, which is a 4GB SSD. I do not have 600MB worth of deletable stuff on /.I've emptied my trash, and done apt-get autoremove and apt-get clean.I do have plenty of space in /home, mounted on sda1 (a 16GB SSD).Is there some way I can tell apt-get to use a different download/temp directory?

View 3 Replies View Related

General :: Cannot Create Root Partition On Windows 7?

Nov 4, 2009

New Dell Inspiron 1545 Laptop with Windows 7 Home PremiumTrying to load Fedora 10 in available space. Had to go to custom layout none of the other partition selections seem to work - kept getting error messages. Custom layout would let us format the / and /boot partitions we created.

View 5 Replies View Related

General :: Fix Grub After Moving Root Partition?

May 15, 2010

Because I am using one of the new WD disks I am trying to aling my root partition with the real sectors, as described here:[URL]31So I copied all files to a temp location, deleted my partition (/dev/sda3), recreated it a few cylinders later (same name) and copied the files to the newly created partition. But now when I try to boot, I get my old grub menu but after selecting my kernel version it hangs

View 15 Replies View Related

General :: RAID At Root Partition In Debian ?

Feb 11, 2010

The RAID level 1 interested me because of its redundancy in both drives. And I successfully made it in a couple of partitions. But, I always did it after Linux installation. Then, I create both partitions, use 'mdadm' to create raidtab and RAID device (md0, for example) and then I format the RAID device with 'mkfs' and mount it.

Until there, it's all OK.

But my problem is to mirror ALL the hard disk, inclusive root partition. To do that, I guess I need no Linux installation, then create the RAID (md0, raidtab, etc) and after that install Linux in RAID device created.

But I'm new in Linux world and I have no idea how to do that.

I use Debian Lenny, so I need a solution that uses only the first DVD of this distribution.

View 10 Replies View Related

General :: Repartitioning Without Losing Root Partition?

May 25, 2011

i have suse linux enterprise desktop on my laptop with these partitions :

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2612 20980858 83 Linux
/dev/sda2 2613 3592 7871848 82 Linux swap / Solaris
/dev/sda3 3593 3971 3044317+ 83 Linux
/dev/sda4 3972 60801 456486972+ 83 Linux

now i want to delete all partitions except root partition (sda1) and make it's size bigger then create other partitions again.

View 5 Replies View Related

Programming :: Find All The Files Not Owned By Root:root On The Commandline

Sep 9, 2010

I need a way to find all the files not owned by root:root on the commandline. How can this be done?

View 2 Replies View Related

Fedora :: Search Path - Yum & Rpm Commands Fail When Executed As Root

Jul 15, 2009

I've setup dimdim (opensource, centos 5.3) and noticed yum & rpm commands fail when executed as root because it uses librpmio from openoffice3 instead of /usr/lib (I'm running from memory so I may have misstyped). But sudo doesn't have this problem.

How can root's search path be different, especially after I state /usr & /usr/lib at the top of /etc/ld.so.conf.

View 2 Replies View Related

OpenSUSE Install :: Create A Root Backup Image Of The Root Partition ?

Oct 12, 2010

Since I installed MS2 I messed up grub. Finally I got 11.3 back to its old glory.

What would be the best procedure to create a backup image with all settings and permissions ...just in case ?

View 5 Replies View Related







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