[gentoo-user] I have a problem I would like some help with...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello, I have a problem going on with my 'sendmail' client. This happens to be sSMTP - - actually I don't know if the problem is with sSMTP or with some logger or daemon trying to use it. It seems to be with sSMTP, though. I will explain the problem before I go any further. I just noticed in the logs that periodically, something tries to send something through '(myhost).adelphia.net'. This is a problem, since there is no such domain. Now to the reason I think it is sSMTP (a misconfiguration, or something): When I try to send mail to a local user using 'sendmail', it tries to go through the host mentioned above. I am running syslog-ng, with logrotate. A few other things, that create logs, as well. What makes this worse is that I ran a recursive grep for 'adelphia.net' to see if there was a configuration file I missed - all I got were email addresses tied to the kernel Documentation, and the email.log and email.err files. If you need more information, I'll be happy to provide it. I just want to fix my system mail so that it doesn't try to send everything through adelphia.net. Regards, Chris -BEGIN PGP SIGNATURE- iQIcBAEBCgAGBQJH+HvBAAoJEIAhA8M9p9DACyYQAJ54yGR86UvjDfWx1YcJxW3Z DI+xw9czBGqhjkBvlollbYjujYHMjw+zrXjT1n5TJ7wjDYMVsoRcVH8cc1SloyTa Otn1j1sCnVmytrhG8of6Z0deTDJrPYG+xe+mL1/90AKvqO6WGQtEERiKRjYrPznD iN2KCmOG/oYw0zv6P27+bB1OMcvEINkIMOa381ofiqLtwfejk+hYs0pRlKB/z/nU f7R1qz/C3CB2hYYaQYmj1DOeVJAvrz1zrwnQD0fwP4hRctrtZYCDiMcKOygUUtVz KlUy18hPgi746IvQ/1HWjr5H0uBtaAU72wwNIiErXLiBDkXXT62r/3OI+zo0C8Xa h3eUKcke4jCU8Tb5QJRI/OxVG3aUEnyiXy5Ii3AXA8DYC6Ld4vXyWS+LKZw2BXp0 g8pBPfMf4NFk+wku50BHD/MLWqvqyg8vTc3NLO8ac9hGELBZ6rNbyBqFFhhUAU6v Kmta/+FnFgYNUw3XP86lbHeqsVZZdCmo7eFPIy9nUvcD9W2tdg3QFsoVhHIxS9Uc kaJMVKvuzgVHsqcftB6/m+YO3TlK0v+iS6bGMsgSnCoWjVNn3UgyA/M3TuYp8S8J IsT8lM7jcsOVihe5Xlrjl5om3hq+vkv7y1N+oA6sGeaT03hn0Hgr6XP39U6GVwQk eN8zQTjZqJ/S4XhQyktB =V/7b -END PGP SIGNATURE- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Ot - Problem with CUPS server
On Sat, 2008-04-05 at 01:03 -0500, Tim wrote: Michael Sullivan wrote: On Thu, 2008-04-03 at 10:22 -0400, David wrote: Most recent messages in /var/log/cups/error_log: I [03/Apr/2008:08:19:57 -0500] Listening to :::631 on fd 2... I [03/Apr/2008:08:19:57 -0500] Listening to 0.0.0.0:631 on fd 3... I [03/Apr/2008:08:19:57 -0500] Listening to /var/run/cups/cups.sock on fd 4... I [03/Apr/2008:08:22:20 -0500] Adding start banner page none to job 31. I [03/Apr/2008:08:22:20 -0500] Adding end banner page none to job 31. I [03/Apr/2008:08:22:20 -0500] Job 31 queued on Charlie by michael. There don't seem to be any actual errors in the error_log. Strange. Is there anything here that can hint as to why nothing is happening? # Log general information in error_log - change info to debug for # troubleshooting... LogLevel info I changed LogLevel to debug, erased /var/log/error_log (just to make sure the information I was looking at was current), and restarted cupsd. I sent a job from 192.168.1.3 (I was wrong - catherine is 192.168.1.4) and checked /var/log/cups/error_log: catherine cups # cat error_log I [03/Apr/2008:09:58:03 -0500] Saving job cache file /var/cache/cups/job.cache... I [03/Apr/2008:09:58:04 -0500] Listening to :::631 (IPv6) I [03/Apr/2008:09:58:04 -0500] Listening to 0.0.0.0:631 (IPv4) I [03/Apr/2008:09:58:04 -0500] Listening to /var/run/cups/cups.sock (Domain) I [03/Apr/2008:09:58:04 -0500] Loaded configuration file /etc/cups/cupsd.conf I [03/Apr/2008:09:58:04 -0500] Using default TempDir of /var/spool/cups/tmp... I [03/Apr/2008:09:58:04 -0500] Cleaning out old temporary files in /var/spool/cups/tmp... I [03/Apr/2008:09:58:04 -0500] Configured for up to 100 clients. I [03/Apr/2008:09:58:04 -0500] Allowing up to 100 client connections per host. I [03/Apr/2008:09:58:04 -0500] Using policy default as the default! I [03/Apr/2008:09:58:04 -0500] Full reload is required. I [03/Apr/2008:09:58:04 -0500] Loaded MIME database from '/etc/cups': 35 types, 39 filters... D [03/Apr/2008:09:58:04 -0500] Loading printer Charlie... I [03/Apr/2008:09:58:04 -0500] Loading job cache file /var/cache/cups/job.cache... D [03/Apr/2008:09:58:04 -0500] Loading job 1 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 2 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 3 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 4 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 5 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 6 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 7 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 8 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 9 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 10 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 11 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 12 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 13 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 14 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 15 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 16 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 17 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 18 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 19 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 20 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 21 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 22 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 23 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 24 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 25 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 26 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 27 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 28 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 29 from cache... D [03/Apr/2008:09:58:04 -0500] Loading job 30 from cache... D [03/Apr/2008:09:58:04 -0500] Loading attributes for job 30... D [03/Apr/2008:09:58:04 -0500] Loading job 31 from cache... D [03/Apr/2008:09:58:04 -0500] Loading attributes for job 31... D [03/Apr/2008:09:58:04 -0500] Loading job 32 from cache... D [03/Apr/2008:09:58:04 -0500] Loading attributes for job 32... I [03/Apr/2008:09:58:04 -0500] Full reload complete. I [03/Apr/2008:09:58:04 -0500] Listening to :::631 on fd 2... I [03/Apr/2008:09:58:04 -0500] Listening to 0.0.0.0:631 on fd 3... I [03/Apr/2008:09:58:04 -0500] Listening to /var/run/cups/cups.sock on fd 4... D [03/Apr/2008:09:58:07 -0500] cupsdAcceptClient: 8 from 192.168.1.3:631 (IPv4) D [03/Apr/2008:09:58:07 -0500] cupsdReadClient: 8 POST / HTTP/1.1 D [03/Apr/2008:09:58:07 -0500] cupsdAuthorize: No authentication data provided. D [03/Apr/2008:09:58:07 -0500] CUPS-Get-Printers D [03/Apr/2008:09:58:07
Re: [gentoo-user] I have a problem I would like some help with...
On Sun, 06 Apr 2008 03:29:08 -0400, Chris Walters wrote: I just noticed in the logs that periodically, something tries to send something through '(myhost).adelphia.net'. This is a problem, since there is no such domain. Now to the reason I think it is sSMTP (a misconfiguration, or something): It could be, but only you know how ssmtp is configured. What is in /etc/ssmtp/ssmtp.conf Incidentally, why not mention ssmtp in the Subject: it would be a lot more helpful that what you used and may even increase your chances of a solution. -- Neil Bothwick The road to HAL is paved with good intentions. signature.asc Description: PGP signature
[gentoo-user] Networking problems on new install?
I recently bought a laptop that has an onboard Realtek RTL8101E NIC. I installed a system to dual boot with Windows Vista (which was preinstalled, which I'd really like to be able to get away from eventually) using the amd64 2007.0 liveDVD to do a networkless install. The LiveDVD would load the r8169 module, but networking still would not work (dhcpcd eth0 times out). I used the LiveDVD to emerge the 2.6.19-r5 kernel. I installed the r8101 module from the RealTek site, and while this finally would allow me to see eth0 under my own environment (I could see it booting from the LiveDVD as well), networking still would not work (dhcpcd eth0 times out). Looking around the gentoo forums I've seen suggestions to use either the r8169 or r8101 modules (depending on which post I read) using a kernel 2.6.19 and 2.6.22, that finally the module may work. I don't have a spare gentoo box on which I can grab this using emerge. Any suggestions on how I can do this? My windows system has network access, and I can mount my windows partition. Is there a better way to get this NIC working? Actually my ultimate goal is to get my Marvell TOPDOG wireless NIC working, but it appears to me that I will need to get ndiswrapper and perhaps wine for this to happen, neither of which are on the LiveDVD. I'm hoping to get a network connection so I can get enough packages to update the system enough to get this working and solve other hardware issues resulting from me having a new laptop designed to work with Vista. -- Les Henderson [EMAIL PROTECTED] -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Networking problems on new install?
On Sonntag, 6. April 2008, Les Henderson wrote: I recently bought a laptop that has an onboard Realtek RTL8101E NIC. I installed a system to dual boot with Windows Vista (which was preinstalled, which I'd really like to be able to get away from eventually) using the amd64 2007.0 liveDVD to do a networkless install. The LiveDVD would load the r8169 module, but networking still would not work (dhcpcd eth0 times out). I used the LiveDVD to emerge the 2.6.19-r5 kernel. I installed the r8101 module from the RealTek site, and while this finally would allow me to see eth0 under my own environment (I could see it booting from the LiveDVD as well), networking still would not work (dhcpcd eth0 times out). Looking around the gentoo forums I've seen suggestions to use either the r8169 or r8101 modules (depending on which post I read) using a kernel 2.6.19 and 2.6.22, that finally the module may work. I don't have a spare gentoo box on which I can grab this using emerge. Any suggestions on how I can do this? My windows system has network access, and I can mount my windows partition. Is there a better way to get this NIC working? install a recent kernel like 2.6.23 or 2.6.24 (just download the sources, unpack them in /usr/src, create the linux symlink). And use the in kernel r8169 drivers. Don't use 'vendor' drivers if you don't have to! Actually my ultimate goal is to get my Marvell TOPDOG wireless NIC working, but it appears to me that I will need to get ndiswrapper and perhaps wine for this to happen, neither of which are on the LiveDVD. I'm hoping to get a network connection so I can get enough packages to update the system enough to get this working and solve other hardware issues resulting from me having a new laptop designed to work with Vista. you might want to use the 2008-beta livecd for this - this way you don't have with a lot of very messy stuff (like expat). And wine is.. evil. Every release breaks something. If your stuff works at all. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] I have a problem - sSMTP problem?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Neil Bothwick wrote: | On Sun, 06 Apr 2008 03:29:08 -0400, Chris Walters wrote: | | I just noticed in the logs | that periodically, something tries to send something through | '(myhost).adelphia.net'. This is a problem, since there is no such | domain. Now to the reason I think it is sSMTP (a misconfiguration, or | something): | | It could be, but only you know how ssmtp is configured. What is | in /etc/ssmtp/ssmtp.conf | | Incidentally, why not mention ssmtp in the Subject: it would be a lot | more helpful that what you used and may even increase your chances of a | solution. Here are the contents of my ssmtp.conf file: # # /etc/ssmtp.conf -- a config file for sSMTP sendmail. # # The person who gets all mail for userids 1000 # Make this empty to disable rewriting. root=postmaster # The place where the mail goes. The actual machine name is required # no MX records are consulted. Commonly mailhosts are named mail.domain.com # The example will fit if you are in domain.com and your mailhub is so named. mailhub=mail # Example for SMTP port number 2525 # mailhub=mail.your.domain:2525 # Example for SMTP port number 25 (Standard/RFC) # mailhub=mail.your.domain # Example for SSL encrypted connection # mailhub=mail.your.domain:465 # Where will the mail seem to come from? rewriteDomain= # The full hostname # Gentoo bug #47562 # Commenting the following line will force ssmtp to figure # out the hostname itself. # hostname=_HOSTNAME_ # Set this to never rewrite the From: line (unless not given) and to # use that address in the from line of the envelope. #FromLineOverride=YES # Use SSL/TLS to send secure messages to server. #UseTLS=YES # Use SSL/TLS certificate to authenticate against smtp host. #UseTLSCert=YES # Use this RSA certificate. #TLSCert=/etc/ssl/certs/ssmtp.pem ** End ssmtp.conf ** And here is the the revaliases file: # sSMTP aliases # # Format: local_account:outgoing_address:mailhub # # Example: root:[EMAIL PROTECTED]:mailhub.your.domain[:port] # where [:port] is an optional port number that defaults to 25. ** End revaliases ** -BEGIN PGP SIGNATURE- iQIcBAEBCgAGBQJH+Qp8AAoJEIAhA8M9p9DAUowP/1oIYlJJVyOigRcLNcY3+M++ EQX65eKh3AewCKaDoHpK4qdNP60TMlK7whle2vMzoAa6Fxtcx5m6f9S9mqu+o/GZ 72zLEskXVCc4Z+5awWOZ+oownAQd53T12gRhLf//NqwOp6yoyfW7zKkMIeZK+kF0 g9q2dXZZTcyXFmesYcvZp8Tfg8zrpgs5QlLtmysNkq0Ia6BkJdtv96joa9eaiR1B YIm4mBU3vm56gAhna1gljhwPbDHKhvM2KTLxZhL4vczk4oYYXLJ2o/tE2427PXKH zWxJrv2GH+a8rjHAbpj2SjMKXjMGLwu07Qhwo22KuxzSlGs9lh5n+K3E1uNVXb77 CMNHfvJo22tU8hBe06COJrFQntZvSAD26s2pOPHXKdPIOjZUK1cectW7XaLyI3Pj TwtZEIO2VqDTqIaG/uCVO/uM2Fa9FQ4Fnx9rzGx8EeAxEAVhYYX2h3C2iaaVJfl4 6s9dJUn5OOecwnuj4CptAdNxwEmyHB0SNQFp+LafEj2XzACbadF9IxpsUjGZKi87 q2AXHpvx1uJPEYOgRONvkGY7Icjj/G/uxBlZPt70/TaPDvZm7S6Gr5Sp3g2vMS93 Go7DtFvxC7Uiht9EYtJdTvkq/o/eC2026MgTtDs0TBNpLOg49f9L8UPbsDmBUkx3 PyQHVEybu9vcoc0UNSv4 =Bitk -END PGP SIGNATURE- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] I have a problem - sSMTP problem?
On Sun, 06 Apr 2008 13:38:07 -0400, Chris Walters wrote: mailhub=mail This looks like the default, you need to set to the the machine that handles your mail, either a local mail server or your ISP's. -- Neil Bothwick Power outage at a department store yesterday, Twenty people were trapped on the escalators. signature.asc Description: PGP signature
Re: [gentoo-user] Mouse jerky when burning CD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Grant wrote: The mouse cursor is very jerky and somewhat unresponsive when I'm burning a CD on my laptop. Can I make a software change to fix that? top shows over 50% of the CPU is idle. - Grant Maybe you need to enable CONFIG_PREEMPT in your kernel. Za -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkf5EEMACgkQ/ejvha5XGaPa1QCdEFz6n1dyz9s1CPoComdo8OjO XB4An2hPYeyldwYyylvcz+jWB72Qs5eO =rHRQ -END PGP SIGNATURE- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] I have a problem - sSMTP problem?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Neil Bothwick wrote: | On Sun, 06 Apr 2008 13:38:07 -0400, Chris Walters wrote: | | mailhub=mail | | This looks like the default, you need to set to the the machine that | handles your mail, either a local mail server or your ISP's. Could you give me an example of how to set it to my local machine - I don't want to use my ISP? Would this involve emerging a new package? Also, I don't understand why this would default to adelphia.net. Regards, Chris -BEGIN PGP SIGNATURE- iQIcBAEBCgAGBQJH+Rq4AAoJEIAhA8M9p9DAKCEP/3YvimPxnKpwHerjX2z9m5+y oCrFJ1dXRPTOhHHzsZ+Acq7z/3fZra7GvfkWf9ralAuzZZtv/fB0U4B7SCLvv4Cb C3xZl6stHOlqE/OKkoSrpCOMImXIsI46D8DiAoLl5w6JUQOXAuN7Ox+nABqsz6NA UvQZO41ubXNPVGU3+6iL91eqUCpGsUYiLStFgjIkfndKSBtazECh/i+ieLofj/Cd Ys/g7EAFpOk/UrPCIhxkBluZMVCohRAvAr8d+pkVvwhnyJNLSuhgxdjaNpzV5n7n MAYHDEqH8XQm37o9k7isCcGmfcVv4fSbgCcdBgv4Yy+GGepBf69odRp8Nsz6vhot z2XfO09Lj3aUK0URJhFuPbhpDnlUo3PzpBMg0DEhlZnt/o+s4iHpKLQ/gqF76a7T 99FIawOJS7QpKX4bXejHD+vs5ybbu0gAL4bU3m/SBAiRjSMQWnnio6sgtaSrdxLl 8eA9QUE0dCbfFKSz0fqOubQCqMOs/ntli4bFehwkgdVTonuRL5qDlaX7uyhemyo2 dffZRwDm/00r5Mt93Dv06DcwQmmnKOhxpSfkubd1OzSnUPm26ro6m8J2lQDxN6cd Az8kZcnDZn81sy/ds436WDUMYzZYZJNPBfPijNOYgwSP6SQyfdv+y1EKb3UtTfOk OutnlR2rNaFXvHx+x0Em =ZGMc -END PGP SIGNATURE- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] I have a problem - sSMTP problem?
On Sun, 06 Apr 2008 14:47:22 -0400, Chris Walters wrote: | This looks like the default, you need to set to the the machine that | handles your mail, either a local mail server or your ISP's. Could you give me an example of how to set it to my local machine - I don't want to use my ISP? Would this involve emerging a new package? Also, I don't understand why this would default to adelphia.net. You can't set it to your local machine, because the reason for using ssmtp is that your machine doesn't have an MTA. If you want to send mail from the machine without going through a gateway, you need to install a proper MTA like Postfix. The ssmtp man page should help you understand what it does and doesn't do. -- Neil Bothwick Bang on the LEFT side of your computer to restart Windows signature.asc Description: PGP signature
Re: [gentoo-user] I have a problem - sSMTP problem?
I just noticed in the logs | that periodically, something tries to send something through | '(myhost).adelphia.net'. This is a problem, since there is no such | domain. Now to the reason I think it is sSMTP (a misconfiguration, or | something): | Going to need a [snip] of this log. Which log are you talking about? -- Powered by Gentoo GNU/LINUX http://www.linuxcrazy.com -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] mounting disk image
Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| Thanks a lot for help. Pat -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Sunday 06 April 2008, pat wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| losetup -o offset_value /dev/loopsomething see man losetup -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Sun, Apr 6, 2008 at 5:03 PM, pat [EMAIL PROTECTED] wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| Thanks a lot for help. Pat -- gentoo-user@lists.gentoo.org mailing list I don't have time to test, but try something like this: (from: http://lwn.net/Articles/110426/) losetup /dev/loop0 file.iso blockdev --rereadpt /dev/loop0 mount /dev/loop0p2 /mnt/temp (for p2 replace with other partition, check ls /sys/block/loop0/dev) -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Sun, 6 Apr 2008 17:19:33 -0400, Andrey Falko wrote On Sun, Apr 6, 2008 at 5:03 PM, pat [EMAIL PROTECTED] wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| Thanks a lot for help. Pat -- gentoo-user@lists.gentoo.org mailing list I don't have time to test, but try something like this: (from: http://lwn.net/Articles/110426/) losetup /dev/loop0 file.iso blockdev --rereadpt /dev/loop0 mount /dev/loop0p2 /mnt/temp (for p2 replace with other partition, check ls /sys/block/loop0/dev) -- gentoo-user@lists.gentoo.org mailing list Thanks, but it ends with: BLKRRPART: Invalid argument The problem can be that I did dd at disk with broken partition table. So over the disk image I've run testdisk utility and it found the partitions - labels and the correct sizes (as far as I remember). There are two partitions NTFS and FAT32 and using the testdisk utility, it enables me to browse the FAT partition, so I thing the testdisk succeeded. Any idea at that? Thanks a lot. Pat -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote On Sunday 06 April 2008, pat wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| losetup -o offset_value /dev/loopsomething see man losetup -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list Thanks. How to count the offset? And where can I get the partitions offsets? Pat -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Mon, 7 Apr 2008 00:07:58 +0200, Alan McKinnon wrote On Sunday 06 April 2008, pat wrote: On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote On Sunday 06 April 2008, pat wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| losetup -o offset_value /dev/loopsomething see man losetup Thanks. How to count the offset? And where can I get the partitions offsets? Is the original disk still intact? Then fdisk would tell you the offset -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list Well, yes and no :-( The partition table of the original table has crashed, so I've created the ISO image of the disk and now playing with it ... but, the original drive is still untouched. So, I should play with hard drive directly instead using the dd copy? To partition table recovery in the ISO image I've used the testdisk utility. Any suggestions? Thanks a lot. Pat -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Sun, Apr 6, 2008 at 6:07 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Sunday 06 April 2008, pat wrote: On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote On Sunday 06 April 2008, pat wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| losetup -o offset_value /dev/loopsomething see man losetup Thanks. How to count the offset? And where can I get the partitions offsets? Is the original disk still intact? Then fdisk would tell you the offset I'm pretty sure you can fdisk -l test.isomaybe not, but worth a try if you don't have the original disk :). -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Sun, 6 Apr 2008 18:18:57 -0400, Andrey Falko wrote On Sun, Apr 6, 2008 at 6:07 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Sunday 06 April 2008, pat wrote: On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote On Sunday 06 April 2008, pat wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| losetup -o offset_value /dev/loopsomething see man losetup Thanks. How to count the offset? And where can I get the partitions offsets? Is the original disk still intact? Then fdisk would tell you the offset I'm pretty sure you can fdisk -l test.isomaybe not, but worth a try if you don't have the original disk :). -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list -- gentoo-user@lists.gentoo.org mailing list Well, I'm not the low level guru :-) This is the first time I playing with data/partitions recovery :-\ The fdisk gives me: Partition 1 has different physical/logical endings: phys=(1023, 254, 63) logical=(19456, 254, 63) /mnt/tmp/recovery.dd.2.iso5 16612 1945722860463+ c W95 FAT32 (LBA) Which number should I use? Pat -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Monday 07 April 2008, pat wrote: Well, yes and no :-( The partition table of the original table has crashed, so I've created the ISO image of the disk and now playing with it ... but, the original drive is still untouched. So, I should play with hard drive directly instead using the dd copy? To partition table recovery in the ISO image I've used the testdisk utility. Any suggestions? To be safe I would mount the .iso devices read-only till you are sure you have found the correct offsets. Only use the original disk if you really have no other option -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Sunday 06 April 2008, pat wrote: On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote On Sunday 06 April 2008, pat wrote: Hello, I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| losetup -o offset_value /dev/loopsomething see man losetup Thanks. How to count the offset? And where can I get the partitions offsets? Is the original disk still intact? Then fdisk would tell you the offset -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On Mon, 7 Apr 2008 00:24:55 +0200, Alan McKinnon wrote On Monday 07 April 2008, pat wrote: Well, yes and no :-( The partition table of the original table has crashed, so I've created the ISO image of the disk and now playing with it ... but, the original drive is still untouched. So, I should play with hard drive directly instead using the dd copy? To partition table recovery in the ISO image I've used the testdisk utility. Any suggestions? To be safe I would mount the .iso devices read-only till you are sure you have found the correct offsets. Only use the original disk if you really have no other option -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list OK. Thanks. Pat -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: Emergency shutdown, how to?
On Sat, 2008-04-05 at 12:42 -0400, Steven Lembark wrote: I tried ALT + SysRq + EISUB today on my MythTV backend server which has been crashing lately. Unfortunately it's crashing so badly that even at the server's keyboard this didn't work. I guess my weekend fate of building a new server is sealed... Have fun. Check out motherboards with watchdog capability and enable it in the kernel. watchdogs are nice, and linux makes them ultra-easy to program, but of course if your watchdog task dies, then the machine effectively hits the reset button for you - no nice shutdown whatsoever! (Which is what you want in a hard lock-up, but not if your programming skills are the cause of the problem :) cya, -- Iain Buchanan iaindb at netspace dot net dot au Evil is that which one believes of others. It is a sin to believe evil of others, but it is seldom a mistake. -- H.L. Mencken -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] mounting disk image
On 6 Apr 2008, at 22:03, pat wrote: ... I have a question about mounting disk image as the disk. I have disk image which was created using: dd if=/dev/sda of=./file.iso and the sda contained two partitions sda1 and sda2. I know, that if I have only image of the sda1 I can mount it using loop device like #losetup /dev/loop0 file.iso #mount -t ... /dev/loop0 /mnt/tmp But, how to do it if the file structure is: sda - sda1, sda2? I need to get data from sda1 and sda2 :-| Hi there, I have a similar disk image I need to access in the same way. I asked about this on the list a while ago received some helpful replies. Unfortunately I got busy with work right after posting, and haven't had a chance to try them, yet, but maybe you'll find them useful: http://thread.gmane.org/gmane.linux.gentoo.user/193263 Stroller. -- gentoo-user@lists.gentoo.org mailing list