LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-06-2003, 04:56 PM   #16
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56

You need to recompile your kernel for NTFS support, RH tends to exclude it when you install the OS due to the NTFS support being an experemential and dangerous , well it is dangerous if you want to be able to write to NTFS partition within linux but read access is neither dangerous nor experimential (I think it was included in the kernel tree for some time now, so we can eliminate experimentiality).
So, as for recompiling kernel per-use these forums search results and http://www.tldp.org
Have fun.
 
Old 01-06-2003, 05:55 PM   #17
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
oh well guess im reformating . i dont feel like re compliling the kernel just yet. im to much of a newb.
 
Old 01-07-2003, 02:28 AM   #18
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
fat32 works great
 
Old 01-08-2003, 10:11 AM   #19
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
ok well i have a little problem.

i have 1x40 and 1x80gb hdds in my linux box. my problem i formated both drives (well i know i did the main 40 but im not sure on the 80) i have linux on the 40 and i was going use the 80 for storage and FTP stuff. well when i run in the /sbin dir "./fdisk -l" it shows

Device Boot Start end blocks id system
/dev/hda1 * 1 5005 40202631 83 linux




then it goes down

Device Boot Start End Blocks Id System

doesnt show anything after that.

i am guessing that its not formated. so im not sure what to do after this.
 
Old 01-08-2003, 10:21 AM   #20
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if there is nothing on the 80 G drive then just format it

we know it's not hda, so I will guess it's hdb

if it's on the primary slave it's hdb
Code:
fdisk /dev/hdb

n

p

1

enter

enter

t

c

w
now you may need to reboot to sync the kernel with the filesystem. Probably not in this case, since there is nothing on the drive.

Code:
mkfs -t vfat /dev/hdb1

Last edited by DavidPhillips; 01-08-2003 at 10:25 AM.
 
Old 01-08-2003, 10:29 AM   #21
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
if there is nothing on the 80 G drive then just format it

we know it's not hda, so I will guess it's hdb

if it's on the primary slave it's hdb
Code:
fdisk /dev/hdb

n

p

1

enter

enter

t

c

w
now you may need to reboot to sync the kernel with the filesystem. Probably not in this case, since there is nothing on the drive.

Code:
mkfs -t vfat /dev/hdb1
im sorry im so stupid on this stuff but i cant figure out this part:
code]
fdisk /dev/hdb

n

p

1

enter

enter

t

c

w
[/code]
i dont know where to put the

n


p

1 or whatever.

when i type fdisk /dev/hdb
says command not found *shurg*
 
Old 01-08-2003, 10:36 AM   #22
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if you open /dev/hdb in fdisk then fdisk will ask for input

n = create partition

p = primary

1 = hdb1

enter = accepts default start position of partition on the disk

enter = accepts the default, create max size partition ( the whole disk)

t = set filesystem type

c = type fat32 (LBA)

w = write changes
 
Old 01-08-2003, 10:44 AM   #23
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
i think i figured it out lol u make it so easy and i still cant figure it out. dang im stupid.
 
Old 01-08-2003, 10:48 AM   #24
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
well i guess i didnt format it right bc it said that NTFS is not supported by the kernel. ill just go threw the setups again i suppose.
 
Old 01-08-2003, 12:13 PM   #25
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
ok when i do a /sbin/fdisk -l it shows my HDD as


/dev/hdb1 which is ok.

it also shows under the system
win95 FAT32 (LBA)

but when i try to mount the drive it says NTFS not supported.
 
Old 01-08-2003, 12:27 PM   #26
Calum
Member
 
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302

Rep: Reputation: 30
what mount command are you actually using? also, read your fstab file with
Code:
$ less /etc/fstab
and see if the filetype for that partition is still listed as ntfs. if so, change it in a text editor (you will need to change to being root with su to do this) to read 'vfat' instead of 'ntfs', then try to mount again.

edit: you might want to read this, it helped me a lot when i was first coming to terms with the idea of mounting partitions.

Last edited by Calum; 01-08-2003 at 12:33 PM.
 
Old 01-08-2003, 12:40 PM   #27
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
one way to do it all from the command line
Code:
mkdir /somefolder

mount -t vfat /dev/hdb1 /somefolder
this will bypass fstab, in fstab you need something like this
Code:
/dev/hdb1    /somefolder   vfat   exec,dev,suid,rw,conv=auto,uid=99,gid=99,umask=000 0 0

Last edited by DavidPhillips; 01-08-2003 at 12:46 PM.
 
Old 01-08-2003, 12:42 PM   #28
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
It appears that you must not have windows on the machine, is there a reason for not using linux filesystems.








Did you run mkfs -t vfat /dev/hdb1

Last edited by DavidPhillips; 01-08-2003 at 12:51 PM.
 
Old 01-08-2003, 02:00 PM   #29
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
It appears that you must not have windows on the machine, is there a reason for not using linux filesystems.








Did you run mkfs -t vfat /dev/hdb1
you are right i do not have windows in this linux box anymore i have no reason for it. all i want to do is use the 80gb hard drive for storing files for a FTP server like mp3s and such. i also want to be able to access the drive threw samba on my windows 2k box and nt. I have no problem formating the drive with a linux file system if i can do what i have listed here.

i tryed mkfs -t vfat /dev/hdb1

but it comes back saying "command not found".
 
Old 01-08-2003, 02:12 PM   #30
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
ok, It is possible that mkfs.vfat is missing.

You would be better off using a linux partition, here is how you can do it

run fdisk as before, you need to delete the partition first
Code:
fdisk /dev/hdb
d = delete partition

1 = delete hdb1


then you can repeat the creation proceedure, only instead of using type c use type 83 ( the default )
After that's done format the partition
Code:
mke2fs /dev/hdb1
then if you want ext3 use this
Code:
tune2fs -j /dev/hdb1
update your /etc/fstab entry

Code:
/dev/hdb1 /somefolder ext3 defaults 1 1

Last edited by DavidPhillips; 01-08-2003 at 02:14 PM.
 
  


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
mount a partition KptnKrill Linux - Newbie 20 06-15-2008 11:34 AM
cant mount old partition hydro Linux - Newbie 8 08-30-2005 01:31 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
can't mount partition greklas Linux - Newbie 3 09-04-2004 10:45 AM
Mount the partition Hammad Linux - General 0 03-19-2003 04:11 AM

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

All times are GMT -5. The time now is 10:37 PM.

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