Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Location: Toronto, Ontario, Cananda, North American continent, Western hemisphere, Earth, Third planetary orbit, Sol system, Outer spiral arm, Milkyway Galaxy, 3rd dimension.
Distribution: Ubuntu Intrepid Ibex, Debian Etch
Posts: 5
Rep:
Can't chroot from Ubuntu into Debian partition
So, here's the arrangement: my laptop dual-boots a fully-operational Ubuntu and a minimal Debian. It used to only boot Ubuntu until I decided to start playing with it, so I used GParted to resize the Ubuntu. I split it in just less than half, then pade a second partition about the same size. The remaining space, aside from swap, is an extra partition, mounting at startup on both distros that hold files like music and document I want to use in both places. Ubuntu is sda1, Debian is sda2.
Now, the internet on my laptop is a bit screwy. This is a hardware problem which will eventually be fixed (I'm having it fixed as a Christmas present) but at the moment, the wireless has never worked at all, and I had to use a USB adapter. Wired internet works in Ubuntu (I'm using it now) but when I went to install Debian, it couldn't get to connect to the wired internet either. (This did work installing Ubuntu, but I was expecting Debian to put up a bit more of a fight anyways) So when the installation finishes, I have only a text login, and it says it has big problems with xorg.conf that I'm going to need the internet to fix, and am unable to connect to the internet in any way. It doesn't recognise the USB or wired connections.
But Debian, in and of itself, is there, and does appear to be operating. Everything seems to be in the right place. It boots properly. I can login as a regular user or as root. I can cd around and see everything seems to be in order, as much as can be expected, at least. So I was hoping that I could boot into Ubuntu and use Ubuntu's internet connection to finish installing and configuring Debian. So I boot into Ubuntu, mount the Debian partition, mount everything else it complains isn't mounted, and go to chroot into the Debian side, and it says:
"chroot: cannot run command `/bin/bash': Exec format error"
So I start looking into this. No one seems to have quite the same issue I do, but similar ones were created by trying to chroot from a 64-bit to a 34-bit install. So I check the kernel file I have for Debian. All good there. So I keep looking and find it can happen if there's a problem with bash on the side I'm trying to chroot into. I have no idea how to find out of this is true or what to do about it if it is, or if it's not, and generally have no idea where to go from here.
Why not start by posting information about your Wired NIC and we can work on getting you network access.
Can you post the output of lspci, from your Ubuntu side would be fine since it's the same information. Then we can address your issues., possibly both network and xorg..
Location: Toronto, Ontario, Cananda, North American continent, Western hemisphere, Earth, Third planetary orbit, Sol system, Outer spiral arm, Milkyway Galaxy, 3rd dimension.
Distribution: Ubuntu Intrepid Ibex, Debian Etch
Posts: 5
Original Poster
Rep:
Thanks for reading!
As you'll see, the card in question is Atheros, which, as I found out with Ubuntu, isn't great about Linux. But I tried every way available to install a number of different drivers for it, and all the installs went perfectly, but none seemed to affect the erratic behavior of the device (it would work just find when it was detected, but was most of the time not detected. Detection would come in and out seemingly at random, for example being up for a few hours, then gone for a few days, back in for fifteen minutes and gone, while I'm just sitting there using OpenOffice). With the USB device (also Atheros), it worked fine, and it worked fine for other people using wireless in the same place. The USB device is broken, now.
I'm using that same Wireless card on my Acer Aspire One netbook and it works without any difficulties.. I alkso am running a much newer kernel than is in etch since I am running Lenny on the netbook with the 2.6.26-1 kernel
However, the wireless card needs extra attention; it is based on a AR5007 chipset, which requires an updated driver. The status of support for the AR5007 chipset is tracked at http://madwifi.org/ticket/1192. The updated driver can be obtained from the madwifi-source package in Lenny or directly from MadWiFi svn.
Location: Toronto, Ontario, Cananda, North American continent, Western hemisphere, Earth, Third planetary orbit, Sol system, Outer spiral arm, Milkyway Galaxy, 3rd dimension.
Distribution: Ubuntu Intrepid Ibex, Debian Etch
Posts: 5
Original Poster
Rep:
I think I recognise that post from when I was trying to get it working on Ubuntu. Madwifi never worked, and I'd installed it by about three differen methods (through synaptic, manually downloading the tarballs, etc. Ndiswrapper didn't either. I go to the driver manager for them, and it keeps saying I don't have the hardware, it says I haven't got any kind of ability to connect to the internet at all. Then a few minutes later, it'll detect, and pop to life just fine and in working order. If it was the driver, wouldn't it never work?
This seems like it's a problem with detecting the physical presence of the device in the first place. It'll be totally undetected and functionally non-existant for ages--days, even weeks--then suddenly while I'm watching TV I'll hear Pidgin suddenly log in and lo and behold, it's working. When it registers as existing at all, it works perfectly, and is fully functional in every way. Other people have no problem using the same wireless signal. This'll keep up for an unknown quanity of time, sometimes days, sometimes minutes, then disappear again. Between the switches, nothing changes at all. I do not tinker with anything. I don't alter or update anything. Sometimes, I don't even touch the machine. It just goes in and out without anything I do affecting it in any way.
Kinda like a cat.
Last edited by Eccentric Genius; 12-10-2008 at 12:53 PM.
Reason: Spelling, punctuation
Location: Toronto, Ontario, Cananda, North American continent, Western hemisphere, Earth, Third planetary orbit, Sol system, Outer spiral arm, Milkyway Galaxy, 3rd dimension.
Distribution: Ubuntu Intrepid Ibex, Debian Etch
Posts: 5
Original Poster
Rep:
I've been fiddling away with this in the interim, trying to get the chroot working (even if my wireless got working, I'd still want to be able to say I managed this, and would like to finish anyways). I've read a couple places that for other people there might be a problem with /bin/bash itself, but I'm not sure, since I can log in over there and do some things. Am I on remotely the right track? I'd love to get this working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.