Debian Configuration :: Revert A Lvextend Command?
Feb 24, 2011
I added by error a fresh physical volume of a volume group to a logical volume:
lvextend /dev/lvm/logo /dev/md4
Is there a way to remove the physical volume /dev/md4 from /dev/lvm/logo again without harming the existing file system? I did not resize the file system yet.
I am looking for something like
lvreduce /dev/lvm/logo /dev/md4
but lvreduce only works with the -l or -L options as far I can see. So how can I ensure that only extends located on /dev/md4 are removed from /dev/lvm/logo?
This is the current situation:
Finding all volume groups
Finding volume group "lvm"
--- Volume group ---
VG Name lvm
[Code]....
View 2 Replies
ADVERTISEMENT
Aug 22, 2010
I made an error trying to add password protection to Grub2 1.98 in Ubuntu. Now when I try to run the synaptic package manager I get this error message.Quote:E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.E:_cache->open() failed, please report.When I go into the terminal and run "sudo dpkg --configure -a" as instructed I get this.Quote:
Setting up empathy (2.30.2-0ubuntu1) ...
Setting up libk5crypto3 (1.8.1+dfsg-2ubuntu0.2) ...
Processing triggers for python-central ...
[code]....
View 1 Replies
View Related
Jun 7, 2011
I wanted to be able to have a boot option to just use a command line with no X running at all. What I did was remove the gdm3 link in rc5.d . Then in /boot/grub/grug.cfg I made a new menuentry that is exactly the same as the default but I changed this line:
linux /boot/vmlinuz-2.6.32-5-686 root=UUID=3e926e70-cb92-4847-997c-37aabda532ff ro quiet to this line: linux /boot/vmlinuz-2.6.32-5-686 root=UUID=3e926e70-cb92-4847-997c-37aabda532ff ro 5
This worked. It gave me a command line interface with no X running.
My question is is this the recommended way in Debian? If not what is?
I have been using Linux for a very long time but I used mostly Slackware. I tried Redhat for awhile but really hated bluecruve, shows how long I have been using Linux. I have played with other distros but I always went back to Slack. But I really dislike KDE4 so Slack is no longer an option. KDE4 reminds me of a 12 year old girl that got a big box of makeup and had to use every bit of it. I now am using Debian on my laptop. And as aside I gave my 16 year old daughter a laptop for her birthday. She used the included version of windows 7 for awhile but then asked me what would be a good Linux distro for her. I showed her distrowatch and told her to look at the top distros. She then asked me to help her put on Debian. She loves it. She is a very good musician and song righter, She actually gets paid for doing that at 16, and really likes the programs in Linux to work with sound files. She also does MIDI stuff with our Yamaha Clavinova.
Now we are trying to do things the Debian way and it is a little different then other distros. So did I do the command line thing they way it's recommended in Debian. I have looked on line but all I could find was working in a shell and that is not what I was looking for.
View 2 Replies
View Related
Sep 5, 2015
I created a new user with command useradd (as root) :
Code: Select alluseradd razer123
And then set a password with command passwd (as root):
Code: Select allpasswd razer123
No Error!
When I logged out and tried to login with new user, I coulden't! (even after restart!)
I looked into /etc/passwd :
Code: Select allcat /etc/passwd | grep razer123
result:
Code: Select allrazer123:x:1002:1002::/home/razer123:/bin/bash
There is no home folder in the path!
# I have debian 8 and MATE desktop.
View 5 Replies
View Related
Oct 26, 2015
I have been following the Xen Beginners Guide here: [URL] .....
Everything was going smoothly until I got to the 'Configuring xen-tools and building our guest' section (two thirds down the page).
I installed xen-tools and then typed the following in a terminal window (as root):
xen-create-image --hostname=development-pv-guest --memory=2048mb --vcpus=2 --lvm=develop --dhcp --pygrub --dist=jessie
I admit PV is new to me, compared to simple HVM, so I have a number of questions:
1. Why the command not found error?
2. Should I be booting from the Xen option or regular boot option at the start up screen when creating the xen image? I've tried both and get the same error message.
3. I have Debian 8 (Jessie) installed on my system and I wasn't sure whether I should therefore make this the guest OS in my Xen PV. In asking this question I'm thinking in terms of HVMs - but I assume my Xen PV needs a guest OS of some kind? Or is my host Debian 8 already acting as a guest OS in Xen PV? I'm confused
4. If I do need to install a guest OS, is it better to go for an earlier version of debian - so as not to be so resource hungry?
I'm nervous about screwing up my host debian installation, so when I got the error message, did some research but found nothing meaningful. I don't want to end up having to reinstall my Debian 8 (base OS) ... again!
View 8 Replies
View Related
Jan 28, 2010
i rarely need my wireless, and i want it off by default, i am going to disable it during bootup with
echo 0 > /sys/devices/platform/acer-wmi/wireless
what would be the proper place for this? if i put it in rc.local it will be executed very late, i'd rather have it sooner. if add a new script to init.d, then run update-rc.d, i would have to adhere to the start|stop|reload structure of these scripts, right? or do i go a totally different way about this?
View 2 Replies
View Related
Mar 13, 2010
I use Huawei EC1260 modem for mobile broadband connection. What are the command line shell based ppp dialing applications available apart from wvdial? insight how to use pppd/chat directly.Actually wvdial is working on debian very well with this modem. But I need to use it on an arm le based system, where wvdial does not work properly because of setcontext(), getcontext() dependency on arm platforms.
View 2 Replies
View Related
Mar 22, 2010
Is there any elegant (and preferably uniform) way to determine IP address assigned to a DHCP/PPP interface inside a post-up command?
View 2 Replies
View Related
May 11, 2011
How to get rnmod command working under squeeze?
[Code]...
# rnmod i915 bash: rnmod: command not found
View 2 Replies
View Related
Nov 13, 2015
I've upgraded a server on our LAN from fully functioning Wheezy to Jessie. All seems fine except remote administering using Putty from my windows workstation when issuing reboot from command line, it goes down and reboots but stops at login prompt asking for username and password and does not come back on the LAN network. This server does not normally have a monitor or keyboard so my ability to remote admin this server in effect is disabled.
If I log on, it will come back on the LAN network. I've checked the logs but can't see any errors. Is it in the configuration of Jessie somewhere or perhaps a Grub issue. I have 5 other production Wheezy servers that I intend to update to Jessie once I understand how to deal with this problem.
View 4 Replies
View Related
Mar 17, 2010
I'm running a desktop-less version of Debian via Sun VirtualBox. The reason I'm doing this is because I don't have enough graphics or RAM power to have a desktop environment running on top of my current desktop; also, I want to learn Linux through the command prompt. I'm running the AMD64 version of Debian; I'm not sure if that's relevant.
My main goal is to be able to email useful files from the virtual Debian to my main computer, so that I can save them for later if I ever decide to do a "real" installation of Debian on this computer. I realize now that there's probably some "easy" way to do this by reading the virtual machine's hard drive, but at this point, my curiosity wants to see this issue resolved. I started off wanting to find a command-line program to send my email with, and one was built-in. The syntax ~$ sudo mail -s "Subject" email@yahoo.com "This is a test email."
C^D
Cc:C^D ~$
is what I found. I tried it, and (unsurprisingly), it failed. I then learned that the mail command calls exim4, or something along those lines, so I needed to configure exim4. Soon thereafter, I learned that Yahoo's SMTP wasn't public, but Google's was. So, I found this web page which described how to configure exim4 to allow for email to be sent to a Gmail account. I made one, and followed the page word-for-word.
I sudo-mailled a test email to my Gmail account, and nothing happened. I waited a bit longer, and still, nothing happened. Finally, I started looking around, and found out about the exim4 logs in /var/log/exim4. In my mainlog, I think that it's telling me that Google denied my connection: <date><time><random numbers and letters> == **********.gmail.com R=send_via_gmail t=gmail_smtp defer (111): Connection refused
So, now, I'm just stuck. I don't know what I did wrong, I checked my exim4.conf.template twice for spelling errors, but I don't think I made any. At this point, I can only hope that someone else has had a similar problem, or knows what I'm doing wrong (or haven't done yet).
View 14 Replies
View Related
Feb 12, 2011
since I am on a Dell inspiron 1545 laptop, being able to display my battery charge is critical. After some extensive googling, I found I need a command 'acpi', which does not exist on my computer. I cannot seem to find it in the packages database; the closest thing being 'acpi-support' apt-get install also can't find it.
I tried cat /proc/acpi/battery/BAT0/state, but that only shows me if the battery is discharging or charging and doesn't give me an actual percentage.
View 1 Replies
View Related
Mar 15, 2011
I am using NetworkManager Applet in Gnome to connect to the internet with a 3G modem. After last update few days back it changed the way it was recognizing the modem. I used to click on the NetworkManager Applet icon on the notification area and choose my configured mobile connection from the list. Because, as I said, I am using mobile broadband connection and I have to check via SMS my usage in order not to overcome the GB I am supposed to use (to avoid overpriced charge). In order to use Wammu to send/receive SMS I have to close the internet connection by right clicking on the NetworkManager Applet and uncheck "Enable Mobile Broadband" otherwise Wammu can't use the usb dongle because it's locked by the internet connection. Up to this point all is working exactly the same. Except when I uncheck the "Enable Mobile Broadband" the NetworkManager Applet disappears and I can only get it back with a reboot. Also I tried clicking on the applet and choosing "Disconnect" from the menu. The applet stays there but there are no more options for mobile connection. Only wired connections and VPN (whatever that is). In this case if I disconnect and reconnect the usb dongle it recognise it again. So my question is: Is there a way to make NetworkManager Applet to always stay aware of the usb modem without disconnecting or rebooting? Or at least is there a command that can search for new usb hardware without the described procedure?
View 6 Replies
View Related
May 2, 2011
last week while I was using ssh to the computer1 inside a NAT as usual, I made another tunnel from the computer1 that I was connecting to, to another computer2 inside that NAT (ssh 192.168.1.130) and after making some changes in computer2 I typed reboot. The computer2 rebooted but the tunnel totally hung and I had to kill it in my laptop. Since that day I haven't been able to ssh to the computer1 as I am used to.
Here is some more information:
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/une/.ssh/id_rsa
[code]....
View 3 Replies
View Related
May 1, 2011
I want to know any command which is equal to disconnecting and reconnecting lan cable. actually sometimes my router takes some time to connect to internet and when this happens my desktop shows network disconnected. but when router is connected system does no detect it and i have to manually disconnect and reconnect the cable which is not convenient.
I have debian 6.0.1 (squeeze) with gnome 2.30.2
And i have already tried following commands:
View 10 Replies
View Related
May 18, 2010
I used the Debian Lenny (main, not testing) update manager yesterday to install some new updates. Took a few minutes and no problems but today I started up and for some reason my system wouldn`t load.The hard drive installer automatically sets hd1,0 as my Debian system when it`s 0,0. I had changed this but upon updating yesterday the system again has grub using the previous setting.
Is there any logical reason why a system update (not upgrade, just small update via update manager using only main files not testing or volatile nor backports) could or would change my grub settings back to the wrong ones? I haven`t installed anything else, the only change has been the standard system update so it can only be that which caused it, but why?
View 7 Replies
View Related
Mar 5, 2011
I follow the guide at the ink [url] to build xen on Debian squeeze.
At the step
I get the following error message.
View 1 Replies
View Related
Nov 18, 2010
I am having no luck configuring ProFTPd on a Debian Lenny production server we use to host our MySQL databases and a few websites. I had originally set it up so I could login and manage our internal sites, but I have the need to allow a few clients in to access their sites that we host. I am trying to root the users in their site directory, which would be "/sites/www.whatever.com/".
It just hit me while typing this. Is it possible to create a user without a shell to prevent login via SSH and set the home folder to /sites/whatever instead of /home/username? That would allow me to continue operating with my current configuration and root them in their site while preventing SSH logins.
View 6 Replies
View Related
Jul 20, 2011
i have a HP MSA 2312fc SAN with 2 LUNs configured. The first LUN (LUN ID 1) is correctly connected to the system, but when i connect the second LUN (LUN ID 30), i find in the syslog this message: multipathd: 8:64: size 6835937472, expected 5267578112. Discard
Here is the multipath.conf
[Code]....
So I correctly see the two luns, but multipath doesn't create the relative devices. Under /dev/mapper I see: control mpath0 mpath0-part1 mpath0-part1 is the first lun, the one I mounted in a directory under filesystem. I can't find the device for the second lun
View 1 Replies
View Related
Apr 5, 2010
I am *finally* getting around to rebuilding my file-sharing computer. I'll be sharing files with both Linux and Windoze machines. It's a home network, so there's nothing fancy needed. I know I have to tweak my smb.conf file until I'm satisfied with the features and security. I'm using SWAT and I'm starting with a bare-bones conf file. It's not secure but I can see the server and selected files/directories from my other Linux box.
My really dumb question is, do I have to reboot both the server and the client machines every time I change the SAMBA configuration? I thought I just had to stop and restart the SAMBA service in the SWAT software - but then the server disappears from my client. It looks like I need to reboot both machines for the client to see the server.
View 1 Replies
View Related
Aug 23, 2011
I have some errors when run the mount -all command: mount: wrong fs type, bad option, bad superblock on /dev/sdc5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so Failed to open /proc/filesystems: No such file or directory
[Code]..
View 14 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 19, 2011
A week ago I opened this thread viewtopic.php?f=17&t=61580 in "Board index ‹ Help ‹ Installation" and asked for a moderator to move this to here. Because it hasnt happened up to know, I am reopening the thread here. It would be reeeeally great if somebody could help me with my problem!
I own two computers, one netbook and one laptop. I want to boot my netbook as a diskless client via PXE.I set up a dhcp-, tftp and nfs-server on my laptop but when i boot my netbook, the follwoing messages are displayed:(to make it more clear, i uploaded the whole output and shortened the output below)
[Code]...
View 1 Replies
View Related
Jul 31, 2011
I am using Squessze and Gnome. When I try to use the gui System>Administration>Network or Users and Groups I get the error The configuration could not be loaded. You are not allowed to access the system configuration.Everything was working before. I read around a bit. In some cases,it was caused by mismatching group and password files after using the gui. I do not know how to check if they are matching. Of course I do not know for sure that is the problem in my case.
View 14 Replies
View Related
Mar 5, 2010
I use apache2 with virtual host and I 've a solution of Webftp who run on it. This solution send automatically email when a new client register himself. In the header of the mail I look this "Content-type: text/html". But when I look this mail with Outlook 2007 the accents are bad coding.It's a script who generate this Html content email.
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 6, 2010
I have a set of vm's with stable, testing, and sid to keep track of how things are going. When I did an apt-get dist-upgrade with squeeze last week, things seemed to OK (350 package updates) until the end. It didn't seem to like and / or was confused by a kernel dependency.
I am not too concerned yet. Because these are in vm's, I do a snapshot before any significant change. I can futz around with impunity because I have that backup.
I re-booted, and tried the apt-get dist-upgrade again with same results. I think I also tried apt-get -f install.
So I reverted to the snapshot, and will simply try again in the future. I recall that with lenny as testing, the font-desktop was really screwed up for about a period of 6 weeks.
However, just in case someone else runs into this:
1) a re-boot worked, but the failure of apt-get made me nervous enough to revert.
2) waiting for corrections has seemed to work in the past (with a single exception with a 4-disk SCSI software RAID10 update that failed to re-boot lenny successfully after what seemed to be a minor update -- that was on a real system, not a vm. I haven't gotten back to look at that.)
View 14 Replies
View Related
Oct 3, 2010
I was trying to get the Windows one working again. Here's what fdisk -l reads:
[Code]...
I'll change these or do some grub configurations, if anyone knows what ones can work.
View 1 Replies
View Related
Nov 14, 2010
I have problems with the system harddrive. I would like to install my Debian on to a new HDD with the same configuration and packages. How do I get the configuration to the new Debian. What files/directory do I need to copy? How do install the same packages?
View 4 Replies
View Related
Jan 24, 2011
To configure SMS gateway using Kannel configuration for Huwei GSM Modem
dmesg gives attached modem in my system:
View 2 Replies
View Related