LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-14-2007, 03:16 AM   #1
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Rep: Reputation: 0
Access a windows partition on a SATA that wasnt mounted at install through knoppix


I have a ntfs sata hard drive i used with windows to store all of my media that I would like to use with my knoppix(knoppMyth) install. unfortunately no matter what I try I cant get access to it through linux, I have installed the KDE and still it doesnt show up, if I run a fdisk -l it is on there, however it is not in my /etc/fstab file, any ideas? thanks ahead of time!
 
Old 02-14-2007, 03:28 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Try this (as root, unless you've configured it the other way around):
Code:
mkdir -p /mnt/windows
mount -t ntfs -o users,umask=022 /dev/sda1 /mnt/windows
Here /dev/sda1 is the device file if your SATA harddrive is a primary one (if it's secondary, try sdb instead of sda) and if the partition you want to access is not first, change 1 to the correct number. /mnt/windows is the place where the drive is tried to get mounted, change that if you like. The mkdir command is only needed if you do not have a mountpoint (a directory where it gets mounted) already created; after first time, that command isn't needed again.

- if that worked out, proceed with the instructions below
- if that didn't work out, post here the error messages/other information about what happened

Now if that did work, add an fstab entry (if you altered the above lines, change this fstab line accordingly):
as root, use a text editor of your choice to open /etc/fstab and then add this entry:
Code:
/dev/sda1 /mnt/windows ntfs auto,users,umask=022 0 0
Then save and do
Code:
mount -a
as root which should get it mounted. NOTE: the following options I used in fstab are:
- auto = automatically mount during boot process
- usres = let users handle (umount) the device too
- umask=022 = set umask to value 022, which means that from the default value 777 (for directories) is removed 022, 755 is left which means that owner (root I suppose, if you didn't do any odd tricks) gets full permissions to that mountpoint, group and other users only read-and-execute permissions.
 
Old 02-14-2007, 03:33 AM   #3
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
wow man thanks for the awesome response, i will try that tomorrow morning, right now its 2 30 my time and i have to work at 8 lol, but that all makes sense in my mind, lets see if it makes sense to the computer, thanks so much!
 
Old 02-14-2007, 12:54 PM   #4
zerocle
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Here is both my fdisk -l and the output when I tried what you had above:

root@mythtv:/home/mythtv# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 609 4891761 83 Linux
/dev/hda2 610 706 779152+ 82 Linux swap / Solaris
/dev/hda3 707 9729 72477247+ 83 Linux

Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 24791 199133676 7 HPFS/NTFS
root@mythtv:/home/mythtv# mount -t ntfs -o users,unmask=022 /dev/sda1 /mnt/windows
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

root@mythtv:/home/mythtv#

any ideas? thanks again so much!
 
  


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
Fresh install of SUSE, windows partition is mounted but no GRUB entry irunfast1000 Linux - General 1 10-12-2006 03:49 PM
Access to mounted partition for users nefryt Debian 1 04-29-2006 06:35 AM
cant access mounted partition alaios Linux - Newbie 4 07-26-2005 08:44 AM
Can't access mounted partition? ZaijiaN Linux - Newbie 7 02-20-2004 04:33 PM
Access a vfat mounted partition vector Slackware 2 02-25-2003 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:00 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