LinuxQuestions.org
Visit Jeremy's Blog.
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 02-28-2008, 01:47 PM   #1
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Rep: Reputation: 15
Recently formatted partition not available for recording


I removed all partition of an IDE HD mounted as slave in the disk controller and formatted it as extf3 in one single partition(I used Mandriva Control Center to do the operations)

Everything seems to be find, but my user can't write in the new created partition. It appears a directory "LOST+FOUND" and nothing more.

What can I do to turn the new partition available to write as non-superuser user? Must I create a swap partition? I can't understand why the new disk although mounted is not available for normal I/O operations.

Additional question: How can I set a name for my new partition? I've tried with partition magic under windows but it doesn't recognize the partition. If I try with Mandriva Control Center, it corrupts the /etc/fstab file. I think there is a bug in the Mandriva Control Center.

Greetings from Sao Paulo - Brazil

Ricardo
 
Old 02-28-2008, 02:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What is the output of
fdisk -l
mount
and an ls -l of the parent directory of the
mount-point of the new hdd.



Cheers,
Tink
 
Old 02-28-2008, 05:08 PM   #3
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
Here we go:


What is the output of
fdisk -l
==================================================
[root@localhost ricardo]# fdisk -l

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes

Dispositivo Boot Start End Blocks Id System
/dev/hda1 * 1 6119 49150836 7 HPFS ou NTFS
/dev/hda2 6120 6377 2072385 f W95 Ext'd (LBA)
/dev/hda3 6378 17851 92164905 83 Linux
/dev/hda4 17852 19457 12900195 c W95 FAT32 (LBA)
/dev/hda5 6120 6377 2072353+ 82 Linux swap / Solaris

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes

Dispositivo Boot Start End Blocks Id System
/dev/hdb1 * 1 4866 39082648+ 83 Linux
[root@localhost ricardo]#
===================================================
mount
===================================================
[root@localhost ricardo]# mount
/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
/dev/hdb1 on /mnt/dsk40GB type ext3 (rw)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=ext2:vfat,--)
/dev/hda1 on /mnt/win_c type ntfs (ro,umask=0,nls=utf8)
/dev/hda4 on /mnt/win_d type vfat (rw,umask=0,iocharset=utf8)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@localhost ricardo]#
===================================================
and an ls -l of the parent directory of the
mount-point of the new hdd.
===================================================
[root@localhost ricardo]# cd /mnt/dsk40GB
[root@localhost dsk40GB]# ls -l
total 16
drwx-w--w- 2 root root 16384 Fev 28 16:21 lost+found/
[root@localhost dsk40GB]#
===================================================
 
Old 02-28-2008, 05:47 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What are the permissions for /mnt/dsk40GB ?

Edit - sorry, this was Tinkster' last question. You actually need

ls -l /mnt

Last edited by billymayday; 02-28-2008 at 05:49 PM.
 
Old 02-28-2008, 05:51 PM   #5
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
[root@localhost dsk40GB]# ls -l /mnt
total 23
drwxr-xr-x 2 root root 1024 Fev 24 05:50 cdrom/
drwxr-xr-x 2 root root 1024 Fev 24 05:50 cdrom2/
drwxr-xr-x 3 root root 4096 Fev 28 16:21 dsk40GB/
drwxrwxrwx 0 root root 0 Fev 28 16:28 floppy/
dr-xr-xr-x 1 root root 8192 Fev 28 10:02 win_c/
drwxr-xr-x 2 root root 1024 Fev 24 05:49 win_c2/
drwxrwxrwx 4 root root 8192 Dez 31 1969 win_d/
[root@localhost dsk40GB]#
 
Old 02-28-2008, 05:56 PM   #6
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
I saw the light:

[root@localhost mnt]# chmod a+w dsk40GB
[root@localhost mnt]# ls -l /mnt
total 23
drwxr-xr-x 2 root root 1024 Fev 24 05:50 cdrom/
drwxr-xr-x 2 root root 1024 Fev 24 05:50 cdrom2/
drwxrwxrwx3 root root 4096 Fev 28 16:21 dsk40GB/
drwxrwxrwx 0 root root 0 Fev 28 16:28 floppy/
dr-xr-xr-x 1 root root 8192 Fev 28 10:02 win_c/
drwxr-xr-x 2 root root 1024 Fev 24 05:49 win_c2/
drwxrwxrwx 4 root root 8192 Dez 31 1969 win_d/
[root@localhost mnt]#
 
Old 02-28-2008, 05:59 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Congratulations!
 
Old 02-28-2008, 06:09 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by nightrider View Post
I saw the light:

[root@localhost mnt]# chmod a+w dsk40GB
[root@localhost mnt]# ls -l /mnt
total 23
drwxr-xr-x 2 root root 1024 Fev 24 05:50 cdrom/
drwxr-xr-x 2 root root 1024 Fev 24 05:50 cdrom2/
drwxrwxrwx3 root root 4096 Fev 28 16:21 dsk40GB/
drwxrwxrwx 0 root root 0 Fev 28 16:28 floppy/
dr-xr-xr-x 1 root root 8192 Fev 28 10:02 win_c/
drwxr-xr-x 2 root root 1024 Fev 24 05:49 win_c2/
drwxrwxrwx 4 root root 8192 Dez 31 1969 win_d/
[root@localhost mnt]#
That's ONLY sane if you're the only user on the system
or trust everyone not to stuff up ...



Cheers,
Tink
 
Old 02-28-2008, 08:15 PM   #9
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
May you develop please? Suppose I don't trust or I'm not the only one in the system. Let me learn a little bit more. Let me catch the idea, please
 
Old 02-28-2008, 08:47 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well .. write access to the whole directory means that anyone could
delete stuff underneath it. Also anyone can read everything - if you
have documents or files stored there that you consider private the
pre-existing global read/execute permissions are too permissive, too.


Cheers,
Tink
 
Old 02-29-2008, 07:19 AM   #11
nightrider
Member
 
Registered: Apr 2005
Location: Sao Paulo - Brazil
Distribution: Fedora Workstation 32 64bits
Posts: 170

Original Poster
Rep: Reputation: 15
Thank you very much. By this time I'm the only user. But I know about root/group/user permissions.

Cheers

Ricardo
 
  


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
Problem with a recently partition p3k Linux - Newbie 1 04-19-2007 02:14 AM
Recovering formatted partition TowiKromo Linux - Laptop and Netbook 1 11-10-2006 03:21 PM
newly formatted partition contains used space Kristian2 Linux - Newbie 4 10-28-2006 11:50 PM
formatted my home partition accidently marsques Linux - Newbie 8 12-21-2004 03:47 PM
partition formatted on each new installation? timsch75 Linux - Newbie 2 03-01-2004 11:28 AM

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

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