Replacing Boot And Only Disk Drive

I have a laptop (an old Asus EEEPC), and I need to replace its only disk drive with a larger one. The hardware aspects are easy — keep static electricity away and use a screwdriver. I have the new drive on my desk already.

And it’s not hard to copy the file systems, either. I can temporarily access the new drive using a USB adaptor. fdisk and the lvm utilities will create the new partitions and then I copy, using dd or rsync or tar/
untar or even cp –archive. Perhaps a recursive checksum script afterward just in case.

It’s currently a dual boot between Debian Jessie and Windows XP. I can copy the Windows partition using ntfs-3g. Or maybe dd if that fails.
Windows XP comes with the usual C: drive (/dev/sda1), a hidden Windows partition (/dev/sda3), and en EFI paritition (/dev/sda4). All of Linux hides out in the so-called extended partition (/dev/sda2). I have no idea what Windows does with the space at the start of the drive before he first partition. Presumably grub messes with this space, too.

But I’m concerned about installing the bootloader. I presumably have to do this before I actually swap drives, or the machine won’t boot.

Currently I’m using grub-legacy to boot. Presumably I’ll want the configuration file in the new system to be pretty well the same as the old, but there may have to be changes. And when I’m installing the boot loader it’s got to set everything up to refer to the new disk drive even though when that gets used it will be in a different electronic location on the machine. (it’ll be /dev/sda instead of /dev/sdb)

What are the gotchas that are easy to get wrong in an operation like this?

– hendrik

, ,


Moving From 3.16-3-486 To 686

Months ago, installing jessie as guest on win7-64, I somehow ended up with a 486 kernel.

In other previous installs it was a 686 kernel… not sure what I
did. But no doubt I selected it without realizing or the like.

My question is whether continuing to use the 486 versions of kernels has any down sides?

I haven’t run into anything I noticed to be a problem related to kernel version… but not sure I would be able to tell anyway.

My usage is as single user on home lan, light programming, email, browse net, maybe small lan mail server.

So with that kind of light usage in mind… is there likely to be anything that 686 offers that I’m likely to need?


Systemd-free Alternatives Are Not Off Topic.

I am a Debian Jessie user whose system has started acting up in mild ways that may be related to systemd. I have found that replacing tools that use systemd with others that don’t has soled some of these problems.

I don’t know whether in the future these issues will get better or worse. I’m hoping for better, but I’d like to be prepared for worse.

At the moment I have removed systemd from my jessie system. It is, despite the absence of systemd, a Debian Jessie system.

In fact, refracta, one of the so-called forks that avoids systemd, actuallu uses Debian’s own Jessie package repositories. It isn’t a fork, but more a different way of using Jessie from that installed by default by the current Jessie installer.

It is still Jessie, and as far as I can tell, a Jessie syste taht uses systemv init is still a Jessie system. As a Debian Jessie *user* I find the community support I’m getting in threads like this quite valuable.
For now, I know how to continue using Jessie. And I know what escape hatches I have if the situation gets much worse.

When I stay at a hotel, I often check whether the fire escape works, even though if I were really expecting a fire I’d stay at a different hotel.

Maybe in the future I’ll be using systemd again. Maybe not. Maybe I’ll continue using systemv init, because it does seem to be policy for that to continue to be viable, whether default or not, and whether there are packages taht cannot run without it.

But it is absurd to say that discussing these real problems faced by Debian users, and their potential remedies, is off topic in the debian-
user mailing list.

There are lots of topics on this list that aren’t relevant to me. But if they are relevant to other users I’ not going to declare them off topic.

– hendrik

, ,


How To Mount An IPod Touch

My daughter has recently purchased an iPod Touch and would like to be able to maintain it from our linux box running Wheezy. My wife has an iPad Mini and it would be nice to be able to maintain that from the linux box, as well. I have googled. I have upgraded to the latest kernel from Backports (3.16). I have installed libimobiledevice-utils.
I have done everything I can think of.

When I plug the device in I get the following in dmesg:

[ 127.569680] usb 4-4.4: new high-speed USB device number 6 using ehci-pci
[ 127.665562] usb 4-4.4: New USB device found, idVendorac, idProductaa
[ 127.666054] usb 4-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 127.666538] usb 4-4.4: Product: iPod
[ 127.667021] usb 4-4.4: Manufacturer: Apple Inc.
[ 127.667517] usb 4-4.4: SerialNumber:

You will note that there is no mention of a mountable device node. I
have added a file, ’50-custom.rules’ in /etc/udev/rules.d that contains the line:

BUS==”scsi”, ATTRS{idVendor}==”05ac”, ATTRS{idProduct}==”12aa”, ATTRS{serial}==”ea1f2a0800d76f91f9bc0d50d6620151d249e6a9″, NAME{all_partitions}=”ipod”, GROUP=”plugdev”

I then tried connecting the device again. Still nothing. I rebooted with the device attached. Nothing.

What am I doing wrong? I have installed gtkpod and hope that it will do what I need it to do. But first, I need to be able to mount the device.

Any help will be appreciated.



Virtmanager Not Connecting To Server

I’m running Jessie/AMD64 connecting to Wheezy/ADM64. The KVM virtual machines are on the Wheezy machine, which is a also file & print server
(CUPS, Samba & NFS).

I’m getting an error “Unable to connect to libvirt. You need to install openssh-askpass or similar to connect to this host.”

The details go:

