Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

usb not loading: a strange story

 
   Soft32 Home -> Linux -> Mandriva RSS
Next:  Statistics for alt.os.linux.mandriva  
Author Message
DrMemory

External


Since: Nov 13, 2007
Posts: 3



(Msg. 1) Posted: Tue Nov 13, 2007 9:40 am
Post subject: usb not loading: a strange story
Archived from groups: alt>os>linux>mandrake (more info?)

I recently dusted off a retired old machine, found some more memory to
put in it, and decided to get it running.
It had 2 hd's. I did a clean install of 2006, and things were working
fine. Disk layout as follows (bear with me, you'll see the relevance
soon):
hda: /var, /tmp, an old windows partition, and large spare partition.
hdc: /, /usr, /usr/local, /home
After a couple of days, hdc started acting up. Would work for a while
and then fail. So, I reformated the windows and spare partitions on
hda and, following the directions in the "Upgrading a Hard drive"
howto
(using the cp -a /usr /etc /bin .... /new/ method). Then created /new/
{proc,sys},
modified the /new/etc/fstab and /new/boot/grub/menu.lst, plus setup
grub
to live in hda's mbr. I'm sure you all know the drill.

So, all seemed well, *except* that when I booted up the 'new' system
now residing solely on hda, there was no usb support whatsoever.
dmesg|grep usb gives nothing. I did a file-by-file cmp of /etc and /
new/etc.
Other than fstab/mtab, no differences at all!

I set it up so I could boot into either the "old" hdc-rooted sys or
the new one. The hdc-rooted one loads all of the usb drivers, and
everything works fine, picks up my thumb-drive when I plug it in. The
hda-based does nothing.
I can manually modprobe the usb stuff, then do udev force-reload, and
then the "new" system works fine. But why this difference? It is
driving me crazy, and hope somebody can shed some light.

thanks, Scott.
Back to top
Login to vote
David W. Hodgins

External


Since: Jun 06, 2007
Posts: 118



