LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2014, 07:27 AM   #1
masuch
Member
 
Registered: Sep 2011
Location: /dev/null
Distribution: ubuntu 64bits
Posts: 135

Rep: Reputation: 1
tell kernel NOT to try mount specific partition -aka- Wrong ufstype may corrupt your


Hi,

I would like to specify to linux kernel (within booting process) NOT to try to mount some specific partition , identified by PARTUUID.

I am trygin to figure out how to avoid of errors like the following:
>>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old

Thank You,
Kind Regards,
Martin

P.S. I have been trying to do it as well in /etc/fstab but NO success.
"PARTUUID=362fe8a3-dd4c-416c-94e5-5d521f23d48a none none none 0 0"
 
Old 09-23-2014, 09:05 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
The kernel tries to mount only the root partition afaik whatever partition is given as argument root=..., automatic mounting of other partition must be defined elsewhere

Last edited by keefaz; 09-23-2014 at 09:06 AM.
 
Old 09-23-2014, 09:46 AM   #3
masuch
Member
 
Registered: Sep 2011
Location: /dev/null
Distribution: ubuntu 64bits
Posts: 135

Original Poster
Rep: Reputation: 1
OK , So, if I see the following in the "syslog" reporting by kernel:

Sep 22 23:10:30 ARIVUBU kernel: [75857.796879] scsi 27:0:0:0: Direct-Access WD 3200JB External 0112 PQ: 0 ANSI: 0
Sep 22 23:10:30 ARIVUBU kernel: [75857.797264] sd 27:0:0:0: Attached scsi generic sg12 type 0
Sep 22 23:10:30 ARIVUBU kernel: [75857.797436] sd 27:0:0:0: [sdj] 625142448 512-byte logical blocks: (320 GB/298 GiB)
Sep 22 23:10:30 ARIVUBU kernel: [75857.800386] sd 27:0:0:0: [sdj] Write Protect is off
Sep 22 23:10:30 ARIVUBU kernel: [75857.803326] sd 27:0:0:0: [sdj] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Sep 22 23:10:30 ARIVUBU kernel: [75857.813042] sdj: sdj1
Sep 22 23:10:30 ARIVUBU kernel: [75857.839114] sd 27:0:0:0: [sdj] Attached SCSI disk
Sep 23 00:21:16 ARIVUBU kernel: [80103.383887] FAT-fs (sdf1): Can't find a valid FAT filesystem
Sep 23 00:21:16 ARIVUBU kernel: [80103.387512] XFS (sdf1): Invalid superblock magic number
Sep 23 00:21:16 ARIVUBU kernel: [80103.389371] FAT-fs (sdf1): Can't find a valid FAT filesystem
Sep 23 00:21:16 ARIVUBU kernel: [80103.391811] VFS: Can't find a Minix filesystem V1 | V2 | V3 on device sdf1.
Sep 23 00:21:16 ARIVUBU kernel: [80103.392922] hfsplus: unable to find HFS+ superblock
Sep 23 00:21:16 ARIVUBU kernel: [80103.394737] You didn't specify the type of your ufs filesystem
Sep 23 00:21:16 ARIVUBU kernel: [80103.394737]
Sep 23 00:21:16 ARIVUBU kernel: [80103.394737] mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
Sep 23 00:21:16 ARIVUBU kernel: [80103.394737]
Sep 23 00:21:16 ARIVUBU kernel: [80103.394737] >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
Sep 23 00:21:16 ARIVUBU kernel: [80103.395006] ufs_read_super: bad magic number
Sep 23 00:21:16 ARIVUBU kernel: [80103.396146] hfs: can't find a HFS filesystem on dev sdf1
Sep 23 00:21:16 ARIVUBU kernel: [80103.983732] FAT-fs (sdg1): Can't find a valid FAT filesystem
Sep 23 00:21:16 ARIVUBU kernel: [80103.990540] XFS (sdg1): Invalid superblock magic number
Sep 23 00:21:16 ARIVUBU kernel: [80103.994680] FAT-fs (sdg1): Can't find a valid FAT filesystem
Sep 23 00:21:16 ARIVUBU kernel: [80103.998991] VFS: Can't find a Minix filesystem V1 | V2 | V3 on device sdg1.
Sep 23 00:21:16 ARIVUBU kernel: [80104.000680] hfsplus: unable to find HFS+ superblock
Sep 23 00:21:16 ARIVUBU kernel: [80104.003510] You didn't specify the type of your ufs filesystem
Sep 23 00:21:16 ARIVUBU kernel: [80104.003510]
Sep 23 00:21:16 ARIVUBU kernel: [80104.003510] mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
Sep 23 00:21:16 ARIVUBU kernel: [80104.003510]
Sep 23 00:21:16 ARIVUBU kernel: [80104.003510] >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
Sep 23 00:21:16 ARIVUBU kernel: [80104.003840] ufs_read_super: bad magic number
Sep 23 00:21:16 ARIVUBU kernel: [80104.005520] hfs: can't find a HFS filesystem on dev sdg1
Sep 23 00:21:17 ARIVUBU kernel: [80104.282864] FAT-fs (sdi1): Can't find a valid FAT filesystem
Sep 23 00:21:17 ARIVUBU kernel: [80104.288341] XFS (sdi1): Invalid superblock magic number
Sep 23 00:21:17 ARIVUBU kernel: [80104.290282] FAT-fs (sdi1): Can't find a valid FAT filesystem
Sep 23 00:21:17 ARIVUBU kernel: [80104.293674] VFS: Can't find a Minix filesystem V1 | V2 | V3 on device sdi1.
Sep 23 00:21:17 ARIVUBU kernel: [80104.294927] hfsplus: unable to find HFS+ superblock
Sep 23 00:21:17 ARIVUBU kernel: [80104.296703] You didn't specify the type of your ufs filesystem
Sep 23 00:21:17 ARIVUBU kernel: [80104.296703]


