LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-23-2011, 02:58 PM   #1
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
couldn't mount manually extended windows partition


Hi, I have the following config:
fdisk -l:
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sdb2 1913 10010 65047185 f W95 Ext'd (LBA)
/dev/sdb5 1913 10010 65047153+ 7 HPFS/NTFS

no problem to mount the first partition sdb1 but I can't do the same for my extended one sdb5 (sdb2 is my container)

sudo mount -t ntfs /dev/sdb5 /media/tmp

I get:
Failed to read last sector (130094306): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sdb5': Invalid argument
The device '/dev/sdb5' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?


Any way around? thanks
 
Old 11-23-2011, 09:17 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Are you sure the partition is NTFS?

What happens if you try to mount it without the '-t ntfs'?

How were the partitions created? How was the NTFS filesystem created?
 
Old 11-24-2011, 03:41 AM   #3
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by neonsignal View Post
Are you sure the partition is NTFS?
Yes, I'm sure and I even tried with -t vfat without any change

Quote:
What happens if you try to mount it without the '-t ntfs'?
An error occur: no filesystem specified

Quote:
How were the partitions created? How was the NTFS filesystem created?
They were created under win XP env. My logical drive D: has been formatted with native XP format command.

Note: We are talking about a slave 80GB hard drive on which I've installed XP
 
Old 11-24-2011, 05:04 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
So this is a drive that was partitioned into two by WinXP, and the WinXP system installed on the first partition (C:), with the second partition volume (D:), I take it.

There used to be a 'force' option on the Linux NTFS driver, I think it is now superceded by 'recover'. But I doubt it will help you in this case; it sounds more like a failure in using the boot sector of the partition than a simple journal issue.

There is a package testdisk that can be used to recover boot sectors, but if the partition is loading fine when under WinXP, that shouldn't be necessary.

You could try using the ntfs-3g driver instead of the ntfs one (though on newer distros, they may actually be the same thing).

Last edited by neonsignal; 11-24-2011 at 05:56 AM.
 
Old 11-24-2011, 05:17 AM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You might try mounting it by uuid instead of /dev
 
Old 11-27-2011, 04:55 PM   #6
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
You could try using the ntfs-3g driver instead of the ntfs one (though on newer distros, they may actually be the same thing).
No change

Quote:
You might try mounting it by uuid instead of /dev
I couldn't find sdb5 UUID device number. Only primary one is listed:

sudo blkid
/dev/sda1: UUID="996910a6-d8e3-4230-bdee-d5992642fd46" TYPE="ext4"
/dev/sda5: UUID="48251033-3d80-4fe8-89f8-c4d243cabaea" TYPE="swap"
/dev/sdb1: UUID="2EB89D47B89D0E89" TYPE="ntfs"
 
Old 11-27-2011, 06:37 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Sorry - previous deleted - not concentrating.

What does "parted -l" (as root) return ?.

Last edited by syg00; 11-27-2011 at 06:39 PM.
 
Old 11-28-2011, 05:27 AM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Does a partition have to be "Primary or logical" for a linux distro to rw. I noticed that you referred to an "extended partition" in your op.
 
Old 11-28-2011, 01:13 PM   #9
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
What does "parted -l" (as root) return ?.
this is the output:
Model: ATA WDC WD2500BB-55R (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 249GB 249GB primary ext4 boot
2 249GB 250GB 1072MB extended
5 249GB 250GB 1072MB logical linux-swap(v1)


Error: Can't have a partition outside the disk!

Quote:
Does a partition have to be "Primary or logical" for a linux distro to rw. I noticed that you referred to an "extended partition" in your op.
I hope no, It would be very "strange"
 
Old 11-28-2011, 01:48 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
I assume that sdb5 was/is accessible when running windows? Since there wasn't a blkid for sdb5 in your previous posts we can not tell that the partition was actually formatted.

Also there wasn't any output from parted for sdb?
 
Old 11-28-2011, 01:58 PM   #11
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
I assume that sdb5 was/is accessible when running windows? Since there wasn't a blkid for sdb5 in your previous posts we can not tell that the partition was actually formatted.

Also there wasn't any output from parted for sdb?
Yes, partition is accessible from win.

here, the blkid output:
sudo blkid
/dev/sda1: UUID="996910a6-d8e3-4230-bdee-d5992642fd46" TYPE="ext4"
/dev/sda5: UUID="48251033-3d80-4fe8-89f8-c4d243cabaea" TYPE="swap"
/dev/sdb1: UUID="2EB89D47B89D0E89" TYPE="ntfs"

my second drive (sdb1) is shown but no the extended one (sdb2 -> sdb5)
 
Old 11-28-2011, 02:05 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
Output from parted not blkid...
 
Old 11-28-2011, 02:23 PM   #13
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
from my previous post:

Quote:
this is the output:
Model: ATA WDC WD2500BB-55R (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 249GB 249GB primary ext4 boot
2 249GB 250GB 1072MB extended
5 249GB 250GB 1072MB logical linux-swap(v1)


Error: Can't have a partition outside the disk!
 
Old 11-28-2011, 03:41 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
for some reason parted only recognises your 250GB drive and not windows (sdb) as fdisk lists in you first post.

You can also try the following command and post the output
sudo file -s /dev/sdb5

Last edited by michaelk; 11-28-2011 at 03:42 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
unable to mount extended partition linux_newbie86 Linux - Newbie 2 07-29-2008 07:17 AM
Howto Mount Windows extended partition philipvarghese *BSD 1 07-11-2006 08:21 PM
/home is in extended partition. how to mount manually? damienduff Debian 4 01-31-2006 12:37 AM
Mount an Extended Windows partition newmans Fedora 5 11-01-2004 02:05 PM
Cannot mount windows extended partition ? TheFrogMr Linux - Newbie 3 03-26-2004 01:35 PM

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

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