General :: Locate Command To Include The External Hard Drive
Feb 10, 2010
I normally use the "locate" command to find files that I have on my local drive. However, if I wanted to do this for an external drive, how would I go about this?
From what little I know about Linux, I'm guessing that it creates a reference file from which it performs the search when the command is typed. If I'm right this is updated at a given interval or when "updatedb" is used?
As the external hard drive is not always mounted is it best to create another of these reference files and have a different command (e.g. locateext) or something? Or is it best to add the external hard drive's location to the list of files that get added with updatedb.
I'm running Fedora 11.
View 4 Replies
ADVERTISEMENT
Mar 18, 2011
I have a Linux application(ProMAX 5000) running in a virtual Machine on my windows OS. I am using an external Hard drive of 250G in ext2 file system as my device for large data read, write & execute file system. I have already mounted the device from /etc/fstab. But i want my application to access this device as a Primary data storage device OR Secondary storage device. What command will i invoke to partition this 250G drive as my primary or secondary storage device.
View 1 Replies
View Related
Jan 25, 2010
I got a dell inspiron 1501 laptop with a 80Gb sata drive what is the best solution to add data storage space for someone that love to have multiples operating systems at hand Note: I use mostly linux so I won't need to change my laptop for many years maybe ...
View 2 Replies
View Related
Dec 21, 2010
Have a QNAP TS219P+ with two Samsung disks and a WD as extern disk on my Nas. I also have a Dreambox 800 Satellite receiver. Both Linux. I mounted the satellite receiver to my NAS and also a mount to the extern drive. This all works well, until.
I programmed the NAS to go down at midnight and to startup again in the morning. All the mounts are back and working, except the mount from my dreambox to the extern drive. It seems that the dreambox cant locate the extern drive anymore, while the NAS recognice the extern drive well. I first must shut down the whole system, reconnect the extern drive, startup again the NAS, startup again the dreambox reconnect the extern drive and with some luck all is up and working again.
The mounting is done via NFS and this is my line:
Has someone an idea what this mounting problem is?
View 1 Replies
View Related
Jan 14, 2009
I have 2 ubuntu's: 1 on my ineternal hard drive, 1 on my external
When I startup without my ext drive =>GRUB error 21.
And when I plug it in I can choose: the standard ubuntu kernel is the one on my external, and the original one is listed under other...
I'd like to be able to startup without external hard drive and make the ubuntu on my internal drve the standard.
View 14 Replies
View Related
Apr 29, 2011
I have to locate and display the findme file on an XFS file system but the file is located on a second hard drive. The hard drives area number sda1 and sdb1know to change a directory, you use the cd command but I cannot remember how to do it for another hard drive. I tried cd /dev/sdb1 but I know that is not correct
View 1 Replies
View Related
Nov 4, 2010
if I try to install a linux distro on an external hard drive, while I have windows XP on my primary, will the Linux stlil install a Grub on the Windows MBR. Or have I got that wrong.
View 2 Replies
View Related
Mar 27, 2011
I have Red Hat Enterprise Linux 6 installed on my machine. I am unable to mount an External Hard (NTFS). I have tried several options which are as under:
Option 1:After making a dir /media/windows mount /dev/sda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
Option 2: mount -t ntfs /dev/sdb1 /media/windows
View 2 Replies
View Related
Apr 6, 2010
I've been thinking about it and I have a few ideas how I could do this...
I could always just image the drive...
Code:
dd if=/dev/sda of=/media/EXHD/bakup_$(date +%F).iso
Also; I could use rsync...
Code:
rsync -auv --delete / /media/EXHD/bakup_$(date +%F)/
[Code]....
I've been doing mostly "dd" images...but was wondering if I'm just wasting time backing up a mostly empty HD (256GB and only 5% is used...so dd-ing seems like kinda of a waste).
View 2 Replies
View Related
Mar 18, 2011
but I have literally just starting using Linux (Centos) in the last week or so. I am using a standalone PC that is not networked, and as I will be downloading and generating a lot of data on this machine, I would like to regularly backup onto an external hard driveIdeally I would likethis to happen automatically as there will be other people using the machine.There seem to be many different ways of doing this, and I am getting a bit confused about the best method to use.
View 2 Replies
View Related
Nov 4, 2010
I have a Seagate external hard drive and I want to use it to back up my home server since it runs Ubuntu 6.10 and the upgrade to 10.10. My problem is that I am not able to format the drive to use it. I can not change the permissons or if I try to format I have all sorts of trouble. I have tried doing it on the home server running 6.10 and another pc running 10.10 and had no luck. Is there a better way? I have even tried chmod and chown with no luck.
View 2 Replies
View Related
Jan 20, 2010
I am trying to recover files off a 3.5" IDE Hard Drive that had Windows ME installed on it. I have access to a MacBook, Windows XP Desktop PC, and a cd with Ubuntu 8.10 on it.
Attempts:
1) If I make the HD the only primary master HD it won't boot up.
2) If I make it a slave drive it won't boot up.
3) I purchased an external enclosure from Radio Shack which turned out to be crap and online reports supported this conclusion. I got nowhere with that thing. Bestbuy doesn't sell 3.5" IDE enclosures.
4) By using an IDE / SATA to USB kit, I am able to connect the HD to the PC via USB cable. XP will detect the drive, however the HD will not my displayed under "My Computer" nor "Disk Management".
Onto linux (this is where I grabbed the Ubuntu cd):
5) When connected, the HD will show up under "Computer" as a "USB Drive". When I double click on it I get the error "Unable to mount location Can't mount file".
Allow me to show you some commands I ran:
Code:
Code:
Code:
View 14 Replies
View Related
Aug 21, 2010
I was in the process of backing up data from my hard drive to an external usb drive when the drive suddenly became read only. Does anyone know how I can make it read/write again? I am using Debian Lenny and the drive is ntfs formatted. I have another ntfs formatted usb drive that is not effected in this way.
View 7 Replies
View Related
Feb 27, 2010
I have a 250 GB external hard drive formatted with Windows NTFS file type.How do I format it to use linux and what file type is best. I'm done with Windows so that is not a concern.
View 4 Replies
View Related
Feb 3, 2010
Ubuntu 9.10 recognizes my Freecom 120gig external hard-drive (when it's plugged in) and I can manage its contents OK - except via the command line. I don't seem to be able to find its path-name. See below:
mike@mike-desktop:~$ cd /media
mike@mike-desktop:/media$ ls
cdrom cdrom0 FREECOM HDD
mike@mike-desktop:/media$ sudo fdisk -l
[Code].....
Despite all this info, I fail to get into the external hard-drive from the command line.
View 7 Replies
View Related
Oct 21, 2010
I recently had a laptop die on me. I, of course, then to recover the hard drive. I wanted to install slackware to a partition on my drive, so I can have a linux distro with me( also I have a FAT32 partition for shared space) I have a Slackware 13.1 disk one (which i need, since I don't need a graphical environment or anything), and proceedd to follow setup program. I have a 5GB '/' partition, a 10GB '/home' partition, and a 2GB swap partition. My ROOT partition is bootable. The setup program seemed to complete succesfully, but it won't boot. When I choose to boot from my hard drive (in the bios), it reverts to the slackware disk, if present, or the standard windows drive.
I installed LILO to the superblock of my external, because according to the setup the MBR option installs to "The MBR of your first hard drive", and I wasn't sure if that was right, since my first hard drive is my windows one. Since i'm not even seeing LILO, I think it has to do with installing to the superblock. I want to be able to boot a basic linux distro if needed from whatever computer I want. I'm not sure if slackware was the right choice, but it was one that I had worked with installing before, and knewthat you didn't necasarraly have to instal all the graphics stuff. I just want a shell. Sorry if my question sounds retarted, I'm new to the whole "Multiple drives, and operating systems" thing
View 3 Replies
View Related
Aug 4, 2010
In Ubuntu 10.04 all I had to do was turn on my external hard drive and it would automatically be detected and mounted. I just switched over to Ultimate Edition, which I think is Ubuntu 10.04 with a lot of stuff added on to it. The funny thing is when I turn on the external hard drive it doesn't get mounted, and I don't think it's even being detected. I looked in gparted and it doesn't show up there. If I boot into Ubuntu 10.04 and turn on the hard drive it still gets detected and mounted, so there's nothing wrong with it. Ultimate Edition can detect other things connected to USB, like my iPod, so I'm wondering why it can't detect my hard drive.
Edit: When I do tail -f /var/log/messages and if the drive gets detected, this is what it says:
[ 230.520892] usb 1-2.4: new high speed USB device using ehci_hcd and address 6
[ 230.639400] usb 1-2.4: configuration #1 chosen from 1 choice
[ 230.639717] scsi9 : SCSI emulation for USB Mass Storage devices
[ 235.631550] scsi 9:0:0:0: Direct-Access Maxtor OneTouch 0122 PQ: 0 ANSI: 4
[Code]....
View 1 Replies
View Related
Nov 21, 2008
I want to copy a .tgz file from my computer to an external hard drive. However, I get the following message:cp: cannot create regular file `/mnt/usbkey/ws_2008/misc/minipar-0.5-W indows.tgz': ermission deniedI get this error with any file I try to copy to the external disk. rnal disk is recognized, when I mount it, I can see the files and folder I have there, but seems that I cannot copy anything to it.When I try to copy the same files from my computer to a usb flash drive, everything works
View 9 Replies
View Related
May 6, 2010
I;ve been using Ubuntu (10.xx) for a few months now and am really getting the hang of it.My NAS drive has now failed.It is a WD Mybook world edition 1tb with the blue rings.The drive spins fine and in windows I can see the partitions but I understand the file system is linux based.Can anyone help as to how I can mount the drive and recover the files using ubuntu / linux.I have a USB caddy to connect the SATA drive to my laptop.
View 9 Replies
View Related
Mar 16, 2011
I administer a remote server via SSH that runs CentOS 5.5. I have been unsuccessful in all my attempts to write to two different external USB hard drives with a single ext3 partition when logged in as root.
When attempting to create a "test" directory I get one of two messages:
Quote:
Both drives *appear* to have filesystem issues. When I run an fsck on either drive, I get:
Quote:
Keep in mind this is a newly-formatted, empty drive.
Not putting stock in the odds that I've had two hard drives (different sizes and brands) with the exact same hardware problem, I'm going to assume this is a software issue, although maybe it isn't. Hence, my post in "Linux - General". I've heard talk elsewhere of controller (chipset) issues coming into play. Is this valid?
Okay, here's the information you'll need to make a diagnosis....
Here's the output of a "df -h" command:
Quote:
Here's the contents of my /etc/fstab:
Quote:
Here's the output of "cat /etc/mtab":
Quote:
Here's the output of a mount command:
Quote:
Here's the output of fdisk on the device in question:
Quote:
The number of cylinders for this disk is set to 48641.
There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):
I've got someone with access to the box if necessary. But it might take days to implement solutions since this isn't his full-time job. Remote solutions are, therefore, preferable.
View 13 Replies
View Related
Jul 27, 2011
From some Googling, I've found that you can use Bootcamp to install Linux Macbook.However, I have a Macbook air and do not have sufficient disk space. I was wondering if I could install it on an external drive, and boot it from the Macbook? I think that the problem is the bootloader. But, if I still use Bootcamp to install Ubuntu, it would set up the bootloader, and then I would just install to an external?
View 1 Replies
View Related
Jul 21, 2010
I had installed Ubuntu 10.04 onto an external hard drive connected by USB to my laptop:
sdd partition
Windoze still resides on the box's internal hard drive:
sda2 partition
I also partitioned the internal hard drive so that I have a repository where my documents etc can be accessed by either linux or windoze:
sda3 partition (FAT32) I'm assuming that Grub is on the external drive somewhere - as is probably now the Windoze MBR. I'd like to be able to give my wife the ability to start the box (and boot into Windoze) when the external drive is not attached (so that she doesn't have to take the latter with her when she needs to be mobile with the computer). What do I need to do to move grub and the MBR back onto the laptop's internal drive? Or, I suppose: What do I need to do to obtain the functionality that I'm looking for? I'm getting somewhat more comfortable with the command line but, I still need a bit of hand-holding
View 4 Replies
View Related
Jul 30, 2011
I have two USB 2 external hard drives. I want to copy about 30 gigs of data from one to another. What command line command do I use ? I was thinking of using cp with the -R and -n options, but I have no idea what devices to refer to. I can't find any external hard drives in /etc/fstab and I'm not sure what /dev device each USB external hard drive uses. I just want to copy the files and the directories that they are in just as they are. There are no links and I do not want to do a backup.
View 10 Replies
View Related
Mar 1, 2010
Having just moved to Linux from Windows, I have never considered whether or not to partition my 250 GB external hard drive. As of right now it will only be used for data storage. Should it be partitioned? If so, what size partitions?
View 7 Replies
View Related
May 17, 2011
What is the best way to locate a file or folder in your hard drive? I have been trying to do that through searching in "Files & Folders" but it seems that the search is not thorough: it doesn't look for everything. I have an external drive that when it's connected to the computer I would like to search inside of it as well. The "Files & Folders" option does not seem to do that at all.
View 6 Replies
View Related
Jun 3, 2011
I have a laptop with only 30GB storage and I want to install Lubuntu in virtual box but Lubuntu needs 5GB of storage space which i dont have. Could i use an external 160GB hard drive to act as the hard drive for the virtual machine without affecting the files that are already on the external hard drive
View 6 Replies
View Related
Mar 2, 2010
Hybrid Storage harddisks use a large non-volatile cache to save power and improve speed. I wanted to ask if there's a reasonably simple way to simulate that under Linux. Ideally there would be a FUSE-filesystem that does this, For now this is purely theoretical, but my setup would be a small home server (Sheeva Plug) with an external USB harddisk that goes to sleep after a few minutes of inactivity. To keep it powered down as long as possible, I would like to use a 16GB SD card as a cache for the harddisk, thus simulating Hybrid Storage.
The only possible solutions I found thus far were Hierarchical storage management packages for enterprise use, which are way too expensive for this task.
View 1 Replies
View Related
Oct 7, 2010
I try
mount -t ntfs -o rw /dev/sdb1 /mnt/exthdd
it doesn't give me any response so I presume it succeeded but when I try to touch it, it tells me it's a read-only file system
View 1 Replies
View Related
Jan 20, 2011
I have a rather large USB drive that I'd like to be able to use across the different machines I own. I'm having a hard time figuring out what would be the best file system to use on it to be able to read/write things from the 3 OSs I'm in contact with: Windows, Linux and Mac.
View 5 Replies
View Related
Jan 30, 2010
Manually mount or fix my external hard drive. I can't format the drive because I have important data on it. The drive is 1TB Select USB 2.0 Desktop Hard Drive from Iomega. When I plug it in, a message appears that reads:
"Error mounting: mount exited with exit code 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb2,missing codepage or helper program, or other error. In some cases useful info is found in syslog - try dmesg | tail or so".
Also, I plugged in the drive, typed the command "sudo fdisk -l" in the terminal, and received the following:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Partition table entries are not in disk order
View 2 Replies
View Related