You need to install openssh-askpass or similar to connect to this host. Libvirt URI is: qemu+ssh://garydale@TheLibrarian/system Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/”, line 1020, in _open_thread
File “/usr/share/virt-manager/virtinst/”, line 158, in open
File “/usr/lib/python2.7/dist-packages/”, line 105, in openAuth
if ret is None:raise libvirtError(‘virConnectOpenAuth() failed’)
libvirtError: Cannot recv data: ssh_askpass: exec(/usr/bin/ssh-askpass):
No such file or directory Host key verification failed.: Connection reset by peer

Jessie doesn’t seem to have an openssh-askpass, just razorqt-openssh-askpass. Installing it didn’t fix the problem.

I can start the virtual machines on the server using virsh start
, and I have no problems with a password-less SSH connection to the server. I can ping the server using its name and the virt-manager connection fails even when I use the IP address, so it doesn’t seem to be a name problem.

I had a similar problem a couple of years ago when I was connecting to a Squeeze system from Wheezy, but the fix back then isn’t working today.

Also this was working until a few days ago. I was fiddling on the server to remove a configuration error that was preventing some package updates from installing and preventing the network from starting. At this point the server is behaving normally except for the connection problem.

One interesting thing is that ifconfig now returns this:
br0 Link encap:Ethernet HWaddr 00:24:1d:14:d8:42
inet addr: Bcast: Mask:
inet6 addr: 2002:c654:a32b:0:224:1dff:fe14:d842/64 Scope:Global
inet6 addr: fe80::224:1dff:fe14:d842/64 Scope:Link
RX packets:8336637 errors:0 dropped:0 overruns:0 frame:0
TX packets:6181383 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19201144873 (17.8 GiB) TX bytes:1751340102 (1.6 GiB)

eth0 Link encap:Ethernet HWaddr 00:24:1d:14:d8:42
RX packets:14861600 errors:0 dropped:0 overruns:0 frame:0
TX packets:6179185 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19784178400 (18.4 GiB) TX bytes:1748665682 (1.6 GiB)
Interrupt:41 Base address:0×6000

lo Link encap:Local Loopback
inet addr: Mask:
inet6 addr: ::1/128 Scope:Host
RX packets:12033 errors:0 dropped:0 overruns:0 frame:0
TX packets:12033 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1161414 (1.1 MiB) TX bytes:1161414 (1.1 MiB)

virbr0 Link encap:Ethernet HWaddr ba:4e:bb:4a:67:2a
inet addr: Bcast: Mask:
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

vnet0 Link encap:Ethernet HWaddr fe:54:00:e2:4b:f1
inet6 addr: fe80::fc54:ff:fee2:4bf1/64 Scope:Link
RX packets:79 errors:0 dropped:0 overruns:0 frame:0
TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:12027 (11.7 KiB) TX bytes:19483 (19.0 KiB)

whereas it used to only have br0, eth0 and lo. Using virsh edit
, I verified that it is using the br0 interface and not the virbr0 one.



Ntpd Confusion


I’m stumped. On my home network all my Debian installations _only_ use the router as clock source.

# ntpq -p remote refid st t when poll reach delay offset jitter X.Y.Z.A 3 u – 64 1 1.874 0.153 0.052

I use the default ntp configuration and other Debian installations
“directly on the internet” use all four clock sources
(0.debian.pool…., 1.debian.pool…).

Why is that? It seems to have something to do with IPv4 and IPv6. If I
start ntpd with ‘-4 -n’ ntpq exists with ‘Connection refused’. If I
start it with ‘-6 -n’ ntpq says ‘No association ID’s returned’.

I’m thoroughly confused.

Does anyone knows what’s happening?


, ,

1 Comment

Asterisk Security

Hi there

A lot of bugs [1] but no Debian updates. Should I be concerned?

[1] For instance;

Regards, Rob


Jessie B2 Installer Not Booting In Macbook Air

Have followed both guided partitioning as well as trying manual partitions with efi boot as first partition. Install works fine but after completion does not boot (get ? folder image) – tried to boot into rescue mode but target partition not found

partitions :
free space 1 gb
/efi 1 gb
/ 30 gb swap 4 gb
/home 80 gb free space 4 gb

tried to put efi as first partition but installer automatically puts 1gb free space in front

also tried Fedora 20 – it boots fine

would prefer to use Jessie

No Comments

Brother DCP-1510 Driver Install Script Empties /opt


Set up a Brother DCP-1510 laser printer and went to the Brother website for the drivers and install script for Debian systems. Downloaded the drivers and install script then ran the install script.

It seemed to work without significant errors and completed with no error messages and the correct test page was printed from cups. Have Debian 7
using gnome classic.

Later use showed that the previous contents of /opt had disappeared and there was only a brother directory in it. It did have firefox and thunderbird in it. These were duly restored.

Haven’t noticed anything else broken, yet.

The Brother driver install script has a serious bug and should not be used unmodified. This is a major black mark for Brother, something for them to correct forthwith.

Cheers, ZL2TTS

, ,


Genrating A Core At Boot Time

Following one of my bug report, the maintainer asks me to install the debug packages and try generating a core. But the crash happens only at boot time, the service can be started afterwards without problem. So I must reboot the server, while generating a core file that I can send afterwards.

The daemon is started by start-stop-daemon. Is it enough to add a cd /tmp ulimit -c 0
in the /etc/init.d/ script, to get the core file in the /tmp directory ?

This server is in use, thus I would prefer not to reboot it too much since reboot means service interruption (the time for the BIOS to check devices, init raid card etc, is rather long), so I prefer to check rather than trying different configurations and reboot.