LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Automount a harddisk partition (https://www.linuxquestions.org/questions/linux-newbie-8/automount-a-harddisk-partition-815388/)

Azazwa 06-21-2010 04:45 AM

Automount a harddisk partition
 
Hi!

For whatever reason /dev/sda3 (at /tydelik) does not mount itself (like all the other partitions) when the system reboots.

In YaST's expert partitioner it says that:
Quote:

An asterisk (*) after the mount point indicates a file system that is currently not mounted (for example, because it has the noauto option set in /etc/fstab).
Here is the /etc/fstab :
Quote:

dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1X26E-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1N1AB-part5 /chemistry ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1X26E-part7 /code ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1X26E-part8 /final ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1X26E-part3 /tydelik ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1X26E-part1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1X26E-part2 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/disk/by-id/scsi-SATA_ST31000528AS_5VP1X26E-part5 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
~
I don't see a noauto option. Is it hiding somewhere?

Also, if I say the following then it seems that /dev/sda3 is ext2 and not ext3 (as YaST says).
Quote:

b104pc110 /root# mount /dev/sda3 /tydelik
b104pc110 /root# mount
/dev/sda6 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sdb5 on /chemistry type ext3 (rw,acl,user_xattr)
/dev/sda7 on /code type ext3 (rw,acl,user_xattr)
/dev/sda8 on /final type ext3 (rw,acl,user_xattr)
/dev/sda1 on /windows/C type ntfs (ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8)
/dev/sda2 on /windows/D type ntfs (ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sda3 on /tydelik type ext2 (rw)
Firstly, how do I specify /dev/sda3 to be mounted by default (because I thought it would unless there is a noauto specified), and secondly, why is YaST not showing the same settings as when I say "mount" ?

Thanks!

;-)

acid_kewpie 06-21-2010 06:39 AM

Well I'd wonder if they weren't the same issue, as if there is no valid journal on the filesystem then it will only be mountable as ext2, so fstab's mounting options will fail. You could just change the filesystem type in fstab to auto and it'll presumably also mount it as ext2 that way. if you just create a new journal ("tune2fs -j /dev/sda3" if I recall correctly) then it should clear up both perceived issues.

Azazwa 06-21-2010 11:15 AM

Thanks, the tune2fs command worked when I executed it as root.
;-)


All times are GMT -5. The time now is 01:30 PM.