LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2010, 09:31 PM   #1
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Rep: Reputation: 53
mount issues


Okay, again, I'm using slackware.

My problem is that I have to manually mount /dev/hda7, even though it's listed in fstab, and when I do mount it to /home, root (who is the owner) only has r-x permission so I can't create user home directories. Root has rwx permissions to /home without the mount, but when I mount the partition I can't write to /home. So how to I set the permissions to the actual filesystem? That is what I need to do isn't it? Here's my partition table, /etc/fstab & /etc/mtab:

cfdisk (util-linux-ng 2.14.2)

Disk Drive: /dev/hda
Size: 80000000000 bytes, 80.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 9726

Name Flags Part Type FS Type [Label] Size(MB)
------------------------------------------------------------------------
hda2 Boot Primary NTFS [^A] 12000.69
hda5 Logical Linux ext3 9006.69
hda6 Logical Linux swap 1003.49
hda7 Logical Linux 47945.16
hda8 Logical NTFS [^A] 10001.95
Pri/Log Free Space 8.23

bash-3.1# cat /etc/fstab
/dev/hda5 / ext4 defaults 1 1
/dev/hda2 /mnt/windowspartition ntfs-3g umask=077 1 1
/dev/hda7 /home ext4 defaults 1 1
/dev/hda8 /mnt/sharedpartition ntfs-3g umask=077 1 1
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
bash-3.1# cat /etc/mtab
/dev/root / ext4 rw,barrier=1,data=ordered 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda7 /home ntfs rw 0 0
bash-3.1#
 
Old 06-20-2010, 09:48 PM   #2
giancarlo76
LQ Newbie
 
Registered: May 2006
Location: Lucca, Italy
Distribution: Arch, Debian, Ubuntu
Posts: 12

Rep: Reputation: 0
It seems cfsdisk doesn't detect fs for hda7, and mount treats it as ntfs (->mtab)
Try to reformat this partition?
Maybe a silly suggestion...
 
Old 06-20-2010, 09:59 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Have a look in dmesg for mount failure messages.
What does "file -s /dev/hda7" (run as root) show ?.
 
1 members found this post helpful.
Old 06-20-2010, 10:15 PM   #4
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
bash-3.1# file -s /dev/hda7
/dev/hda7: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80)
bash-3.1#
 
Old 06-20-2010, 10:31 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Maybe reassigned an old partition without doing a mkfs ?.
 
1 members found this post helpful.
Old 06-20-2010, 11:33 PM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Not apropro of anything, but what happened to hda1 ? Surely the first primary partition should be hda1, and the extended partitions will run from hda5.
 
Old 06-21-2010, 09:38 PM   #7
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
I inadvertently cropped hda1 when copying. It's just the "Dell utility" partition--33MB.
 
Old 06-21-2010, 10:16 PM   #8
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
Syg00, you hit the nail right on the head--I just needed to run mkfs. Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dvdrom mount issues thebiggiantmouse Slackware 5 12-02-2006 02:57 AM
mount issues pleaseeee help xpftp Linux - Hardware 5 09-28-2006 10:43 AM
cd wouldn't mount issues tededlin Linux - Newbie 3 07-29-2006 12:45 AM
hd mount issues {sn!per} Linux - Newbie 8 12-09-2003 02:20 PM
CD Mount issues Twiggy794 Linux - Games 4 12-02-2003 11:43 PM


All times are GMT -5. The time now is 09:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration