LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-20-2005, 08:55 AM   #1
casperbg
LQ Newbie
 
Registered: Apr 2005
Location: Plovdiv,Bulgaria
Posts: 12

Rep: Reputation: 0
Mandriva 2006 USB flash Drive Automount


[root@localhost casper]# modprobe -v usb-storage
insmod /lib/modules/2.6.12-12mdk/kernel/drivers/usb/storage/usb-storage.ko.gz

[root@localhost casper]# fdisk -l /dev/sda

Disk /dev/sda: 524 MB, 524025856 bytes
17 heads, 59 sectors/track, 1020 cylinders
Units = cylinders of 1003 * 512 = 513536 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sda1 ? 1914209 2457017 272218546+ 20 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(356, 97, 46) logical=(1914208, 5, 40)
Partition 1 has different physical/logical endings:
phys=(357, 116, 40) logical=(2457016, 16, 59)
Partition 1 does not end on cylinder boundary.
/dev/sda2 ? 1326206 1863570 269488144 6b Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 110, 57) logical=(1326205, 9, 57)
Partition 2 has different physical/logical endings:
phys=(269, 101, 57) logical=(1863569, 13, 16)
Partition 2 does not end on cylinder boundary.
/dev/sda3 ? 537378 1931558 699181456 53 OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(345, 32, 19) logical=(537377, 4, 25)
Partition 3 has different physical/logical endings:
phys=(324, 77, 19) logical=(1931557, 10, 42)
Partition 3 does not end on cylinder boundary.
/dev/sda4 * 1390457 1390478 10668+ 49 Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(87, 1, 0) logical=(1390456, 5, 1)
Partition 4 has different physical/logical endings:
phys=(335, 78, 2) logical=(1390477, 9, 38)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order
[root@localhost casper]# dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb 4-4: new high speed USB device using ehci_hcd and address 2
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
usb-storage: device scan complete
usb 4-4: USB disconnect, address 2
usb 4-4: new high speed USB device using ehci_hcd and address 3
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete

Linux detect USB Drive but on every time must to mount manual:
>su
>password
>mount /dev/sda /mnt/......
and only root access permited to read and write files.

On Ubuntu 5.04 i see this process work automatically. When connect usbstick mount and can be accessed with user acount.
What can I do to make this on my Mandriva?
 
Old 10-20-2005, 10:11 AM   #2
Q-Fireball
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
Check if your kernel supports the automount support if not recompile your kernel. And you need to install automount .
Oh I am sorry its called supermount.
http://gentoo-wiki.com/HOWTO_Supermount

Last edited by Q-Fireball; 10-20-2005 at 10:23 AM.
 
Old 10-20-2005, 01:25 PM   #3
Al_Khidr
LQ Newbie
 
Registered: Sep 2005
Location: I live everywhere, since I am one with the force.
Distribution: Mandrake 10.1
Posts: 26

Rep: Reputation: 15
Talking Mandriva 2006

How did you get Mandriva 2006. I am going everywhere to find 2006. And because my club memebership is Aluminum, I do not have the ability to download the ISOs. Please help me out. Thank you.



Al_Khidr,
 
Old 10-20-2005, 02:17 PM   #4
casperbg
LQ Newbie
 
Registered: Apr 2005
Location: Plovdiv,Bulgaria
Posts: 12

Original Poster
Rep: Reputation: 0
Sorry but URLs:
http://www1.mandrivalinux.com/en-us/ftp.php3
ftp://ftp.prew.hu/pub/Linux/Mandrake...al/2006.0/i586

who I use to download doesn't work now. I seek for ftp mirrors and find this links:
Test I hope to work

ftp://gd.tuwien.ac.at/pub/linux/Mand...so/2006.0/i586
ftp://gd.tuwien.ac.at/pub/linux/Mand...5-CD1.i586.iso
ftp://gd.tuwien.ac.at/pub/linux/Mand...5-CD2.i586.iso
ftp://gd.tuwien.ac.at/pub/linux/Mand...5-CD3.i586.iso

and

ftp://ftp-stud.fht-esslingen.de/pub/...so/2006.0/i586

This is list of mirrors:
http://www1.mandrivalinux.com/en/man...2006-beta.php3
http://www1.mandrivalinux.com/en/mandrivalinux-2006-beta.php3
If this doesn't work tell me in Bulgaria now make a new mirror.
 
Old 10-20-2005, 02:43 PM   #5
casperbg
LQ Newbie
 
Registered: Apr 2005
Location: Plovdiv,Bulgaria
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Q-Fireball
Check if your kernel supports the automount support if not recompile your kernel. And you need to install automount .
Oh I am sorry its called supermount.
http://gentoo-wiki.com/HOWTO_Supermount
Super you a wizard!!!
10x for help
In this link have super idea.
This is my fstab file.

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda9 / ext2 defaults 1 1
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=cp1251,codepage=866,noauto,ro,exec,users 0 0
/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=cp1251,codepage=866,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=cp1251,sync,codepage=866 0 0
/dev/hda1 /mnt/fat1 vfat umask=0,iocharset=cp1251,codepage=866 0 0
/dev/hda5 /mnt/fat2 vfat umask=0,iocharset=cp1251,codepage=866 0 0
/dev/hda6 /mnt/fat3 vfat umask=0,iocharset=cp1251,codepage=866 0 0
/dev/hda7 /mnt/hda7 ext2
none /mnt/sda supermount fs=auto,dev=/dev/sda 0 0
none /proc proc defaults 0 0
/dev/hda8 swap swap defaults 0 0
/dev/hda10 swap swap defaults 0 0


Result:
USB flash drive work and mount automatically when is connected.
Only create icon on my desktop link to /mnt/sda and all easy.
In kernel on Mandriva 2006 supermount is installed and active.

If not active on your kernel look this
>cd /usr/src/linux
>make menuconfig
and in program choose supermount ......
exit of program and run this
>make
after 10-15 min reboot
This must work!

many 10x Q-Fireball
 
  


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
Don't know how to set up WG111 usb wireless on mandriva 2006 har02052 Mandriva 2 09-18-2006 09:09 AM
Please help (can't get sound working with flash player and firefox in Mandriva 2006!) LaptopLinux Mandriva 1 12-07-2005 01:58 AM
Floppy drive very slow with Mandriva 2006 jeanmm Mandriva 4 11-14-2005 01:36 AM
Mandriva 2006 usb mouse lost parametric Mandriva 2 10-23-2005 07:09 AM
Fedora Core 3 / USB Pen Drive Automount clickster Fedora 2 12-31-2004 07:16 AM


All times are GMT -5. The time now is 01:42 AM.

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