(Msg. 2) Posted: Sat Nov 17, 2007 1:16 am
Post subject: Re: usb not loading: a strange story [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 13 Nov 2007 18:40:09 -0500, DrMemory <drmemory.RemoveThis@3rivers.net> wrote:

> So, all seemed well, *except* that when I booted up the 'new' system
> now residing solely on hda, there was no usb support whatsoever.
> dmesg|grep usb gives nothing. I did a file-by-file cmp of /etc and /
> new/etc.
> Other than fstab/mtab, no differences at all!

Only thing I can think of, is to double check the permissions of directories
like /tmp, /dev, etc. I've seen problems with that, when using the cp -a
method of copying a root directory, even though booted from a cd.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Back to top
Login to vote
Jim Beard

External


Since: Aug 11, 2007
Posts: 14



(Msg. 3) Posted: Sat Nov 17, 2007 8:31 am
Post subject: Re: usb not loading: a strange story [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> On Tue, 13 Nov 2007 18:40:09 -0500, DrMemory <drmemory.TakeThisOut@3rivers.net> wrote:
>
>> So, all seemed well, *except* that when I booted up the 'new' system
>> now residing solely on hda, there was no usb support whatsoever.
>> dmesg|grep usb gives nothing. I did a file-by-file cmp of /etc and /
>> new/etc.
>> Other than fstab/mtab, no differences at all!

David W. Hodgins wrote:
> Only thing I can think of, is to double check the permissions of directories
> like /tmp, /dev, etc. I've seen problems with that, when using the cp -a
> method of copying a root directory, even though booted from a cd.

Perhaps it needed a cp -ap or maybe a cp -apL version of the copy command?
Permissions and symbolic (or maybe even hard) links would seem a possible
problem.

Cheers!

jim b.

--
UNIX is not user-unfriendly; it merely
expects users to be computer-friendly.
Back to top
Login to vote
DrMemory

External


Since: Nov 13, 2007
Posts: 3



(Msg. 4) Posted: Tue Nov 20, 2007 1:23 am
Post subject: Re: usb not loading: a strange story [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Nov 17, 7:31 am, Jim Beard <jim.be... RemoveThis @verizon.net> wrote:
> > On Tue, 13 Nov 2007 18:40:09 -0500, DrMemory <drmem... RemoveThis @3rivers.net> wrote:
>
> >> So, all seemed well, *except* that when I booted up the 'new' system
> >> now residing solely on hda, there was no usb support whatsoever.
> >> dmesg|grep usb gives nothing. I did a file-by-file cmp of /etc and /
> >> new/etc.
> >> Other than fstab/mtab, no differences at all!
> David W. Hodgins wrote:
> > Only thing I can think of, is to double check the permissions of directories
> > like /tmp, /dev, etc. I've seen problems with that, when using the cp -a
> > method of copying a root directory, even though booted from a cd.

All of the permissions, symlinks etc. seem to be exactly identical!

>
> Perhaps it needed a cp -ap or maybe a cp -apL version of the copy command?
> Permissions and symbolic (or maybe even hard) links would seem a possible
> problem.

The manual says -a is equivalent to -dpPR

It looks like the /sys structure isn't getting set up right, causing
later bootscripts to not see that there is any usb in place. I have no
idea where the /sys gets set up, someplace deep in the kernel? This
just has me baffled.

Thanks for any further ideas if anyone has any!

Scott.
Back to top
Login to vote
David W. Hodgins

External


Since: Jun 06, 2007
Posts: 118



(Msg. 5) Posted: Tue Nov 20, 2007 4:42 am
Post subject: Re: usb not loading: a strange story [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 20 Nov 2007 10:23:04 -0500, DrMemory <drmemory.DeleteThis@3rivers.net> wrote:

> It looks like the /sys structure isn't getting set up right, causing
> later bootscripts to not see that there is any usb in place. I have no
> idea where the /sys gets set up, someplace deep in the kernel? This
> just has me baffled.

/sys is setup by the kernel. This may be the problem. When you boot
from a cd, or other linux system, mount and browse the root partition
of the new installation, /sys should be empty. If you have copied
directories into it, that may be preventing the kernel from setting
them up.

In my case, I was copying from a filesystem where /tmp was on a seperate
filesystem (mounted during the copy), to a filesystem where the /tmp
directory was in the root filesystem. The result was wrong settings of
the permissions for the /tmp directory. ls -l showed an uppercase T
instead of a lowercase t. I also found the -x option was not keeping
the copy source, restricted to one file system, as I expected, causing
a lot of problems where absolute symlinks were used. I ended up
switching to rsysnc, which is much faster anyway.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Back to top
Login to vote
DrMemory

External


Since: Nov 13, 2007
Posts: 3



(Msg. 6) Posted: Tue Nov 20, 2007 7:57 am
Post subject: Re: usb not loading: a strange story [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David W. Hodgins wrote:
> On Tue, 20 Nov 2007 10:23:04 -0500, DrMemory <drmemory.DeleteThis@3rivers.net> wrote:
>
> > It looks like the /sys structure isn't getting set up right, causing
> > later bootscripts to not see that there is any usb in place. I have no
> > idea where the /sys gets set up, someplace deep in the kernel? This
> > just has me baffled.
>
> /sys is setup by the kernel. This may be the problem. When you boot
> from a cd, or other linux system, mount and browse the root partition
> of the new installation, /sys should be empty. If you have copied
> directories into it, that may be preventing the kernel from setting
> them up.
>

I made sure not to copy either the /sys or the /proc, but just to
create those directories. Should I not even be creating the /sys
mountpoint??! I'll try removing it when I get home tonight, then
reboot. Grasping at straws....

Thanks,
scott.
Back to top
Login to vote
David W. Hodgins

External


Since: Jun 06, 2007
Posts: 118



(Msg. 7) Posted: Tue Nov 20, 2007 11:37 am
Post subject: Re: usb not loading: a strange story [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 20 Nov 2007 16:57:40 -0500, DrMemory <drmemory.TakeThisOut@3rivers.net> wrote:

> I made sure not to copy either the /sys or the /proc, but just to
> create those directories. Should I not even be creating the /sys
> mountpoint??! I'll try removing it when I get home tonight, then
> reboot. Grasping at straws....

No, the /sys and /proc directories must exist, to be used as mountpoints.

Is lspci showing your usb Controllers?

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Mdv 2007 freezes at install - Hi Folks The machine: MoBo: MSI K8N Platinium µproc: AMD Athlon 64 3700+ HD (2): SATA2 The problem: During the..

aMSN - Installed but .... - Once I had installed autopackage and aMSN from the aMSN web site, I thought it would be plain sailing. I was wrong. fro...

Mandrake - Two of my hard drives crashed on my Mandrake, I think it was the RAID 0 problem what must I do?

a lttng success story - Hi. I was really pleased to find an intermittent timing problem using lttng, and maybe an example of how it can be used...

Linux Kernel Story - My first mail to lkml. I would like to know what happened to linux kernel from its 1.0. I have gone through lkml faqs...

ISO CD's what's the story - Should they be put as ISO files on the CD or be unpacked or anything and then put on CD. Who can help ? Regards Luit....
       Soft32 Home -> Linux -> Mandriva All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]