Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] what fs type am I using? and how can I run a scan?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kingcoras
n00b
n00b


Joined: 26 Jun 2007
Posts: 47

PostPosted: Wed Jun 26, 2013 7:59 pm    Post subject: [SOLVED] what fs type am I using? and how can I run a scan? Reply with quote

Okay, I admit, I must have screwed something up when doing the install, because I've got conflicting information, and the initial boot up is saying it can't run an fsck because the magic number is bad... and what's worse, it's my / partition, so it isn't like I can just umount it and check it.

so here is my conundrum...

contents of /etc/fstab
Code:

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda3               /boot           ext2            noauto,noatime  1 2
/dev/sda7               /               ext4            noatime         0 1
/dev/sda5               /home           reiserfs        noatime         0 0
/dev/sda6               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
/dev/fd0                /mnt/floppy     auto            noauto          0 0


contents of /etc/mtab
Code:

rootfs / rootfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=1008218,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda7 / reiserfs rw,noatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda5 /home reiserfs rw,noatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nodev,noexec,nosuid 0 0


output of mount command (is this the same as mtab? and is there another synonym for it I'm missing?)
Code:

rootfs on / type rootfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=1008218,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda7 on / type reiserfs (rw,noatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda5 on /home type reiserfs (rw,noatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nodev,noexec,nosuid)


so which one is right, and how can I get the system to do a proper fsck?
_________________
<bocz> i think ill be stuck to getting 2 sticks of 128
<bocz> thats 310 mb for a server
<Guilty> Kudos on finding the elusive 54MB DIMM

gentoo boot time: 25 seconds, Windows boot time: 1:30. Why, Bill, why?


Last edited by kingcoras on Fri Jun 28, 2013 2:40 am; edited 1 time in total
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Wed Jun 26, 2013 8:06 pm    Post subject: Re: what fs type am I using?? and how can I run a scan?? Reply with quote

kingcoras wrote:
magic number is bad


http://en.wikipedia.org/wiki/Extended_boot_record

Sounds like you have corruption or tampered with the boot; you'll need to fix the EBR before you can proceed, assuming nothing else has been corrupted or tampered with.
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 644
Location: Fife, Scotland

PostPosted: Wed Jun 26, 2013 8:48 pm    Post subject: Reply with quote

What did you format root (/dev/sda7) as? It kind of looks like you formatted as reiser but are telling the system (via fstab) that its ext4?
Back to top
View user's profile Send private message
kingcoras
n00b
n00b


Joined: 26 Jun 2007
Posts: 47

PostPosted: Fri Jun 28, 2013 1:48 am    Post subject: Reply with quote

I really hope it isn't the EBR... if it is, my entire linux install would go down the toilet if it suddenly failed, or if I screwed up the fix.

On the other hand, we have my horrible memory... I MEANT to format it ext4, but maybe I did format as reiserfs and put ext4 in fstab. If that's the case, and I flip the fs type in fstab, would that fix my problem?
_________________
<bocz> i think ill be stuck to getting 2 sticks of 128
<bocz> thats 310 mb for a server
<Guilty> Kudos on finding the elusive 54MB DIMM

gentoo boot time: 25 seconds, Windows boot time: 1:30. Why, Bill, why?
Back to top
View user's profile Send private message
kingcoras
n00b
n00b


Joined: 26 Jun 2007
Posts: 47

PostPosted: Fri Jun 28, 2013 2:40 am    Post subject: Reply with quote

okay, when I changed the fs type in fstab, if was fine. I can't believe I did that.
_________________
<bocz> i think ill be stuck to getting 2 sticks of 128
<bocz> thats 310 mb for a server
<Guilty> Kudos on finding the elusive 54MB DIMM

gentoo boot time: 25 seconds, Windows boot time: 1:30. Why, Bill, why?
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Fri Jun 28, 2013 11:09 am    Post subject: Reply with quote

No idea if there is a check for the padding magic number in the EBR, it might just boot fine if those numbers were wrong; but well, apparently it wasn't that magic number. Good that you figured it out. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum