LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2006, 11:02 AM   #1
Lorne Martin
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
creating vfat filesystem


Hi!

I'm running Mandrake 10.1 and want to set up a Windows partition on a second hard drive. I've created the partition with fdisk, and am finding lots of examples of how to create an ext2 or ext3 filesystem, but I don't know how to create a VFAT filesystem. Surely it's possible?

Thanks,
Lorne
 
Old 10-26-2006, 11:06 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
http://www.die.net/doc/linux/man/man8/mkfs.vfat.8.html

or mkfs -t vfat /dev/hda2
 
Old 10-26-2006, 11:19 AM   #3
sixgunz
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
Er, for second hard disk? That would be:

/dev/hdb1 not /dev/hda1

/dev/hda1 would wipe your primary hard disk!!
 
Old 10-26-2006, 11:33 AM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by sixgunz
Er, for second hard disk? That would be:

/dev/hdb1 not /dev/hda1

/dev/hda1 would wipe your primary hard disk!!
Oops, my bad, I thought they said second partition, which I put as /dev/hda2 (so it wouldn't be the primary partition, but it would be on the primary drive).

Anyway, you're right!!!
 
Old 10-30-2006, 11:10 AM   #5
Lorne Martin
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
recovering linux partition

Hi again,

Thanks for taking time to answer. However I ended up booting from the Windows 2000 Pro CD and using its tool to format my second hard drive. The Win2K installer then insisted it needed a partition on my primary drive to install. So I chopped my Linux swap partition in half, and created a Windows partition on my primary drive as well. So, that made the installer happy and the installation went fine, but now I can't boot up in Linux anymore, although I know my Linux partitions are still all there. I can boot from my Mandrake 10.1 installation CD, but I only get a boot prompt and I don't know what commands to use at this prompt. Is it possible to to get my Linux back, or is it not recoverable?

Thanks,
Lorne

PS I'm new to LinuxQuestions.org and just noticed I might be in the wrong forum. Should I move to General?
 
Old 10-30-2006, 11:21 AM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
Which partition was your swap on? If it was on an partition near the beginning of the drive, you might have hosed up the partition naming scheme in /etc/fstab.

If you have a linux Live CD, you can boot it up, mount your / partition (it's probably an icon on your desktop that you can just right click and mount). Copy the file /etc/fstab from that drive and post it here (be careful to not copy /etc/fstab from the live CD by /mnt/hdaX/etc/fstab or whatever the drive is mounted as). Also post the output of fdisk -l and try to tell us which partition is your / and swap (and /boot, etc if you made separate partitions for all).
 
Old 10-30-2006, 02:06 PM   #7
Lorne Martin
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
The swap partition was in the last gig of a 19 GB hard drive.

I'm not sure what you mean by a live CD, is that one where you can run Linux without installing on a hard drive? I don't have anything like that. All I can get with my installation CD is a boot prompt, (not a shell prompt). Can I do something from there?

Thanks,
Lorne
 
Old 10-30-2006, 03:13 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
Try
Code:
linux single root=/dev/hdXX initrd=
where hdXX is the drive you root partition is on, for example if it is the first partition on the hard drive, /dev/hda1. The empty "initrd=" string should boot the initrd from the hard disk instead of from the CD.

If that doesn't work, try typing linux rescue at the boot prompt. This might dump you to a shell.

As I read your problem, I'm sort of assuming that when you installed windows you lost your bootloader, grub and it tries to boot into Windows directly every time? Is that what's happening?
 
Old 10-31-2006, 11:03 AM   #9
Lorne Martin
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, my computer is booting directly into Windows every time. My bootloader is LILO.
I'll try your suggested commands tonight, and will let you know what happens.

Lorne
 
Old 11-01-2006, 08:37 AM   #10
Lorne Martin
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
OK here's what happened:

linux single root=/dev/hda1 initrd=

EXT2-fs: hda1: couldn't mount because of unsupported optional features(4)
Kernel panic: VFS: Unable to mount root fs on unknown-block(3,1)

so, I try the next command...

linux rescue

*trying to load /sysroot/tmp/image/install/stage2/rescue_stage2.bz2 as a ramdisk
*mounting /dev/ram3 on /sysroot/tmp/stage2 as type ext2
*copy_file: /etc/resolv.conf -> /sysroot/tmp/stage2/etc/resolv.conf
*/etc/resolv.conf: No such file or directory
*stage1: disconnecting life support systems
Kernel panic: No init found. Try passing init= option to kernel

OK then I'll try that...

linux rescue init=

*trying to load /sysroot/tmp/image/install/stage2/rescue_stage2.bz2 as a ramdisk
*reading compressed ramdisk: IO_ERROR
*unsetting automatic

Now I clicked on the <OK> button...

*proceeding, please wait
Kernel panic: VFS: Unable to mount root fs on unknown-block(1,3)



Any more ideas or should I try to get a Linux Live Cd?

Thanks a lot,
Lorne
 
Old 11-01-2006, 08:42 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
A live CD would be easiest. I usually use Knoppix.

If you're using lilo, you'll want to follow this link and do task B3. Change "/dev/hda4" to whatever your root linux partition is.
 
  


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
write permissions in /etc/fstab for vfat filesystem btb Linux - Newbie 5 10-24-2005 01:37 PM
Filesystem other than vfat on pc card? JohnKFT Slackware 1 04-03-2005 12:54 PM
normal user cannot edit vfat filesystem GT_Onizuka Linux - Newbie 3 10-17-2003 10:36 PM
Can't mount Vfat or Msdos Filesystem!! RKris Linux - Software 6 06-19-2002 04:58 PM
Mounting a vfat filesystem in RH 7.2 M.I. Linux - General 8 11-28-2001 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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