LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Verifying that I did it right (format as ext3) (https://www.linuxquestions.org/questions/linux-newbie-8/verifying-that-i-did-it-right-format-as-ext3-840374/)

Wim Sturkenboom 10-25-2010 01:51 PM

Verifying that I did it right (format as ext3)
 
Added a new HD

Created 1TB partition
Ran command below
Code:

root@desktop1:~# mkfs.ext3 -c /dev/sdb1
mke2fs 1.40.8 (13-Mar-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
61054976 inodes, 244190000 blocks
12209500 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848

Checking for bad blocks (read-only test): done                               
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@desktop1:~#

Did I miss anything?

zer0signal 10-25-2010 02:36 PM

Quote:

Originally Posted by Wim Sturkenboom (Post 4138915)
Added a new HD

Created 1TB partition
Ran command below
Code:

root@desktop1:~# mkfs.ext3 -c /dev/sdb1
mke2fs 1.40.8 (13-Mar-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
61054976 inodes, 244190000 blocks
12209500 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848

Checking for bad blocks (read-only test): done                               
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@desktop1:~#

Did I miss anything?

Looks like you did it correct! =)

just mount it in your /etc/fstab

/dev/sdb1 /mnt/"whatever" ext3 defaults 0 0

ozanbaba 10-25-2010 02:39 PM

nicely done;

And quick take note of superblock back-up list to safe place (Like note on your notebook), you may need them one day.

syg00 10-25-2010 03:52 PM

If this is a data (only) drive, remove the reserved space - that a lot of lost space.
The superblock list can always be regenerated if needed.

udaman 10-25-2010 04:04 PM

Quote:

Originally Posted by syg00 (Post 4139035)
If this is a data (only) drive, remove the reserved space - that a lot of lost space.

Thanks for this tip. I have a data drive that has 5% (default value) reserved space. I see I can change this with 'tune2fs -m'. Is a value of 1% OK, or should I just go 0%? Is it safe to do on a running mounted drive?

Thanks.

udaman 10-25-2010 04:31 PM

I answered my own question. I booted up my sandbox machine and tried it on the /home partition. No problem at all, and I didn't have to unmount the drive. I wish I'd have know this trick years ago.

Wim Sturkenboom 10-26-2010 12:45 AM

Thanks for the replies and tips.

This is a data drive and will only contain photos. Will definitely throw the reserved space away. I still have to figure a few things out regarding fstab (uuids and permissions) but that will be another post if I don't come right.

PS
Did not have the time last night to work further on it as the bad blocks check took ages (2 or 3 hours).


All times are GMT -5. The time now is 12:12 AM.