Debian Configuration :: Tool To Turn Off Hard Disks?
Dec 31, 2010
Is there a command line tool to shut off/spin down the hard disk either when not in use or when something is typed into the console? I'm trying to save power in a laptop I have..
I'm not sure how to do this. I checked the hard drive preferences and looked through the forums... I don't want to manually mount my hard drives(s) every time I boot up just to access my music and wallpapers.
2. lsscsi output -I installed lsscsi and here is the output: Code: Select all# lsscsi --device [0:0:0:0] cd/dvd LITEON CD-ROM LTN485S JKF1 /dev/sr0 [2:0:0:0] disk HP Net Mirror V1.0 /dev/sda [2:2:0:0] disk HP 9.10GB C 80-P94N P94N - [2:2:1:0] disk HP 9.10GB C 80-P94N P94N -
[Code] ....
3. force scsi scan -I tried to use this command to force a rescan for the hdds, but nothing happened: Code: Select allecho "- - -" > /sys/class/scsi_host/host3/scan
-no errors, but log says nothing -tried the above with host0 - 4, same result
4. fdisk -l Code: Select all# fdisk -l
Disk /dev/sda: 9098 MB, 9098887168 bytes 255 heads, 63 sectors/track, 1106 cylinders, total 17771264 sectors Units = sectors of 1 * 512 = 512 bytes
[Code] ....
5. tried to specifically add one device but it didn't work: Code: Select all# echo "scsi add-single-device 2 2 8 0" > /proc/scsi/scsi -bash: /proc/scsi/scsi: No such file or directory
I have installed a minimal system with openbox window decorator. (without any window manager) when i insert a flash disk to my computer, system doesn't mount it automaticly. i must mount it to a folder to use it.
I am running Debian 3.2.0-0.bpo.2-amd64 on hyper-v, my / volume ran out of space and is sitting at 100%, I have extended the disk size on hyper-v, however when I go to Fdisk I see duplicates of each disk.
I have total of 2 vhds on the vm, so I see 4 disks under fdisk. Here is the output of fdisk
I'm trying to do some RAID managing with mdadm. I would like to sync my spare disk and then remove it from the array for making a backup out of it with dd command (the best way i can think of to get the current image of the whole system as it can't be done using the active RAID as source, because is constantly in use and changing). So, I have RAID1 array with 1 spare and 2 active disks (configuration listed below). Now I would like to force spare to sync and then remove it from array, although not faulty.
However, mdadm man page states: "Devices can only be removed from an array if they are not in active use. i.e. that must be spares or failed devices. To remove an active device, it must be marked as faulty first."
So, I'd have to mark a disk as faulty (which it is not) to be able to remove it from array. There seems to be several people reporting that they can't remove this faulty flag accidentally given to a drive. And mdadm does not give direct for such operation. Isn't there a way I could remove and add disks whenever feeling like it?? One way would be open the cover and physically remove the disk. I'm not taking the risk, though. System is almost always in use, so there is not much chance for me to power off for temporary disk removal.
RAID CONFIGURATION: ~# mdadm --detail /dev/md0 /dev/md0: Version : 00.90.03 Creation Time : Fri Aug 4 17:38:26 2006 Raid Level : raid1 Array Size : 238950720 (227.88 GiB 244.69 GB)
I have never seen this one before (see below) - note how /dev/sda1 is mounted from the first disk listed by fdisk, but /dev/sda2 comes from the second disk; what is going on here? This is what I did: I installed the latest debian "Testing", which went well - it found the disks in the order show by fdisk -l here. When it booted up after installation, it failed because it couldn't find /, which I repaired by editing the grub menu (I told it to start from the other disk), and it came up. But now I had to mount /u01 by hand from /dev/sda1; strange. I suppose I could just go and change the physical disks around, but I'd like to understand this. Any ideas?
I am wondering if it is possible turn off my display with a key of my laptop's keyboard. I mean if I press ctrl + o then my display turn off and then if I press ctrl + o my display turn on.
I have installed Debian Squeeze on my Laptop. Everything seems to start to work fine. The only think I am not sure is the hard disk click sound only when I shut down the computer. It happens right before the power is totally cutoff. I normally do not have this sound. I presume that this maybe due to the fact that the head goes back to original position but I am not sure. Is this normal?
My system goes through slow periods where it just crawls and others where it's fine, but I'm wondering which service settings are OK to just shut off to give me a bit more oomph when I boot up.The others I'm pretty OK with like spam assassin, dictionary server and so on, but some of the others i wonder if they only serve to slow things down..Also..I live in a very dusty environment and I KNOW the fans and other parts get caked with dust and it wouldn't surprise me if the dust got so bad it just stops the fans completely so once in a while I use my air compressor to blow the crud out and I usually get covered myself, but how safe is using the compressor? It's not the type that typically fills up with condensed water droplets so that isn't a super critical issue..It's a small 1 hp deal, elect drive and so on.. Safe enough? It's all I have and/or can afford..
When I watch any video on YouTube my screen will turn off (no HDMI connection) and then it will turn on after a couple seconds (10 -40 seconds). When I played Borderlands 2 the screen is completely fine.
on my dual HD5500/GT940M. I can not turn on Nvidia. just install bumblebee and got the error "unknown header type 7f" if I remove bumblebee, Nvidia 340 loaded but system run on HD5500, no way to use Primus or to switch to 2nd card.
I have a PC104 running debian. I have 3 hard drives (in addition to the one booting) mounted in fstab by UUID. I use the options defaults,error=remount-ro. However, this means that when I boot with the hard drives not attached, I have to press Ctrl-D to bypass when the boot discovers the drives are missing. Is there a timeout commandoption I can add to fstab so that it automatically continues booting even if the hard drives are not attached? I could not find anything on a timeout command. (I tried adding timeout=1000 but no-random guess)
I have two internal harddisk. Harddisk 1 has ubuntu, fedora installed and harddisk 2 has ubuntu installed. I normally connect either one, and use it. How can i always keep connect both harddisks, and at the start, select from which harddisk to boot? Or it's not possible?
hcidump -x does show Commands/Events received, beacons are being seen, and collected by our app.
> HCI Event: LE Meta Event (0x3e) plen 42 LE Advertising Report ADV_IND - Connectable undirected advertising (0) bdaddr F9:77:66:E8:F7:8B (Random) Flags: 0x06
[Code] ....
However when the app tries to connect it always gets connection refused at gatt_connect.
gatttool behaves the same way, and hcidump does not show any connection attempts, implying no connection between gatttool and the device, although it is specified on the command line.
Finally although the bluetoothd is running bluetoothctl also shows no default controller found. I had edited /etc/bluetooth/uart.conf, adding an hciattach entry for the device but that changed nothing when restarting the bluetoothd. Entering a garbage entry into that file does not produce any errors, so I am not sure it is even being read.
Also systemctl|grep bluetooth shows :-
sys-devices-virtual-bluetooth-hci0-rfkill0.device loaded active plugged /sys/devices/virtual/bluetooth/hci0/rfkill0 sys-devices-virtual-bluetooth-hci0.device loaded active plugged /sys/devices/virtual/bluetooth/hci0 sys-subsystem-bluetooth-devices-hci0.device loaded active plugged /sys/subsystem/bluetooth/devices/hci0 bluetooth.target loaded active active Bluetooth
/sys/devices/virtual/bluetooth/hci0/address shows the correct MAC, but /sys/subsystem/bluetooth/devices/hci0 does not exist, a post elsewhere indicated this was not a problem but that seems odd.
Is the uart.conf file still used([URL] .... would suggest yes) and if so is the format a full hciattach command or merely the hciattach parameters?
I decided to update all the software on my computer. Fortunately, it upgraded kernel version 3.14 to 3.16. I was happy to learn that suspend now worked on my laptop by calling pm-suspend, but it did not worked by closing the lid. So I search and found on debian's website that installing systemd and adding some config lines in /etc/systemd/logind.conf would sove the issue. So I followed the procedure and did like instructed, to end up with a computer that boots on black screen.
The last verbrose line I see on boot up is "kvm disabled by bios" and then it shutdown down the screen. The computer works, as I can login and shutdown by doing those operation blindly.
I tried removing systemd but it still does not work. If I use the old kernel 3.14 I can boot without any problem, but if I use kernel 3.16, I boot to a black screen. I remember successfully booting in 3.16 before installing systemd.
My card Wifi network doesn't turn on, even at loading configuration of the system is failed. I have to wait a long time until the system itself to load.
And when I write ifconfig or iwconfig is displayed in the console interface wireless card.
And when I come in the panel on the network card, it immediately pops up a window that you can not load the network card modules.
I don't know what could have happened, I do not recall that I recently messed with the system.
Here are the pictures: [URL]....
And here I join dmesg.log file, at the end of a failed: [URL] ....
I'm using debian 5 x64 with xfce.Is there a way to configure (start/stop/restart) services (especially Apache2, mySQL and PHP) using a graphical or cli tool? I tried to use sysv-rc, sysv-rc-conf, rcconf and rc-conf in the terminal but Bash didn't find them (Although Synaptic show that sysv-rc is installed).
I have servers which contain SATA disks and SAS disks. I was testing the speed of writing on these servers and I recognized that SAS 10.000 disks much more slowly than the SATA 7200. What do you think about this slowness? What are the reasons of this slowness?
I am giving the below rates (values) which I took from my test (from my comparisons between SAS 10.000 and SATA 7200);
dd if=/dev/zero of=bigfile.txt bs=1024 count=1000000 when this comment was run in SAS disk server, I took this output(10.000 rpm)
(a new server,2 CPU 8 core and 8 gb ram)
1000000+0 records in 1000000+0 records out 1024000000 bytes (1.0 GB) copied, 12.9662 s, 79.0 MB/s (I have not used this server yet) (hw raid1)
I've bought a new notebook. The hard drive won't stop spinning down and then spinning up again during load. I don't want HD power saving, so I disabled it within
Device Boot Start End Sectors Size Id Type /dev/sdb1 16065 584830259 584814195 278.9G f W95 Ext'd (LBA) /dev/sdb5 16128 584830259 584814132 278.9G 7 HPFS/NTFS/exFAT
I have 2 hard drives both are 278.9GB in a mirror raid 1. Why does 2 partitions show up? Are they referring to each physical hard drive? I want to believe that this is the same partition and not two different physical hard drives since both are in the same 'start' and 'end' range. Is that correct?
I'm having two hard disks in my pc. I can easily access both of them from my windows. But in case of ubuntu i can access only that hard disk on which ubuntu is installed. The other hard disk can not be accessed from ubuntu.
I'm going to buy a new system, and I have 2 SATA hard disks from my old system. One is installed with a Linux OS, the other with Windows Vista.For the Linux hard disk, will I be able to simply use these 2 hard disks on the new system and boot up, retaining all my data? If not, how do I transfer the data from my old hard disks to my new hard disks? My old system is faulty (no signal to monitor), so I can't just copy everything directly using, say, a portable hard disk.
I'm using SUSE11.1, and connected to my system, a DELL 7500, a 1.5 TB Buffalo external HD. I partitioned it in 4 sectors.After connection, nmediatly the mounted disk would appear on the screen,(each partition with its respective name), and could use it as any other folder.To unmount the external Hard disk, I just ejected each partition, and had no problem. I used the same HD with my Mc, and things were all right, I used to backup automatically the Mc. However after having been using the system in this way for more than half a year, suddenly the hard disk began to rattle...and the SUSE system on the DELL, nor the Mc can mount the external hard disk any more. Thus, the partitions can not be mounted any more. When I cd to /media/ in the SUSE, the names of the partitions appear, but they seem to be empty..On the Mc, going to /Volumes/, before the problem appeared, the names of the partitions were there... but now, they are no more and the automatic back up either.So my question is, how to mount the disk, if it needs mounting... or how I can recover the partitions and the data therein... I am clueless, after two weeks trying to solve the problem..
In Fedora when we double click the Partitioned Local Hard Disks then we have to give the root password otherwise it will not open. Is there any way to read and execute the Partitioned Local Hard Disks without giving the Root Password.
I am booting Slackware 13.0 on an X86 from a (master) ATA hard drive. I have added a second (slave) hard drive that contains an installation of Slackware 13.1. This works in so far as I can boot 13.0 from the master drive, then mount the slave drive and read and write files to it. So the hardware is basically working.What I want to do is configure lilo so I can choose to boot either 13.0 or 13.1. So far I have not gotten this to work.
Under 13.0 the slave disk appears as /dev/hdb. The root-partion for 13.1 on the slave is the first primary partion on the slave, and appears as /dev/hdb1 when viewed under 13.0. What stanza should I add to lilo.conf to make the slave 13.1 bootable?
I try to switch the hardware switch on and off with no avail. The only way to fix it is to reboot. But then when I ifconfig down and up I'm stuck in airplane mode again.
I am new to debian and recently I have been working with a debian server. I have been asked to find out how to create a script that you can run or can be run by another program to format and mount a new hard disk?
I thought that alignment of 4096-byte sector Advanced Format hard drives was automatically taken care of via Gparted or Disk Utility until I bought a Hitachi HTS547575A9E384 (Travelstar 5K750) and saw that Disk Utility showed my partitions to be out of alignment. I then realized that my WD, which I had bought a few months ago, probably had its jumper set to emulate a 512-byte sector legacy drive (512e) and is probably not set to the AF setting.
Straight to the problem.
I've searched many sites, some of which suggest using fdisk (others the proprietary software of the hard drive's manufacturer). It is essential that one change the arguments prior to changing the partition table as there is no way back (yet, as far as I know) without having to move data to another drive and starting all over: