LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-08-2012, 03:16 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
My pendrive suddenly changed from /dev/sda1 to /dev/sdb1!


Aka memory stick aka flash memory stick. I think i must have booted in the middle but I went to mount it and found it had "migrated" to sdb1 according to 'fdisk -l'. What can be the reason?

kernel 2.6.21.5
Slackware 12.0
Hardware: USB 1.1
 
Old 08-08-2012, 03:22 PM   #2
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
It's probably due to udev. You can write a custom udev rule to keep it consistent across reboots.

http://www.slackwiki.com/Udev
 
Old 08-08-2012, 03:26 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
And how can I rule out udev? Not a joke. I really do not know if I need it.
 
Old 08-08-2012, 03:50 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Just chmod -x /etc/rc.d/rc.udev.

That's the easy part of it.

Now you will have to do udev's job yourself.

That's the uneasy part of it.

Let me quote rc.udev, as shipped with Slacxkware 13.37:

Code:
# This is a script to initialize udev, which populates the /dev
# directory with device nodes, scans for devices, loads the
# appropriate kernel modules, and configures the devices.
 
Old 08-08-2012, 03:54 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
It was more simple with Unix: static devices.
 
1 members found this post helpful.
Old 08-08-2012, 04:05 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Nostalgia...

You could go back to Slackware 11 then, as it had hotplug with a 2.4.33.3 kernel (udev was offered as an alternative then, in association with a 2.6.17.13 kernel)
 
Old 08-08-2012, 04:10 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I have just downloaded 10.2 and have running in a machine. 9.1 had issues with usb.
 
Old 08-08-2012, 04:19 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
If I remember well, 10.2 was the first version of Slackware I used.

PS Just checked the announce for it: udev was already included, oh well...
Quote:
When running a 2.6
kernel, Slackware supports udev. This is a system for
creating devices in /dev dynamically, greatly reducing device
clutter and making it easy to see what devices are actually
present in the system.

Last edited by Didier Spaier; 08-08-2012 at 04:20 PM.
 
Old 08-08-2012, 04:25 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Ha, ha ... By the way. 10.2 seems to lack lspci and I want to know what version is USB in that machine. How can I know? At boot time there are no messages mentioning USB. Only "Activating hardware detection: /etc/rc.d/rc.hotplug start". You spoke about it.
 
Old 08-08-2012, 04:28 PM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Back to the topic: if you don't want to make an udev rule for your USB stick, you could instead make en entry for it in /etc/fstab, designating the device not by /dev/something but by its UUID. Just issue the "blkid" command after having plugged-in your USB key and begin the relevant line for it in /etc/fstab with UUID=<the string given by blkid for the USB key>.

EDIT. I didn't see your last post before this one. You could try "lsusb".

Last edited by Didier Spaier; 08-08-2012 at 04:49 PM.
 
1 members found this post helpful.
Old 08-08-2012, 05:02 PM   #11
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Didier Spaier View Post
EDIT. I didn't see your last post before this one. You could try "lsusb".
Oh, I did and got
Code:
Device descriptor:
  ...........
  bcdUSB      1.10
  ...........
So it's 1.1 and not 2.0 or later. And about the topic, I did the UUID thing and worked fine. Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm --manage /dev/md0 --add /dev/sdb1 returns device busy JeepingAZ Linux - Desktop 2 02-17-2011 12:18 PM
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
USB Detection; when /dev/sda1 or /dev/sdb1 ravime Linux - Hardware 6 09-12-2007 06:15 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration