Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network operating system printer problem ram registry router slow software sound svchost.exe trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
format external hard drive to ext4

Reply  
Thread Tools
saikee's Avatar
Senior Member with 3,409 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
04-Mar-2009, 07:39 PM #16
Here is an example, using a Debian 4R0 with a 2.6.18 kernel to mount Ubuntu 9.04 in sda6 formatted to Ext4 filing system
Code:
debian:/home/saikee# mkdir /mnt/sda6
mkdir: cannot create directory `/mnt/sda6': File exists
debian:/home/saikee# mount /dev/sda6 /mnt/sda6
mount: wrong fs type, bad option, bad superblock on /dev/sda6,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

debian:/home/saikee# mount -t ext4 /dev/sda6 /mnt/sda6
mount: unknown filesystem type 'ext4'
debian:/home/saikee# mount -t ext3 /dev/sda6 /mnt/sda6
mount: wrong fs type, bad option, bad superblock on /dev/sda6,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


debian:/home/saikee# uname -a
Linux debian 2.6.18-6-686 #1 SMP Sat May 24 10:24:42 UTC 2008 i686 GNU/Linux
I tried it with DSL which failed too and its kernel is 2.4.31, one of the oldest around.

Here is anther attempt to mount it by Mepis
Code:
root@mepis1:/home/saikee# mkdir /mnt/sda6
mkdir: cannot create directory `/mnt/sda6': File exists
root@mepis1:/home/saikee# mount /dev/sda6 /mnt/sda6
mount: unknown filesystem type 'ext4'
root@mepis1:/home/saikee# uname -a
Linux mepis1 2.6.27-1-mepis64-smp #1 SMP PREEMPT Wed Feb 18 10:19:55 EST 2009 x86_64 GNU/Linux
root@mepis1:/home/saikee#
The above clearly suggests a Linux with 2.6.27-1 kernel is able to see an Ext4 partition but unable to mount it.

Here is the attempt by Mandriva, with a 2.6.28 kernel
Code:
[root@localhost saikee]# mount /dev/sda6 /mnt/sda6
[root@localhost saikee]# ls /mnt/sda6
abit/  boot/   dev/  home/        lib/         media/  opt/   root/  selinux/  sys/  usr/  vmlinuz@
bin/   cdrom@  etc/  initrd.img@  lost+found/  mnt/    proc/  sbin/  srv/      tmp/  var/
[root@localhost saikee]# uname -a
Linux localhost 2.6.28.4-desktop-1mnb #1 SMP Mon Feb 9 07:18:26 EST 2009 x86_64 Intel(R) Core(TM)2 CPU    6700  @ 2.66GHz GNU/Linux
[root@localhost saikee]#
Thus only the Mandriva with the latest 2.6.28 kernel succeeded in mounting the sda6 partition formatted in Ext4.

The Ext4 has been around for a while but only declared "stable" in the 2.6.28 kernel.

In conclusion one needs a newish kernel to read an Ext4 partition.

Last edited by saikee; 04-Mar-2009 at 08:02 PM..
Elvandil's Avatar
Computer Specs
Moderator with 48,924 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
04-Mar-2009, 08:08 PM #17
Thank you, saikee. I would have bet important money that you would clarify this for us once you saw the thread.

We all appreciate your input.
saikee's Avatar
Senior Member with 3,409 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
04-Mar-2009, 08:29 PM #18
Elvandil,

Examples speak better words. It pays to be cautious.
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
04-Mar-2009, 09:45 PM #19
Yes, thanks saikee.

I must say I am disappointed.

I assumed there would be a driver available much like ntfs-3g for MS.


Here it was under my nose:
"Ext4 Filesystem Explained in Plain English"
http://hehe2.net/linux-general/ext4-...plain-english/
Elvandil's Avatar
Computer Specs
Moderator with 48,924 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
04-Mar-2009, 09:57 PM #20
It won't be long before all new OS's have support for Ext4, so it's really a trivial problem. The only people who might worry are those that are running old OS's and don't want to update.
Elvandil's Avatar
Computer Specs
Moderator with 48,924 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
04-Mar-2009, 09:59 PM #21
Quote:
Originally Posted by saikee View Post
Elvandil,

Examples speak better words. It pays to be cautious.
Absolutely right. I almost never recommend a program to anyone that I havn't tried myself, and would have tested the possibilities with Ext4 if I had had the resources to do so. Thank you again.

I wouldn't have stuck my nose in here at all if it weren't for the fact that, different as one OS may be from another, they share some fundamental principles. Just as one model of automobile is not built according to different laws of physics, the family of OS's is more similar to one another than different.
__________________
Microsoft MVP
異驚の界世 ˇpןɹoʍ ǝɥʇ ɟo sɹǝpuoʍ ǝɥʇ ɟo ǝuo sı ǝpoɔıun ʞuıɥʇ ı
saikee's Avatar
Senior Member with 3,409 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
05-Mar-2009, 04:36 AM #22
Quote:
Originally Posted by RootbeaR View Post
Yes, thanks saikee.

I must say I am disappointed.

I assumed there would be a driver available much like ntfs-3g for MS.


Here it was under my nose:
"Ext4 Filesystem Explained in Plain English"
http://hehe2.net/linux-general/ext4-...plain-english/
I think there must be but I haven't bothered with it.

Too many things are getting interesting. I managed to get 130 partitions out of one hard disk from the 2.6.28 kernel but the majority of Linux are not ready to use them yet including their partitioning tools and installers.
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
05-Mar-2009, 08:41 AM #23
Quote:
Originally Posted by saikee View Post
Too many things are getting interesting.
Yes, I am finding that a problem.

I feel like I need to take a break from updating until they slow down a little.

So much reading, so little time.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:35 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.