Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-08-2006, 07:52 PM
|
#1
|
Member
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint - Tara
Posts: 497
Rep:
|
Mounting external hard drive in Fedora Core 5?
I have just started using Fedora Core 5. I can mount an external Seagate hard drive in SuSE10 OSS as /dev/sda..
but in Fedora there is no /dev/sda. The external hard drive is formatted as a Gentoo drive - no Windows partitions at all. I mount floppies in Fedora Core 5 using /dev/fdx.
Googling returned info on USB flashdrives mainly. I think Fedora changed stuff in fstab in Core 5.
Any help appreciated.
Cheers
|
|
|
10-08-2006, 09:08 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Plug in the drive, have a look at the tail of /var/log/messages and mount the partition.
Example:
$ sudo tail /var/log/messages
Oct 8 22:03:04 Aspire5000 kernel: Type: Direct-Access ANSI SCSI revision: 00
Oct 8 22:03:04 Aspire5000 kernel: scsi 2:0:0:0: Attached scsi generic sg0 type 0
Oct 8 22:03:04 Aspire5000 kernel: SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
Oct 8 22:03:04 Aspire5000 kernel: sda: test WP failed, assume Write Enabled
Oct 8 22:03:04 Aspire5000 kernel: sda: assuming drive cache: write through
Oct 8 22:03:04 Aspire5000 kernel: SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
Oct 8 22:03:04 Aspire5000 kernel: sda: test WP failed, assume Write Enabled
Oct 8 22:03:04 Aspire5000 kernel: sda: assuming drive cache: write through
Oct 8 22:03:04 Aspire5000 kernel: sda: sda1 sda2 < sda5 >
Oct 8 22:03:04 Aspire5000 kernel: sd 2:0:0:0: Attached scsi disk sda
$ ls /media/usb_device
<no output nothing to see>
$ sudo mount -t auto /dev/sda5 /media/usb_device
$ ls /media/usb_device
ghost.exe $recycle.bin System Volume Information xphome.gho
$ sudo umount /media/usb_device
$ ls -al /media/usb_device
total 12
drwxr-xr-x 2 root root 4096 Nov 29 2005 .
drwxr-xr-x 7 root root 4096 Feb 5 2006 ..
|
|
|
10-08-2006, 11:25 PM
|
#3
|
Member
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint - Tara
Posts: 497
Original Poster
Rep:
|
Dear Lenard
Thanks for the fast reply.
As a normal user ls /dev did not list sda's only scd0. Had a cdwriter mounted as /dev/scd0. Unplugged cdwriter. Unattached, reattached and turned external disk off and on. Not working. Logged in as root and /dev had sda's listed. Chmod +rwx /dev/sda2. Mounted /dev/sda2 /media/usbdisk ok. Mounted cdwriter on /dev/scd0 successfully too. Logged in as normal user and sda's back again! USB stick appears on desktop. Can't open as normal user. Try as root: mount -t auto /dev/sda2 /media/usbdisk. Works!
So it appears to have been a permissions thing all along. However the disappearing and reappearing sda's is a bit perplexing. ? Related to sequence in attaching and unattaching usb external hdd or cdwriter?
Cheers
|
|
|
10-10-2006, 05:08 PM
|
#4
|
Member
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint - Tara
Posts: 497
Original Poster
Rep:
|
Dear Lenard
Spoke too soon. The external hard drive is formatted as a reiser file system using gentoo[I robbed another PC to get it]. I can move or copy some files to the external hard drive but it crashes especially on directories. The drive I want to back up on the external drive uses a logical drive formatted with ext3, running Fedora Core 5. Should I format the external drive with ext3 using Fedora also?
Cheers
|
|
|
10-10-2006, 06:42 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
IMHO, external hard drives which are not used often should be formatted as ext2, no real reason to have journalling on a temporary mount.
|
|
|
10-10-2006, 09:58 PM
|
#6
|
Member
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint - Tara
Posts: 497
Original Poster
Rep:
|
Thanks,
It was formatted as reiser already and had some files on it. From error messages on booting I suspected the crashes were caused by Selinux - something I have not as yet modified from the installed setup, uninstalling Selinux seems to have fixed it, together with modifying some permissions. But at least I have a backup going painlessly and will have to bone up on and modify Selinux.
Cheers
|
|
|
10-11-2006, 06:52 AM
|
#7
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Yea, it does seem at times that selinux causes more headaches then it fixes.
FYI: no reason to remove it, just disable it. Add the option 'selinux=0' on the kernel line in /boot/grub/grub.conf (or menu.conf) or edit the /etc/sysconfig/selinux file and set to disabled;
http://fedora.redhat.com/docs/selinux-faq-fc5/
.
|
|
|
All times are GMT -5. The time now is 01:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|