LinuxQuestions.org
Visit Jeremy's Blog.
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 02-23-2007, 02:29 PM   #1
JM11
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: Slackware 11
Posts: 24

Rep: Reputation: 15
Unhappy Mounting USB Device Problem!


Hi, i jus installed slackware 11.0 and i was able to mount my usb drive using "mount /dev/sda /mnt/usb" but after recompiling my kernel this no longer works.

But one thing that is bothering me is that there is only /dev/sda on my system. I thought there should be /dev/sda1 and sda2 etc.. present?

So after recompiling my kernel i cant seem to mount my usb for some reason. It keeps saying "no special device /dev/sda" from what i can recall.

Can anyone help me!
 
Old 02-23-2007, 03:07 PM   #2
thelastknowngod
Member
 
Registered: Nov 2006
Location: jersey
Distribution: Arch
Posts: 54

Rep: Reputation: 15
did you use the 2.6.20 kernel when you compiled it? i heard the 2.6.20 kernel only using the sdX form of device labeling. essentially exchanging /dev/hdX for /dev/sdX.

Quote:
Note that the 2.6.20 kernel is used with exclusive libata subsystem that changes the mount setup : all SATA and PATA devices are now called "sdX" instead of "hdX" even for PATA (optical devices are called "srX"). Several Zenwalk system scripts and tools have been modified to comply with this kernel.
here is the source from the Zenwalk 4.4 release notes...

http://www.zenwalk.org/modules/news/...php?storyid=41
 
Old 02-23-2007, 03:36 PM   #3
JM11
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: Slackware 11
Posts: 24

Original Poster
Rep: Reputation: 15
Nope. I am using the 2.6.17.13 kernel version that was on the slackware 11 installation cd.
 
Old 02-23-2007, 03:44 PM   #4
thelastknowngod
Member
 
Registered: Nov 2006
Location: jersey
Distribution: Arch
Posts: 54

Rep: Reputation: 15
did you compile it or just install the one that was on the disc? did you install the kernel modules for that kernel?
 
Old 02-23-2007, 03:50 PM   #5
JM11
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: Slackware 11
Posts: 24

Original Poster
Rep: Reputation: 15
I recompiled it after installing the modules from the /extra directory on cd 2.
But wat i dont understand is that previously wen using fedora core there wer many sdX devices but on slackware there only seems to be the one sda.
 
Old 02-24-2007, 03:11 AM   #6
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
do a dmesg and identify your device.
Quote:
i jus installed slackware 11.0 and i was able to mount my usb drive using "mount /dev/sda /mnt/usb"
i doubt how u were able to mount with this command?? no file system and r u sure this worked well?

have u compiled in the necessary modules for usb?
here is my how to
http://rkrishna.tp.googlepages.com/slackerbasics#usb

after editng fstab you only need to do "mount /mnt/usb " or mount /mnt/memory whatever yu wrote in fstab
 
Old 02-24-2007, 05:33 AM   #7
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Quote:
Originally Posted by thelastknowngod
did you use the 2.6.20 kernel when you compiled it? i heard the 2.6.20 kernel only using the sdX form of device labeling. essentially exchanging /dev/hdX for /dev/sdX.
I am on 2.6.20 and it uses hda , hdb for IDE devices and sdX for SCSI devices. Essentially no change from previous kernels.
 
Old 02-24-2007, 10:30 AM   #8
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,173

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
Smile mount usb devices

I had issues mounting my portable usb card reader in slackware 11 (2.6.18)
gnashley gave me some commands that allowed me to mount my device. As root at a terminal prompt run

#rescan-scsi-bus

then

#fdisk -l

then

#blkid

Then you should see all available scsi devices and be able to mount them:-)
 
Old 02-24-2007, 10:45 AM   #9
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
On running blkid
Quote:
/dev/sda6: TYPE="ntfs"
does anyone know how I can convert the type to ntfs-3g .. so that when I do
Quote:
mount /dev/sda6 /win_d
it mounts the correct driver?

Right now , I use the -t option in mount.
 
Old 02-25-2007, 11:18 AM   #10
JM11
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: Slackware 11
Posts: 24

Original Poster
Rep: Reputation: 15
Hey, rkrishna i checked out ur how to (good stuff), and i did:
#rescan-scsi-bus -l

This showed my usb device as sda, not sda1 or anything else. I added the line /dev/sda to fstab with the rest of the options and it works fine.
Only thing that bugs me is that the 2.4 kernel has /dev/sda as a superblock and has sda1 - sda13 or so on my system. Is this something to do with the kernel or jus my system?

Cheerz.
 
Old 03-03-2007, 11:46 AM   #11
JM11
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: Slackware 11
Posts: 24

Original Poster
Rep: Reputation: 15
Not to worry, i managed to get it working
Just had to change some options in the /etc/fstab file.

Thanks for the help!
 
Old 03-03-2007, 12:16 PM   #12
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
BTW no need to compile kernel which ship with slackware, all you have to do read the README.initrd and follow it. It will hardly takes five minutes to install the kernel.

Thanks.
 
Old 03-03-2007, 12:48 PM   #13
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,173

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
Smile

Quote:
Originally Posted by JM11
Not to worry, i managed to get it working
Just had to change some options in the /etc/fstab file.

Thanks for the help!
Cool, glad you got it working:-)
Could you please post your fstab? This will help other users who encounter your problem
 
Old 03-03-2007, 03:19 PM   #14
JM11
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: Slackware 11
Posts: 24

Original Poster
Rep: Reputation: 15
Here's my fstab file
Quote:
/dev/hda8 swap swap defaults 0 0
/dev/hda4 / ext2 defaults 1 1
/dev/hda1 /boot ext2 defaults 1 2
/dev/hda9 /home ext2 defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/sda1 /mnt/usb vfat auto,user,rw 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
Hope this helps.
 
Old 03-13-2007, 05:33 PM   #15
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190

Rep: Reputation: 30
I thought that SCSI emulation for USB was replaced with normal USB on the 2.6.20 kernel. Am I mistaken? Do I still need the SCSI sub-systems compiled into the kernel?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB device not mounting crimbo Linux - Hardware 3 02-05-2007 07:42 PM
Mounting a USB device siochain Linux - Hardware 5 08-20-2006 07:47 AM
mounting a USB device issey *BSD 6 03-01-2006 03:16 AM
Mounting a USB device jaakkop Linux - Hardware 4 05-29-2005 05:50 AM
Mounting USB device Valhalla Linux - Hardware 17 12-11-2004 02:19 PM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration