Debian Configuration :: Make A Cron Job That Mounts A 2nd Local Hard Drive?
Jul 1, 2011
I am making backups and I need to make a cron job that mounts a 2nd local hard drive.
It is not listed in my fstab file and I mount it manually in nautilus (having to type a password). It is designated as /dev/sdb1 and /media/repo when it is mounted. Can I get cron to mount it and then add the password or do I have to add it to fstab?
View 3 Replies
ADVERTISEMENT
Jan 4, 2016
Trying to go through some old hard drives I'd saved from a Mac we tossed years ago. Using a Sabrent USB adapter (USB-DSC9) I connected it to the Debian box and it mounts as /media. Here's the weird thing: although I can read all the random stuff, the directory with all my actual documents shows up as "you do not have the permissions necessary to view the contents". When I try to fix this with chmod, it tells me that the drive is read-only. Grr.
How do I mount the drive so that it's not read-only?
View 7 Replies
View Related
Jan 17, 2011
I recently bought 320 GB Trancend external hard disk and working fine days back.Earlier i could copy from and to the hard disk with out any issue. I dont know what happened after that now i am not able to write any files in to the external hard disk. This is not NTFS formatted device. here is some of the out put from terminal.
Code:
sundar@sundar-sundar:~$ fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
[code]...
View 7 Replies
View Related
Aug 24, 2015
when I type 'fdisk -l' I get the following:
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?
View 3 Replies
View Related
Sep 10, 2010
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?
View 3 Replies
View Related
May 12, 2010
I installed Debian on a old hard drive (quantum 5gb) and ran with it for a couple of days.. BUT all my data (including windows) is on my other hard drive.. so my question is What do I have to do to make grub detect windows and linux when I attach the 2-nd hard drive?
View 2 Replies
View Related
May 14, 2011
My problem is that my debian in hard drive 1 wont load, gives me a fatal error.
This is my computer:
Hard drive 1 (1TB): broken debian 333gb, windows7 666GB (approximately)
Hard drive 2 (250GB): debian (working fine, im using it now).
Details: I tried to install some webcam software thing and I think somehow i deleted some system files... ...So now when I start my computer, grub loads and i choose Debian on hard drive 1,i click it but when it goes through the list of things, it says
FATAL ERROR /lib/modules/2.6.32-5-amd64/kernel/fs/fuse/fuse.ko: No such file or directory
And it just goes to a blank screen with a blinking cursor.
Now that's not all. I did something else wrong... I ran Gparted from a usb stick to create an extra partition on hard drive 1 because i was trying to install another linux on it or something so I can access my computer.
But, when I tried to shrink it and create an extra partition on the disk of about 150gb, it was taking so long and i read that it may take about 40 hours, so i turned it off after a few hours. So, I may have created more problems than my original problem.... I can still boot into Windows 7 though.
So now i have:
Hard drive 1 (1TB): broken debian about 120gb, windows7 666gb (approximately), free partition
Hard drive 2 (250GB): debian (working fine, im using it now).
Also, of interest: When I look at the folders of the messed up debian, there is nothing in the /lib/modules/2.6.32-5-amd64/kernel folder. Empty.
So basically. my problem is that I get the fatal error, and then maybe i create some extra problem by stopping the partitioning when it wasnt done. so please help me try to fix the fatal error first
View 2 Replies
View Related
Apr 7, 2010
Let me quickly state that I am returning to Debian after quite a long break. I am trying to relearn some things. I suppose I'm somewhat old school. As in I originally installed from rawright, back in the days when you had to do practically everything by hand. I was quite happy with config and make. I actually learned a ton back then, as I started out knowing nothing. I guess I can learn to catch up with the modern linux world.
Anyway here is my question? In the old days if I wanted something not to be mounted I would simply comment out the entry in /etc/fstab. I notice that my USB drive is mounted but does not appear in the fstab. It is in mtab, and lsusb does show it.
If I wanted to secure a system, but not totally remove usb support from the kernel, how would I prevent the automounting of USB drives? What are the configuration files that govern their operation?
View 1 Replies
View Related
Jul 19, 2010
I moved to static Ip method for my laptop. I edited the interfaces file and it seems to work since I am writing this message from that laptop, but I have a new problem with my Debian. The mounts are not mounted during the startup anymore. Before I was using the network manager method and the nerwork mounts were all fine. Now with this method, they are not mounted and I need to mount them by firing "sudo mount -a" manually.
View 2 Replies
View Related
Mar 13, 2010
i have 3 desktop computer which all have same configuration all installed with centos 5.4.Is there any method that using yum i can download and store apps in one of the place of hard drive and execute in the same time and using yum local install can i install this apps on other computers.
View 1 Replies
View Related
Feb 11, 2011
I like installing and trying out Linux distributions on my computer. However, rather than burn the .iso files to a CD or DVD, why not use free space on my hard drive instead? Is this possible? It would certainly make things easier on me.
I currently have installed Debian 5.0.7 and Linux Mint Debian Edition. For those who do not know, LMDE is based on Debian Testing and uses the same repositories. Also, I have 80GB free on a 300GB drive. Id like to use part of the space as an "installer partition", where I can install installer .isos, boot off that partition, and install from there onto the additional free space.
View 2 Replies
View Related
Dec 19, 2010
I'm running LTSP on 11.04. The clients boot fine and will recognise the local CD and local USB drives but it doesn't mount the HD?
View 1 Replies
View Related
Jun 18, 2011
I had the idea to cache writes to my nfs filesystem on my local hard drive.
It seems CacheFS exists to cache reads, but not writes to nfs.
I would imagine that if I could cache writes to my nfs on a local drive I could have a fast system, but keep all my files where I want them on my network.
I'm thinking about this because I am planning on buying a SSD, and I would imagine if I could set things up this way the system could be lightening fast while keeping things on the network. Currently if I copy a large file (hundreds of MB) it is quite slow, with an SSD and caching, I would imagine the copy could be very fast.
View 1 Replies
View Related
Jun 17, 2010
I am working on a Debian 2.6.26-19 Distribution with exim4 as MTA. After a system restart a problem occurred with delivering emails to local addresses. These local addresses use a 1and1 mailserver for email. The MX records for the local domain are set correctly but exim does not use a DNS lookup for these addresses because it identifies them as local addresses. I figured this out by executing the exim4 -d -bt command. The dns lookup part of the result looks like this (I replaced the actual address with placeholders):
[Code]....
The eventual result of the exim4 -d -bt command is: [user]@[domain.ext] is undeliverable: Unrouteable address How can I make sure, that exim4 makes a DNS lookup for the local addresses instead of skipping it? I know that I have to edit a exim4 configuration file, but I could not figure out which and how.
View 1 Replies
View Related
Jul 7, 2010
Just curious if this is possible. What I want to do is setup a rsync job to backup my laptop to my personal file server(same LAN), but I want it do do this at 3AM while I'm sleeping. However I always close my laptop lid when I'm done using it which puts the laptop into suspend mode since that's how I configured my power options in gnome. Since I don't want to leave my laptop powered up all the time, I was wondering if it is possible to have a cron job scheduled that will wake the laptop up(out of suspend mode) and run my script/backup job, all without opening the lid of the laptop, and then put it back into suspend mode when it's done. Is this possible, and is it as easy as scheduling a cron job or is there some other scripting/configuration/trickery that I need to do to accomplish this?
Also, my laptop's BIOS has the option to power on at a scheduled time if needed, but I'm not sure if that would work with it being suspended(hibernation is not an option since my entire HD is encrypted with LUKS and I would have to be present to enter the password to boot the system.).
View 7 Replies
View Related
Aug 16, 2010
I have a XEN DomU VM running Lenny and set up using debootstrap. I also have the TimeWentBackwards issue sorted using: [URL]. The problem is that my cron jobs just don't run. I've set up a cron job that simply echoes a date string to a file as a tester but it's not running. I've tried it under the root crontab, in /etc/crontab and set up in /etc/cron.daily. Is there something I'm missing?
View 1 Replies
View Related
Oct 15, 2010
Due to a disk crash I've had to rebuild my Debian Lenny system. For some reason I can't get my cron-fired backup scripts to run. They will run manually.
It looks like crond is not running. If I try to start it, here's what I get:
Pancho:/home/lloyd# /etc/init.d/cron start
Starting periodic command scheduler: crond failed!
MORE INFO:
lloyd@Pancho:~$ /etc/init.d/cron start
Starting periodic command scheduler: crond/etc/init.d/cron: line 54: start-stop-daemon: command not found
failed!
[Code].....
Clearly the problem failure to find start-stop-daemon is not the problem and I'm still in the dark.
View 2 Replies
View Related
Mar 25, 2010
The system crontab (/etc/crontab) uses the same format, except that the username for the command is specified after the time and date fields and before the command.
[code]...
Every hour, I get an e-mail complaining about the first line of the crontab:
[code]...
I get the same complaint from the other entries: It looks to me as if cron, or anacron, is trying to execute the user (root) as a command. Predictably, the shell doesn't like it, so barfs and triggers an e-mail about it. Why is this not doing what the man page says it should do? The 2nd problem I believe is related to exim, not cron. The e-mails I'm getting above are being bounced from my ISP because they are directed to root@myisp.com, rather than my regular e-mail address. When the message bounces, it bounces to my regular e-mail address. In /etc/aliases, I have root: [URL]... and in etc/email-addresses I have root: [URL]... Adding the entry to /etc/email-addresses allowed the bounce to find me because the sender's address is [URL]... but how can I get cron to send these messages to me in the first place, instead of root?
View 11 Replies
View Related
Sep 5, 2011
Since we switched our server to Squeeze, I'm receiving emails from the cron about a mysql error (...can't use locks with log tables). But this is not the issue I want to talk about here. The issue is that since the executed command is: /usr/bin/mysqlcheck -uroot -pmypassword --all-databases --check-only-changed --silent which is a command that was automatically added to the cron by the mysql package (I believe), the password is sent in clear text in the email's subject. In my sense, this is a serious security issue (sending root password in email subject...)
I don't know at what level it should be corrected, but it seems to me like it should be corrected in the Debian distrib, shouldn't it ?
And for now, how can I hide the password in the emails I receive ?
View 1 Replies
View Related
Apr 6, 2010
My karmic ubuntu studio will no longer boot. I believe I may have intermittent hard drive issues. I've backed up all my important files so I'm not extremely worried; however, I would like to try to get my setup bootable once more. I've reinstalled grub, and on trying to boot, I get the grub kernel selection. Regardless of what I choose, the system won't boot. I believe grub is alright, but something else is not. What else could I try to make it boot again? I've mounted the drive, chrooted to it, updated and upgraded, but it still won't boot. I may be doing that wrong, or there may be something else I need to do.
View 3 Replies
View Related
Dec 26, 2010
I have a simple WD external USB hard drive, but when I plug it into my computer nothing happens. Not only is there nothing popping up, but I cannot access it through the file browser. The light on the hard drive turns on as usual.
View 3 Replies
View Related
Feb 18, 2011
I am attempting to put vista onto my laptop from a Full install of Ubuntu 10.10, but when I boot from my vista CD and attempt the instalation it says I have to have my drive formated to NTFS, I have tried to google how to get this done.ied to go to ystem>Administration>Disk Utility and then edit the type of the partition but there are like 20 options and none of which are just NTFS. what should I do?
View 9 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
Aug 3, 2011
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)
View 5 Replies
View Related
Mar 26, 2016
I build and use a custom kernel, and use the nvidia driver. This is on debian stretch.
By default, I build the image and headers packages with this line:
CONCURRENCY_LEVEL=8 nice -n19 ionice -c3 fakeroot make-kpkg --initrd --append-to-version=-something --revision=1 kernel_image kernel_headers
These kernel sources are usually the sources from debian, with a couple of more patches that I add. It appears that for nvidia-driver package versions higher than 352.79-1, the kernel headers/sources need to be prepared with 'make prepare' and 'make prepare scripts'. It's that simple. I concluded this after the nvidia dkms build failed on my custom kernel, but then succeeded after I pointed it to the full sources, but only after running 'make prepare' and 'make prepare scripts' on them. The problem is that this make-kpkg scheme doesn't appear to do this, or if it does, it doesn't properly include in the headers everything that it should.
View 0 Replies
View Related
Apr 6, 2010
I've got a bare bones Ubuntu 10.04 set up (xorg, openbox, usbmount). My (vfat32) stick drive mounts, and I can see what is in the one directory on the drive, but I can't write to the drive unless I use sudo. I tried the obvious step of attempting to change permissions on the drive..
Code:
keith@quiet:~$ sudo chmod -R 777 /media/usb0
[sudo] password for keith:
[code]...
View 9 Replies
View Related
Apr 5, 2011
I am trying to boot from an external hard drive, and have tried to use unetbootin like I used when crating a bootable usb drive but it does not see my external and will not create bootbale iso for me to run from my external hard drive.
View 2 Replies
View Related
Apr 30, 2011
Recently i bought an external HDD, and unfortunately my internal HDD is not working.
Instead of buying new internal HDD, can i make external HDD work as internal HDD.
View 6 Replies
View Related
Dec 3, 2010
We have a server at a friends house with a hard disk that's filling up so he picked up another hard drive.
My question is.. can I install it and then configure it so to the user it seems transparent and they just see the extra space all on one drive/directory? (From Windows)
It's running centos 5 with samba ... with EXT3.. and I don't believe it's using LVM.
View 4 Replies
View Related
Jan 31, 2011
In MS Windows, I used a program to re-image my hard drive. It was a great way to keep my OS configurations backed up in case of trouble. Linux is more stable, but I'm capable of doing more damage to it. So is there a good way to re-image this HD? I don't see the old MS program (Acronis) for Linux. Or, is there a way to save all of the synaptic programs I have downloaded so that I could more easily reload them if needed?
View 1 Replies
View Related