General :: Make PHP Script Use The Second Hard-disk?
May 9, 2011
I have two SATA hard-disk drives attached to my server as shown in the following :
[root@cl-185 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 222G 166G 45G 79% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@cl-185 /]# fdisk -l | grep Disk
Disk /dev/sda: 250.0 GB, 250000000000 bytes
Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
Now, being a linux noob I need help on two questions :
1). Why only 'sda1' is shown when using df -h to get disk space usage, and what else needs to be done to check stats for 'sdb' ?
2). My PHP script needs to save a lot of 'cache' files, how to make the script use the second disk for saving the files - I mean what path should I edit in my script (current is '/var/www/html/tmp')
View 2 Replies
ADVERTISEMENT
Jan 4, 2010
I want to make the transition from windows (sick of it). Im using Lenovo G530 Laptop and was wondering which would be the best Linux Os (meaning Ubuntu, fedora or something else). Keep in mind that I mostly use my laptop for college work and a lot of video and audio editing. I also want to be able to run Dual operating system (meaning that I wanna run both Linux and Windows) from the same computer as it might be easier for me to make the transition a little bit more easier. That being said I need someone to give me tutorials (video preferred) on how to make the partitions on the hard disk and step by step instruction on how to install both the two OS in my laptop.
View 3 Replies
View Related
Jan 10, 2011
I got myself a dell laptop from the local computer store. Its a used machine with Windows Vista Home Basic on it. I want to load Ubuntu Desktop 10.10 though so I can do perl development. BUT I want to keep a copy of the entire harddrive with the dell utility partition and Windows Vista in case I want to go back. I was thinking I could image the drive but I not sure what to use, I don't have Ghost or anything, Someone had told me about Clonezilla. Would that work for me? Is it hard to use? Also I want to burn the data to a DVD or something more storable than a harddisk.
View 8 Replies
View Related
May 14, 2010
I had a dual boot (windows 7 + debian), both of them installed in my internal hard disk, with the GRUB in it. I have recently installed a second linux distro (mint), but I put it in an external hard disk. Now the GRUB allows me to boot any of the three operating systems, but I need the external disk to do it. It seems that after the mint installation the GRUB is now working from the external disk (if the external disk is not connected, the machine does not boot.) �Is there a way to change the location of the GRUB, to the internal hard disk of my laptop?
View 2 Replies
View Related
Apr 6, 2010
If you have a hard disk image (including partition table, multiple partitions,...), is it possible to let Linux treat it as a regular hard disk?
By "regular hard disk" I mean I would like to have the image show up as, for instance, /dev/hdx and its partitions as /dev/hdx1,...
(I know I can mount one of the partitions in the image using "mount -o loop,offset=x ..." but I don't really like this option.)
View 2 Replies
View Related
May 4, 2011
I have a linux server running Red Hat Enterprise Linux AS release 4 (Update 8) that I need to do some unusual configurations to. I have a hospital application written using a database called MSE. Now the provider of this application says they will only support tape because of the fact that this system is using a specialized backup system. Basically the data is housed on raw_data blocks. So what I am looking to do is create a way to USE the SAN to present the server with Hard Drives and be mounted as if it was a tape. Has anyone tried to do something like this before? If so how did you configure that. One solution that I thought would be to just Present a 2TB lun and carve up several partitions cut not create filesystems on them. Then just create a symlink everynight /dev/rmt0 and rotate out the partitions.
View 5 Replies
View Related
Jan 16, 2011
My ubuntu login window seems to be chrased and seems no way to restore it. I was planning to move ahead with reinstalling it but could any1 tell me how can i copy data to external hard disk. I am in Mannual restore section with promt staying at root@ubuntu :/#
View 9 Replies
View Related
Jul 28, 2010
I have a Fedora 11 Installed in my machine with customized packages and scripts. Now I want to create an ISO/Image of that installed FC11, so it can be used to install in multiple machines.
View 3 Replies
View Related
Jan 3, 2011
I've set up my parents' machine running KDE 4.5 and want them to use the Gwenview import function from the Device Manager popup when transferring image files off photo CDs or other inserted media, since it's the easiest method for them to comprehend. All the files on their photo discs are r-xr-xr-x by default so they're unable to rotate or modify the images once copied to their hard disk. I want to set one specific images folder on their system to automatically force any files placed there to be rw-r--r-- (and rw-rw-r-- for another shared images directory elsewhere). It seems that umask won't work since that can only take permissions away and not add them, and I'd rather avoid getting into messy ACL configuration. Is there a way to achieve this either generically or some hidden config in Gwenview itself? I use KRename myself for such tasks but this is way too complex for my parents to understand so I need something that works without them having to do anything.
View 9 Replies
View Related
Jun 30, 2010
mount from the old hdd to the new hdd i mean (Hard disk)
View 2 Replies
View Related
Apr 8, 2009
after installing Ubuntu on one WD 500 GB hard disk and after making mistake and pasting wrong code into Terminal:my OTHER WD 500 GB hard disk that was also in the system (I guess it was "hd1") - died.The problem must be, I guess, I typed wrong code: "hd1,1" instead of "hd0,0".)500 GB (NTFS) of data was on that other (non-Ubuntu) hard disk, and now I can not access it anymore. While booting, system gives "Hard Disk Error" warning and stops.One again: I installed Ubuntu od one hard disk and at the end of instalation I pasted wrong code for GRUB, giving address of another hard disk. Now that other hard disk has error and will not work
View 3 Replies
View Related
Sep 23, 2010
I want to copy hard disk have ubuntu 10.04 and ext4 to 1000 hard disk for new 1000
View 2 Replies
View Related
Jul 7, 2009
I have a sata 320 gb with mandriva linux 2009.1 on it.And it is what curently atached to my cpu. It is shown as 'sda' in the partition table.I also have another 40gb hard disk with windows xp installed on it.It is shown as 'hda' in the partition table . Now what i want to do is attach this 40gb hard disk to my pc and configure grub on my 320gb hard disk('sda') so as to boot windows xp(which is residing on the second hard disk,'hda')Can anyone tell me if what im doing is feasible or not? If it is feasible,can anyone suggest me how to get it working. I know i just need to add 2-3 lines to my grub.conf, but dont know what exactly i need to write.
View 3 Replies
View Related
Mar 20, 2010
what are the series of files that are called when a user make copy operation from usb mass storage to hard disk?i have reached the code of the usb mass storage in linux kernel 2.6.33 and i want the exact code the make the copy how can i do that?
View 2 Replies
View Related
Jun 21, 2011
I was using Terminal and browsing a directory in my home folder. My "home" directory is located on "/dev/sdb1". When in Terminal I typed "ls" in one of my directories and the output was garbage. The output didn't show the files in the directory. I think it said something like, "input/output error". Unfortunately, I didn't write the exact error down. Instead I rebooted.The hard disk with the problem is:
Code:
$ sudo hdparm -I /dev/sdb
[sudo] password for brian:
[code]...
View 6 Replies
View Related
Sep 1, 2009
Copy of IBM Server hard disk data to Another USB External Hard disk?
View 2 Replies
View Related
Oct 6, 2010
Right Now I'm using hdparm command in unix to shut down the hard disk but there are few issues with it.
when it wakes back up it consumes
lots power. Is there any other way
to do it?
Many times when I put my
hard disk to sleep, I can see few
bursts at the beginning and then
after a while it goes to sleep. I
think its because of the journaling
system in ubuntu (which I use) Have
anybody encountered that?
What would
be the best linux/unix operating
system (eg: ubuntu/centos/redhat) to
work on extensive hard disk
operations?
View 3 Replies
View Related
Oct 28, 2010
My SSD HD supports ATA Security. Does Macbook EFI and linux support it? I know hdparm does. Who will do the unlock at each bootup? Can I still set a password without erasing the disk?
Update: removed "SED full hard disk encryption" from the title based on comment by @ataboy. Some might still refer to this ATA security incorrectly as "encryption" however.
View 2 Replies
View Related
Jan 27, 2011
I need to take an image from my laptop hard disk which has Linux SUSE installed , and I want to restore the image to another laptop (which is the same as mine). how can I do this ? in Windows environment , many programs can do this easily , but I don't know how to do this in Linux .
View 5 Replies
View Related
Mar 17, 2010
Well appears to be that i have two partitions..one of 300gb i did on windows time ago and one of 100gb where i place my DEBIAN LENNY 5.0, the problem is that i cannot write into it..only i can copy stuff from it.
View 13 Replies
View Related
Nov 18, 2010
I have just installed linux mint. original os was win vista and 3 hard disk partitions but after installing the partitions cant be seen and neither can be accessed.
View 2 Replies
View Related
Jul 28, 2010
I am new to the Linux world and I am not sure if what I am trying to do is achievable or not. I am trying to make an image of my existing drives running Linux on a USB and I want to use the same image off the USB to clone more bootable hard drives. Something like what Ghost does in windows. The problem is using 'dd' the image is too big ( I have 1tb drives ) and then I am not sure how to convert these images back on to new drives so that they boot in the OS as well. i am not sure if there is a utility that would let you do that?
View 2 Replies
View Related
Apr 28, 2010
I have 2 IDE drives, Windows XP is on the Master drive & Fedora 12 is on a partition the other drive. I purposely installed the Linux boot loader on the same drive as Fedora because want to use NTLDR as the primary boot loader. According to a guide I found [URL], I should be able to copy the Linux boot sector to a file & put that copy on the Windows drive & then modify boot.ini, so I am prompted to with an OS choice a startup.
The problem is the command the guide gives to copy the Linux boot sector (dd if=/dev/hdb1 of=bootsect.lnx size=512 count=1) has outdated syntax and does not work. What syntax would make this command work in Fedora 12? Another guide I found ([URL]-vista-already) suggested using: Grub4Dos & modifying boot.ini. This method almost worked until grub gave an error that there was no kernel loaded. What would I type into the grub prompt to load the kernel? How would I automate the loading of the kernel, so I don't have to specify the kernel each time?
View 6 Replies
View Related
Mar 25, 2010
I am developing a program which can access the SATA-hard disk. I have to use the /dev/sda interface for accessing the hard disk. What are all the commands i can use to perform the sector read, write (Both DMA and PIO), sending the smart commands etc. Or is there any easier way?
I saw that i can make use of hdparm call for getting some of the attributes.
View 7 Replies
View Related
May 17, 2010
How to boot an iso image from hard disk. I have created a linux live cd with remastersys. I want to test it. So I want to boot it from my hard disk.
View 3 Replies
View Related
Aug 31, 2010
My old laptop has no cdrom, no usb,no floppy unit...is it possible to install puppy linux?
View 3 Replies
View Related
Aug 17, 2010
I am having 2 Hard Disk 1 is having RHEL 5 Installed And 2nd is having Windows XP, now i want to dual boot my PC with the help of this two Hard Disk? Can i Dual Boot with RHEL & Win XP having Installed in 2 different HD? what is the Procedure?
View 4 Replies
View Related
May 15, 2011
All my important files is already gone because I accidentally reformatted my 160GB hard disk. What software should I use to recover my files?
View 4 Replies
View Related
Feb 8, 2010
When installing Linux,sometimes i tried to install that on my second hard disk, which is set to be a dynamic disk(named hdb),but a message said that: root is not defined for hdb.
-What does that mean? Does it mean that a Linux driver must be opened on that hard disk? if so:where do i find a linux driver
View 3 Replies
View Related
May 31, 2010
I have created a linux machine in virtual box now i want to add some hard disk space into it.
How would i do this. code...
View 11 Replies
View Related