HOW to tell to the kernel NOT to try to mount those specific partitions (in /etc/fstab) ?
 
Old 09-23-2014, 10:02 AM   #4
masuch
Member
 
Registered: Sep 2011
Location: /dev/null
Distribution: ubuntu 64bits
Posts: 135

Original Poster
Rep: Reputation: 1
--- I would like to have something like this in /etc/fstab ... IF it helps me ??? (which I did not try it yet)
PARTUUID=5bc5b355-ba9c-41d4-9d4a-d050d5850783 none /dev/null nobootwait,noauto 0 0 # LABEL=7
PARTUUID=362fe8a3-dd4c-416c-94e5-5d521f23d48a none /dev/null nobootwait,noauto 0 0
PARTUUID=5a780875-01 none /dev/null nobootwait,noauto 0 0
PARTUUID=02366c55-01 none /dev/null nobootwait,noauto 0 0
PARTUUID=362fe8a3-dd4c-416c-94e5-5d521f23d48a none /dev/null nobootwait,noauto 0 0
 
Old 09-23-2014, 11:27 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I don't see any relevant option in kernel parameters...
https://www.kernel.org/doc/Documenta...parameters.txt

Did you try to remove the unwanted partions lines from /etc/fstab?
 
Old 09-23-2014, 01:35 PM   #6
masuch
Member
 
Registered: Sep 2011
Location: /dev/null
Distribution: ubuntu 64bits
Posts: 135

Original Poster
Rep: Reputation: 1
Well, I did not find any relevant kernel parameter/s either. (That's why I put the question here :-))
I did not have to remove thouse partitions from /etc/fstab - they were not there. (I put it there today so when I restart the OS instance - will see what is going to happened ?)
(Those partition/s are mostly encrypted by truecrypt or are grub-bios or are unformatted. Well, Those partitions encrypted by truecrypt I am scared of the most. If something bad happened to those partitions/disks ... .)
Do not know why those partitions kernel has tried to mount (by filesystem type guessing) ... if appearently there is no filesystem (and won't be :-))
I have always thought that if partition is not in /etc/fstab it stayed untouched [except what is defined in "linux /vmlinuz root="]. And even that it must be defined in /etc/fstab / otherwise it is going to boot into initramfs.
 
Old 09-23-2014, 02:06 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe investigate some udev rules is the way to go. I don't have experience with this but maybe there are some rules that can be used to blacklist some partitions numbers
 
Old 09-24-2014, 09:21 AM   #8
masuch
Member
 
Registered: Sep 2011
Location: /dev/null
Distribution: ubuntu 64bits
Posts: 135

Original Poster
Rep: Reputation: 1
Well, After computer restarted today I did not find those errors again. I went through all any potential log files and did not find any sign of it. Tried to mount some partition by truecrypt and seems it is ok. So, maybe /etc/fstab is sufficient to manage it. But I am not going to mark this thread as solved until I will be more sure /etc/fstab helped.
I have read some udev manual as well but there is info that kernel is passing its disks findings to udev - not vice versa. So, I am little bit in a doubt that udev would helped. But maybe ... .
 
Old 09-24-2014, 11:37 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Well udev is responsible to create devices files on the fly in /dev (sdj, sdf, sdg...), if there is no device file, there is nothing to try to mount
 
Old 09-24-2014, 06:16 PM   #10
masuch
Member
 
Registered: Sep 2011
Location: /dev/null
Distribution: ubuntu 64bits
Posts: 135

Original Poster
Rep: Reputation: 1
Well, I have to look into udev because those errors appeared again even quite after couple of hours of running OS instance. So, I am back in track I guess.
 
Old 05-09-2015, 12:33 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
I installed 8 amd64 in a virtual machine with just /(sda1) and swap (sda5). Have not changed anything and no indication that it is trying to mount sda2. Have you changed anything from the initial installation?
 
Old 05-10-2015, 06:42 AM   #12
CaraGk
LQ Newbie
 
Registered: May 2015
Distribution: Debian GNU/Linux
Posts: 6

Rep: Reputation: Disabled
Hu... original installation was with squeeze or lenny... a few years ago. So many things have changed since that.
I found this behaviour when I looked at the logs in order to fix some other trouble with the last upgrade.
 
  


Reply

Tags
fstab, kernel, linux, mount, uuid



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
[SOLVED] Kernel Tries to Mount Wrong FS Type CincinnatiKid Slackware 13 08-15-2010 04:23 PM
Mount -o ufstype=bsdX, /home not readable. Mr-Bisquit *BSD 1 04-06-2010 10:09 PM
Partition table problem. fdis is lying to me, shows the wrong mount point I believe imtedkaczynski Slackware 6 12-05-2008 10:41 AM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 01:31 AM
Cannot Mount a Partition, wrong FS type, bad option etc. dsuratman Linux - Newbie 13 11-16-2003 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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