LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-10-2007, 07:55 PM   #1
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Rep: Reputation: 30
Creating one shared vfat drive to share with linux and windows xp on FC5


Hello,
I have installed FC5 on my computer:
My setup is as follows:
/hda---Windows XP by itself

/hdb----Fedora Core 5 and bootloader on this drive

I have a Backup windows partition(hda2). I would like to just share that drive betwee both OS'.

I added:

# my files partition shared by windows and linux
/dev/hda2 /shared vfat umask=000 0 0

To my fstab file

I made an empty folder called shared under my / for it to mount to.

I ran:

[root@localhost ~]# mount /shared
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
missing codepage or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so

Any ideas on what this means. Input will be greatly appreciated.
 
Old 01-10-2007, 09:51 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
In a nutshell an extended partition is a container for logical partition which allows one to create up to 63 partitions on an IDE or 15 on a SATA or SCSI. Any partition with a #>=5 is a logical partition i.e hda5-hda63. Partitions 1-4 are primary. Typically if you created more then one drive in windows, the D: drive will be a logical drive and hda2 is the extended. Look at the output of the command
fdisk -l (a small L and you must be root to run command)

An extended partition can not be mounted.
 
Old 01-11-2007, 12:54 PM   #3
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Original Poster
Rep: Reputation: 30
When I run fdisk-l from the command line as root I get:
[root@localhost ~]# fdisk -l

Disk /dev/hdb: 20.5 GB, 20547841536 bytes
255 heads, 63 sectors/track, 2498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 2498 19960762+ 8e Linux LVM

First of all my second hard drive being hdb is 20GB. I want to split it directly 50 50 by creating a hdb3(FAT32) partition that will be the remaining 10GB. First I realize I need to resize my hdb2 to allow for it to be created.

I have tried resizing my /hdb many times in "parted" by running
(parted) resize /dev/hdb2 50% 100%
Error: Expecting a partition number.
(parted)

Any input on what im doing wrong.
 
Old 01-11-2007, 03:03 PM   #4
Starchild
Member
 
Registered: Sep 2003
Location: At a tea party with Alice in Wonderland.
Distribution: Fedora 7
Posts: 65

Rep: Reputation: 15
Well, I'd guess you didn't input a partition number...
Also if you read the man-page it says:



Code:
resize partition start end
resize the filesystem on partition to start at start and end at end megabytes
So using % won't work.

Correct syntax would be something like:
# parted /dev/hdb resize 2 52Mb 104Mb mkfs 3 vfat

(<- taken from the info page, I changed it slightly. I'm guessing that it uses vfat for fat32)

Hovever I think you should install a graphical interface for parted, like gparted, and use that. It will probably be alot easier.

Though, I think you should know that ntfs-3g can read and write ntfs just fine. I don't think it's available for fc5. Though, If your willing to upgrade to fc6, I'd recommend that instead.
There are also ext3 drivers available for windows. The one I have allows both reading and writing, and works fine as far as I can tell.

Last edited by Starchild; 01-11-2007 at 03:14 PM.
 
Old 01-11-2007, 03:54 PM   #5
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Original Poster
Rep: Reputation: 30
Thank you

Hi,
Thanks for the advice. I found a manual that said I could use percentage values as well.
Thanks for the info on gparted and ext drivers.
I have had my beef with Fedora Core 6. It works great but it wont properly shutdown, someone suggested to modify my kernel to solve it, just never got a chance yet.
 
Old 01-11-2007, 04:00 PM   #6
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Original Poster
Rep: Reputation: 30
numbering

To refine my question into a subpart. How does linux number partitions I have never been able to understand that.
 
Old 01-11-2007, 04:04 PM   #7
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
hdb2 looks to be an lvm partition. If you have enough free space (or you could shrink the partitions) why not just make it out of that?

You can find out how big the partition is by using the command
Code:
pvdisplay
and how much you've used:
Code:
lvdisplay
and subtracting the total amount of lvdisplay from the size shown in pvdisplay.
 
Old 01-12-2007, 11:54 AM   #8
Starchild
Member
 
Registered: Sep 2003
Location: At a tea party with Alice in Wonderland.
Distribution: Fedora 7
Posts: 65

Rep: Reputation: 15
Btw, the ext3 driver for windows that I use can be found here, if you are curious...
 
Old 01-14-2007, 06:25 PM   #9
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Original Poster
Rep: Reputation: 30
clarification

How does linux number partitions?

Any input would be greatly appreciated.
 
Old 01-14-2007, 06:46 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
IDE drives:
hda = 1st controller master
hdb = 1st controller slave
hdc = 2nd controller master
hdd = 2nd controller slave

So hda1 is 1st primary partition on the 1st controller master drive. Primary partitions are 1-4. logical partitions are anything >=5. All 4 primary partitions do not have to exist. To create logical partitions one of the 4 primary partitions are designated as an extended partition. Logical partitions start at 5 and labeled in consective order. Lets say you have 3 logical partitions 5-7. If you delete 6 then 7 will now be 6. Typically if you create multiple partitions in a windows drive hda1 will be c:, hda2 extended, hda5 will be d:, hda6 e: etc.

Drives with a device ID of sd (i.e sda) drives can be SCSI, Firewire, USB or SATA since they all use the SCSI subsystem.
 
  


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
problem in creating a drive accessible to both windows and linux sunnydayzrback Linux - Software 1 02-01-2006 05:35 AM
How to share the same folder under VFAT using Fedora and Windows? lnthai2002 Linux - Newbie 2 01-29-2005 11:00 PM
Need assitance in creating a shared partition accessible by both Linux and Windows XP cajunaggie Linux - Newbie 5 09-14-2004 06:41 PM
Windows sees Samba shared drive; Linux can't tnandy Linux - Networking 3 09-13-2004 01:00 PM
can't write to VFAT samba share from WIndows dvanaken Linux - Software 3 05-13-2003 05:14 AM

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

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