LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-20-2005, 02:12 PM   #1
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Rep: Reputation: 30
Mounting USB external HD at boot


Ive tried editing the fstab so that it would mount my external HD at boot, but it always is restricted to root, or not mounted at all. Ill post the fstab as it is now. Ive tried changing it according to a how to I found in search, but it didnt work, so I tried some other changes to no avail. Here is my fstab:

/dev/hda5 / ext3 noatime 1 1
/dev/hda7 /home ext3 noatime 1 2
/dev/hdc /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0
/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/sda1 /mnt/RAID0 ntfs pamconsole,exec,utf8,noauto,user,iocharset=iso8859-1,managed 0 0
 
Old 08-21-2005, 10:47 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
what's the line relative to your external HD in this? Is it the /dev/sda1 one?

In any case, what is the filesystem of the drive?
 
Old 08-22-2005, 07:24 AM   #3
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
sda1 is the USB drive, and its in NTFS.
 
Old 08-22-2005, 07:35 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
You have quite lot of options on that line, some I don't even know...
Whatever, have you tried adding "uid=<your user>" and "umask=000" ? Thus, make sure you _never_ try to write on this NTFS drive from linux, this wuold likely to corrupt the filesystem. You better add the "ro" flag as well.
 
Old 08-22-2005, 08:44 AM   #5
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ill try that. I dont know what the pamconsole and utf8 mean, or the managed at the end. Everything else Ive got figured out. Any ideas on those?
 
Old 08-22-2005, 08:52 AM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
UTF8 is a type of charater set encodage or something like this... I really doubt you need this. Pamconsole probably has something to do with authentification but I can't tell you exactly.

There is probably some informations about these in "man mount"
 
Old 08-22-2005, 09:23 AM   #7
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Do you think I would be safe to get rid of them? I was considering changing it to:
/dev/sda1 /mnt/RAID0 ntfs,ro,auto,user,iocharset=iso8859-1,managed 0 0

and see if that would work
 
Old 08-22-2005, 09:31 AM   #8
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Re: Mounting USB external HD at boot

Quote:
Originally posted by Kramer
Ive tried editing the fstab so that it would mount my external HD at boot, but it always is restricted to root, or not mounted at all. Ill post the fstab as it is now. Ive tried changing it according to a how to I found in search, but it didnt work, so I tried some other changes to no avail. Here is my fstab:

/dev/hda5 / ext3 noatime 1 1
/dev/hda7 /home ext3 noatime 1 2
/dev/hdc /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0
/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/sda1 /mnt/RAID0 ntfs pamconsole,exec,utf8,noauto,user,iocharset=iso8859-1,managed 0 0
If i understand correctly you edited the fstab adding the /dev/sda1 but it doesn't get mounted at boot.

1) you don't need all these options but anyway it doesn't have anything to do with the mounting of it.
Do you have any linux binaries in this partition ? if not the "exec" flag is not needed.
"noauto" is the culprit for not being automatically mounted at boot time. If you want it to be mounted automatically remove it.
"user" means that a user can mount it. (If you remove noauto then it would be mounted automatically so user has no meaning)
"iocharset" is deprecated the new name is "nls" and i believe iso8859-1 is the default nls so it is not needed

So, bottom line if you want the partition mounted at boot time remove "noauto,user"
 
Old 08-22-2005, 04:17 PM   #9
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Re: Re: Mounting USB external HD at boot

Quote:
Originally posted by imitheos
If i understand correctly you edited the fstab adding the /dev/sda1 but it doesn't get mounted at boot.

1) you don't need all these options but anyway it doesn't have anything to do with the mounting of it.
Do you have any linux binaries in this partition ? if not the "exec" flag is not needed.
"noauto" is the culprit for not being automatically mounted at boot time. If you want it to be mounted automatically remove it.
"user" means that a user can mount it. (If you remove noauto then it would be mounted automatically so user has no meaning)
"iocharset" is deprecated the new name is "nls" and i believe iso8859-1 is the default nls so it is not needed

So, bottom line if you want the partition mounted at boot time remove "noauto,user"
Ok, got it to mount at boot. At the beginning it gives an error about "special device /dev/sda1 does not exist"

I cant figure out why, since it still mounts the drive. Here is my fstab:
/dev/hda5 / ext3 noatime 1 1
/dev/hda7 /home ext3 noatime 1 2
/dev/hdc /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0
/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/sda1 /mnt/RAID0 ntfs umask=0,nls=iso8859-1,ro 0 0
 
Old 08-23-2005, 04:12 PM   #10
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
ok, now its not mounting at all. My fstab is the same as above. Now what?
 
Old 08-23-2005, 04:24 PM   #11
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
"pamconsole" is added from Supermount in Mandrake...

Also being a USB device It seems would be a "hotplug" issue but I don't have a USB HD to test...

You may want to just use a mount script and have it run on startup...

KC


Last edited by kencaz; 08-23-2005 at 04:30 PM.
 
Old 08-23-2005, 04:39 PM   #12
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Quote:
ok, now its not mounting at all
Do you mean on boot or even when you try manually? You better not mess with fstab unless you found out the correct options to add to it, what does "mount -t ntfs -o umask=0,nls=iso8859-1,ro /dev/sda1 /mnt/RAID0" tell you, any error message? ?
 
Old 08-23-2005, 04:47 PM   #13
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Half_Elf
Do you mean on boot or even when you try manually? You better not mess with fstab unless you found out the correct options to add to it, what does "mount -t ntfs -o umask=0,nls=iso8859-1,ro /dev/sda1 /mnt/RAID0" tell you, any error message? ?
Its a SCSI issue on my new kernel. I must have taken out one of the drivers. It mounts fine on my other kernel.
 
  


Reply



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 controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
USB External HD on Linux-=mounting problems whoever Linux - Newbie 1 05-05-2005 10:46 AM
Western Digital USB External HD not Mounting zakmtbike Linux - Hardware 5 03-08-2004 07:21 PM
External USB HDD not mounting glk Linux - Hardware 1 01-22-2004 10:14 AM
Mounting my USB external drive, USB 1.1 Devillion Linux - Hardware 4 01-04-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration