trouble mounting a newly created partition
I recently decided to try an resize my windows partition (/dev/sda1) from around 60 gigs to 16 gigs, so I'd have more space for linux . After working with it for a while, I managed to resize the windows partition using qtparted, run from knoppix, but I was unable to do anything with the space I freed up. It was listed as hidden, and I was unable to use the create function. So I started looking into fdisk, and managed to create /dev/sda3 so that it occupied the black area of my hard drive. Unfortuntaly, I haven't been able to figure out how to access it.
I added this entry to my fstab file:
Attempts to mount it from the command line, or from Fedora's disk managment program generate the error:
Here is a list of my drives, found with fdisk -l
The mkfs.ext3 -L just created a label called /mnt/data. This means you can have the fstab entry as
/mnt/data /mnt/data ext2 <options> 0 0
You formatted it as ext2 so unless you use tune2fs to turn it into ext3 the type must be ext2. try running e2fsck on your partition. Let us know what happens.
hmm, after using the mkfs.ext3 command (your code block) you should have a working ext3 (not ext2 as said in the post before) partition on device /dev/sda3.
try mounting it manually as root with
mount -t ext3 /dev/sda3 /mnt/data
and give us the result.
the e2fsck output might also be helpful.
you can also fix the partition table order manually if you want so, but probably this is not the problem:
(WARNING: no responsibility for data loss in case you make an error)
1) write down the fdisk output (the starting and ending sectors and types)
2) delete sda2-sda7
3) add sda2 with the information of sda3 (as primary partition)
4) add sda3 with the information of sda2 (as extended partition)
5) add sda5-sda7 with their own information (as logical partitions)
now your linux partition will be /dev/sda2 and the extended partition is sda3, but this will not make problems with the logical partions neither in win nor in linux, only the new partition has it's new name and they are called in their physical order on disk.
I tried changing my fstab entry as gerardt suggested, but I get the error "mount: /mnt/data is not a block device" when trying to access it. I could mount the partition with the command given by doc.nice after changing the fstab entry back to include /dev/sda3 instead of /mnt/data, but I still recieve the error "mount: wrong fs type, bad option, bad superblock on /dev/sda3, or too many mounted file systems" when I try to mount it using fedora's disk managment device. Also, it does not mount when I boot up the computer, like my other drives. I'd prefer to have that working, or a way to macro the command that worked, but at least I can access it now.
Running e2fsck generated this:
e2fsck 1.35 (28-Feb-2004)
/mnt/data: clean, 13/5641440 files, 198560/11277630 blocks
hm, the file system seems to be ok.
did the manual mount command from my post work without an error?
if there was an error, try executing the command in knoppix (using /mnt/test as target,
i think that does exist or create /mnt/data)
if there was no error, you can use the following line in your fstab as it does exactely the same. (the auto option means mounting automatically on system startup):
after adding this, you can mount all auto-lines with "mount -a"
(no problem for already mounted devices)
then, the disk should be accessible.
if there are still errors, just type "mount" and give us the result...
That seems to have worked, I didn't even have to run mount -a, it was already accessible after rebooting. Thank you very much for all your help.
no problem, just to mention it:
I forgot to add the last two fields for the fstab entry:
0 0 (see man fstab for meaning (one is for automatic checking on bootup, the other is for backup)
you didn't have to use the mount command as it already was mounted by the last try...
|All times are GMT -5. The time now is 06:39 AM.|