PDA

View Full Version : USB Keychain is not mounting in Fedora.


kuknoppix
19th February 2004, 07:27 PM
Is not mounting in Fedora...

This is what I did

[root@dhcp1710715198 /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 9013336 3129752 5425732 37% /
/dev/hda2 101105 6348 89536 7% /boot
none 240552 0 240552 0% /dev/shm
[root@dhcp1710715198 /]#


[root@dhcp1710715198 /]# lspci
00:00.0 Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 02)
00:00.1 System peripheral: Intel Corp.: Unknown device 3584 (rev 02)
00:00.3 System peripheral: Intel Corp.: Unknown device 3585 (rev 02)
00:02.0 VGA compatible controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02)
00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 03)
00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 03)
00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 03)
00:1d.7 USB Controller: Intel Corp. 82801DB USB2 (rev 03)
00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corp. 82801DBM Ultra ATA Storage Controller (rev 03)
00:1f.3 SMBus: Intel Corp. 82801DB/DBM SMBus Controller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem Controller (rev 03)
02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:02.0 Ethernet controller: Unknown device 168c:0013 (rev 01)
02:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 8180 (rev 20)
[root@dhcp1710715198 /]#

[root@dhcp1710715198 /]# cd mnt
[root@dhcp1710715198 mnt]# mount sda1
mount: can't find sda1 in /etc/fstab or /etc/mtab
[root@dhcp1710715198 mnt]# ls -a
. .. cdrom
[root@dhcp1710715198 mnt]# mkdir sda1
[root@dhcp1710715198 mnt]# mount sda1
mount: can't find /mnt/sda1 in /etc/fstab or /etc/mtab
[root@dhcp1710715198 mnt]# cd ..
[root@dhcp1710715198 /]# cd etc
[root@dhcp1710715198 etc]# vi fstab
[root@dhcp1710715198 etc]#
And this is what the fstab looks like

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0


Please help.

kuknoppix
19th February 2004, 10:19 PM
Also this is what fdisk -l tells me:

[root@dhcp1710715198 /]# fdisk -l

Disk /dev/sda: 262 MB, 262144000 bytes
32 heads, 33 sectors/track, 484 cylinders
Units = cylinders of 1056 * 512 = 540672 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 485 255984 6 FAT16
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 0, 33)
Partition 1 has different physical/logical endings:
phys=(254, 31, 33) logical=(484, 27, 5)

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1676 13462438+ 7 HPFS/NTFS
/dev/hda2 * 1677 1689 104422+ 83 Linux
/dev/hda3 1690 2829 9157050 83 Linux
/dev/hda4 2830 4864 16346137+ f Win95 Ext'd (LBA)
/dev/hda5 2952 4864 15366141 7 HPFS/NTFS
/dev/hda6 2830 2951 979902 82 Linux swap

Partition table entries are not in disk order

kuknoppix
20th February 2004, 01:18 AM
I need help..You there vorte...or anyone ..please help...

Has nayone tried the following and made it work..Please let me know.

https://listman.redhat.com/archives/rhl-devel-list/2003-August/msg00115.html

kuknoppix
20th February 2004, 01:46 AM
More update

I tried this

Created a directory called USB in /mnt
Then I typed this in mount /dev/sda1 /mnt/USB
That worked then I did an ls on USB and that showed the stuff that I copied onto it Win XP

Now when I try moving stuff into the USB drive from withing Fedora , it tells me Access Denied...

Help..Help....

And tell me if this is the right way to access the drive.

vorte[x]
20th February 2004, 02:41 AM
chmod 777 /mnt/USB for global read/write access to that mount point, and yes that's the way I would access it.

kuknoppix
20th February 2004, 03:01 AM
When I do the same thing now..

which is mount /dev/sda1 /mnt/USB
This is what I get

mount: /dev/sda1 is not a valid block device
Something is not right

Please help vorte

kuknoppix
20th February 2004, 03:46 AM
I tried that again after rebooting but again the same thing..

Cannot add stuff because Access is denied

I tried chmod and again it said permission denied on doing that..

Current permissions are 0755

Please help...
Waiting for your response

vorte[x]
20th February 2004, 04:04 AM
You need to become root for that. (su -)

kai_t
21st February 2004, 03:23 AM
Changing the permissions of the mount point cannot make the device's contents writable for users, as the permissions are overwritten by the filesystem driver when it mounts the device. Instead, you have to use the appropriate mount(8) option, umask=0 in this case. The command would be
[code:1]mount /dev/sda1 /mnt/USB -o umask=0[/code:1]
or just mount /mnt/USB when /etc/fstab contains the following line:
[code:1]/dev/sda1 /mnt/USB auto umask=0,noauto 0 0[/code:1]

kuknoppix
21st February 2004, 10:37 PM
Thats what I had thought..

I tied it with su - and it still gave my permissions denied...

Then I tried "both" ways suggested by kai...

It gave me this:
Permissions could not be changed for /mnt/USB/name of the file
But then when I checked the ls mnt/USB...it did copy those files.

So is there something wrong here or should I just ignore the message since it is copying it onto the USB Key Chain.

Also can I do the same when booted up from the live Knoppix-STD Cd...
I'm sure you guys (vorte and kai) have had experience with that

Please help...

kai_t
21st February 2004, 11:36 PM
It gave me this:
Permissions could not be changed for /mnt/USB/name of the file
But then when I checked the ls mnt/USB...it did copy those files.

So is there something wrong here or should I just ignore the message since it is copying it onto the USB Key Chain.
The warning message stems from the differences between the FAT filesystem variants (the partition on your USB keychain is using FAT16) and the file/directory attributes in Linux (r/w/x permissions, user/group ownership).

In case you only care about the files' contents, you can safely ignore those warnings.

kuknoppix
22nd February 2004, 05:00 AM
Thanks again kai..

I understand now..
Could you also help me and tell me if I can do the same when booted to the Knoppix-STD and save data onto my USB drive.

I'm sure you've had experience with that...

Please help

kuknoppix
22nd February 2004, 06:29 PM
Still seeking on the help...

Please help..

kai_t
23rd February 2004, 12:16 PM
I'd suggest you just give the above mount command line a try. In Knoppix, you might have to run it via the sudo command (sudo mount /dev/...), unless you already have a root shell. Don't forget to umount before unplugging the USB drive. ;)

kuknoppix
23rd February 2004, 06:21 PM
I tried that mount command in there and as sudo.

Here are the results:
(1) There is no directory under mnt for USB or sda1
So I created one..but that did not help either
(2) fdisk -l does not recognize it either


root@0[mnt]# ls -a
. .. auto cdrom evidence floppy hd hda1 hda2 hda3 hda5 pts test
root@0[mnt]# cd ..
root@0[/]# fdisk -l

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1676 13462438+ 7 HPFS/NTFS
/dev/hda2 * 1677 1689 104422+ 83 Linux
/dev/hda3 1690 2829 9157050 83 Linux
/dev/hda4 2830 4864 16346137+ f Win95 Ext'd (LBA)
/dev/hda5 2952 4864 15366141 7 HPFS/NTFS
/dev/hda6 2830 2951 979902 82 Linux swap

Partition table entries are not in disk order
root@0[/]# cd mnt
root@0[mnt]# mkdir USB
root@0[mnt]# cd ..
root@0[/]# mount /dev/sda1 /mnt/USB
mount: /dev/sda1 is not a valid block device

help

Jiaojiang Photos on Instagram - Lavras da Mangabeira - Santo Amaro Instagram Photos