There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 boot bsod computer cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware help please hijackthis hjt hjt log install internet internet explorer itunes javascript keyboard lan laptop log malware monitor network networking outlook outlook 2003 outlook express password php popups problem router seo slow sound sp3 spyware startup trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless youtube
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
linux with Hotplugging?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
hairybusdriver's Avatar
Member with 49 posts.
 
Join Date: Mar 2008
Location: waterford, ct
Experience: Advanced
05-May-2008, 06:13 PM #1
linux with Hotplugging?
Does any know of any versions of linux that come with the program hotplug on it. I dont know how to mount flash drives with linux and i was told that the hotplug program does it for you automatically?
leroys1000's Avatar
Senior Member with 820 posts.
 
Join Date: Aug 2007
Location: Boise,Idaho
Experience: Intermediate
05-May-2008, 07:51 PM #2
Ubuntu is usually pretty good at detecting hotplug devices.
saikee's Avatar
Distinguished Member with 2,487 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
06-May-2008, 09:01 AM #3
All modern Linux will do hotplugging with USB storage devices.

Some, like Ubuntu and Slax, will auto-mount the partitions as soon as you plug the devices to the USB ports.

Other would only auto-mount if the devices are plugged in at boot time.

In all of then you can mount and dismount any USB device "manually".

Mounting a device to read files off is possibly the most rewarding experience in Unix and Linux systems. It is almost like magic especially if you know the way how to find out the device names and then proceed to mount it.

M$ systems take away that understanding of mounting and unmounting of a device to read its files thus if things go wrong a user has no idea what to do. In Linux one can do it freely in manual mode.
__________________
A newbie entered Linux wonderland in Jun 2004, now a converted Linux user - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & & A "Howto" to install and boot 145 systems
Just booting tips A collection of booting tips
Judge told Linux "You are charged of murdering Windoze by stabbing its heart with a weapon, what was it? Linux replied "A Live CD"
hairybusdriver's Avatar
Member with 49 posts.
 
Join Date: Mar 2008
Location: waterford, ct
Experience: Advanced
09-May-2008, 01:57 PM #4
Well I was using kinnopix and i was trying to copy a windows file over to my flash drive. It wouldn't, it kept giving me this error message. i cant remember what it was but all i know is that i couldn't copy files onto the flash drive. I guess I'll try Ubuntu.
saikee's Avatar
Distinguished Member with 2,487 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
09-May-2008, 04:15 PM #5
Modern Linux are quite strict with security as every file has an ownership. A user not owning the file is restricted from accessing it.

This work similar on files off a Windows NTFS partition. To have the right to read those files you need to be a root user or the equivalent Admin in Windows.

Ubuntu is another member of the Debian family same as Knoppix. You will not get away with it.

You are better off find out the correct way to become a root user. In fact most Linux allow you to become a super user by the terminal command "sudo su" but you need to copy the files in terminal mode.
__________________
A newbie entered Linux wonderland in Jun 2004, now a converted Linux user - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & & A "Howto" to install and boot 145 systems
Just booting tips A collection of booting tips
Judge told Linux "You are charged of murdering Windoze by stabbing its heart with a weapon, what was it? Linux replied "A Live CD"
minoruhackerguy's Avatar
Computer Specs
Junior Member with 29 posts.
 
Join Date: May 2008
Location: Salt Lake City, UT
Experience: Whitehat/Very Advanced
13-May-2008, 03:06 AM #6
Also dude, just to let you know, this is how you mount external media from the command line.

step one) As root, type in "fdisk -l" You should see a message like the fallowing:
Code:
Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         765     6144831   83  Linux
/dev/hda2             766        2301    12337920    5  Extended
/dev/hda3            2302        2432     1052257+  82  Linux swap / Solaris
/dev/hda5             767        1730     7743330    b  W95 FAT32
/dev/hda6            1731        2301     4586526   83  Linux

Disk /dev/sda: 60.0 GB, 60011642368 bytes
255 heads, 62 sectors/track, 7413 cylinders
Units = cylinders of 15810 * 512 = 8094720 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           6       40131    0  Empty
Partition 1 does not end on cylinder boundary.
/dev/sda2               6        7414    58564957    b  W95 FAT32
External Storage will be listed something like "/dev/sda" or "/dev/sdb". Look at the size of the device. It should be about the same as your Pendrive/ipod/etc... The above results from fdisk show that I have a device that is 60.0 GB(my ipod) named /dev/sda. Now look to find the partition you want to mount. The number after the "/dev/sda" is the partition number. In my case, I want to mount the bigger one(the one with more blocks). To do this, first make sure you have a directory you'd like to mount the device to. (In my case, I made "/mnt/ipod") Also, note the filesystem of the device you wish to mount. (In my case, FAT32)
To mount the media, you type in the fallowing:
Code:
mount /dev/sda2 /mnt/ipod -t vfat
The mount command is pretty simple. By typing in the above you are saying "Mount device sda2 to the directory /mnt/ipod. The filesystem type is vfat". You type in vfat for FAT, FAT15, and FAT32 filesystems. (Most external media fits into this category)

If you want to see what filesystems you can mount, type in the fallowing:
Code:
 cat /proc/filesystems | grep -v "^nodev" | cat
It should print out something like this:
Code:
sh-3.00# cat /proc/filesystems | grep -v "^nodev" | cat
        reiserfs
        ext3
        ext2
        squashfs
        minix
        msdos
        vfat
        iso9660
        ntfs
It's good to see what you can mount this way because some things very from system to sytem. For instance, some linux distro's have the NTFS (windows filesystem) driver listed as 'ntfs-3g' and some don't even have the ability to mount ntfs devices.

Here is the whole process of mounting a disk drive (note that you can use the same processes to mount internal hard drives):
Code:
sh-3.00# fdisk -l

Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         765     6144831   83  Linux
/dev/hda2             766        2301    12337920    5  Extended
/dev/hda3            2302        2432     1052257+  82  Linux swap / Solaris
/dev/hda5             767        1730     7743330    b  W95 FAT32
/dev/hda6            1731        2301     4586526   83  Linux

Disk /dev/sda: 60.0 GB, 60011642368 bytes
255 heads, 62 sectors/track, 7413 cylinders
Units = cylinders of 15810 * 512 = 8094720 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           6       40131    0  Empty
Partition 1 does not end on cylinder boundary.
/dev/sda2               6        7414    58564957    b  W95 FAT32
sh-3.00# mount /dev/sda2 /mnt/ipod -t vfat
I told you more than you needed to know probably, but it's really an easy process. It only takes 2 steps to mount something. My advice would be to try it out a couple of times so you don't run into this problem in the future.

To find out more info on fdisk and mount, type in "man fdisk" or "man mount". I know that learning how to do things from the command line is cumbersome, but learning it is worth it..

If you have any questions about the process, just ask me. I'd be glad to help. =D

Last edited by minoruhackerguy : 13-May-2008 03:19 AM.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:37 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.