LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2006, 09:06 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
New external HD, FS issue.


I just got a new external HD , I plan to use it for storage, and the filesystem I want to use is JFS. I formatted it to JFS, labeled Storage...

Code:
root@slacker:/home/slackuser# /sbin/mkfs.jfs -L Storage /dev/sdb1
/sbin/mkfs.jfs version 1.1.8, 03-May-2005
Warning!  All data on device /dev/sdb1 will be lost!

Continue? (Y/N) y
   \

Format completed successfully.

293033601 kilobytes total disk space.
I can mount it as a user, but I get this error when trying to write to it...

Code:
slackuser@slacker:~$ cd /mnt/hd
slackuser@slacker:/mnt/hd$ mkdir test
mkdir: cannot create directory `test': Permission denied
This is what I have for the device in fstab

Code:
/dev/sdb1   /mnt/hd     jfs    noauto,users,rw      0   0
Output from mount...

Code:
slackuser@slacker:~$ mount
/dev/hda2 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/hda1 on /ntfs type ntfs (ro,noexec,nosuid,nodev,umask=000)
/dev/hda4 on /fat32 type vfat (rw,noexec,nosuid,nodev,umask=000)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
//SLACK/D on /mnt/network type smbfs (0)
/dev/sdb1 on /mnt/hd type jfs (rw,noexec,nosuid,nodev)
Any ideas?
 
Old 08-26-2006, 10:23 PM   #2
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
can root write to the device?
 
Old 08-26-2006, 10:40 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253

Original Poster
Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
Yes it can, but I don't want to have to su to root just to be able to copy stuff to the drive.

One other note, I tried formatting it to ext2 or ext3 , but it was taking much longer, so I decided to format it under windows with partition magic to ext2, but then I noticed why it was taking so long. Partition Magic showed the used portion as 48GB , I then formatted it to NTFS to see if it would take as long. Nope, it finished pretty quick, and the used portion was 72MB instead.....So thats why I chose JFS for linux instead, but I wouldn't mind using reiserfs, if I can get a window driver to be able to read/write to it natively. I have a ext2 driver for windows, it works great, but I don't want to sacrifice 48GB just for formatting the drive to ext2... Hrmm... Perhaps now would be a good time to change fs... I'm open to any suggestions.

Last edited by Jeebizz; 08-26-2006 at 10:43 PM.
 
Old 08-27-2006, 09:45 AM   #4
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
if i were going format it as ext2 i'd use cfdisk.
You could try mounting your jfs drive with;
Code:
mount -tjfs /dev/sdb1 /mnt/hd fmask=777,dmask=777
if that works add
Code:
/dev/sdb1   /mnt/hd     jfs    noauto,users,rw,fmask=777,dmask=777      0   0
to you /etc/fstab

Last edited by chrisortiz; 08-27-2006 at 09:46 AM.
 
Old 08-27-2006, 10:44 PM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253

Original Poster
Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
That doesn't work...
Code:
slackuser@slacker:~$ mount -tjfs /dev/sda2 /mnt/hd2 fmaks=777,dmask=777
mount: only root can do that
By the way its sda2 now because sda1 is NTFS and I put all of my files on it for now, and so I created sda2 under cfdisk and formatted as jfs. Also, now I am getting a different error message when trying to even mount jfs.

Output from dmesg | tail
Code:
root@slacker:/home/slackuser# mount /dev/sda2
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@slacker:/home/slackuser# dmesg | tail
[drm:radeon_do_init_cp] *ERROR* failed to init PCI GART!
jfs: Unrecognized mount option fmask
jfs: Unrecognized mount option fmask
jfs: Unrecognized mount option fmask
SCSI device sda: 586072368 512-byte hdwr sectors (300069 MB)
 sda: sda1
SCSI device sda: 586072368 512-byte hdwr sectors (300069 MB)
 sda: sda1 sda2
jfs: Unrecognized mount option fmask
jfs: Unrecognized mount option fmask
This is what I have now in fstab as well...
Code:
/dev/sda2        /mnt/hd2         jfs      noauto,users,rw,fmask=777,dmask=777 0  0
 
Old 08-29-2006, 09:41 PM   #6
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
try removing "fmask=777" from your fstab.
 
Old 08-29-2006, 11:31 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253

Original Poster
Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
Nope, still won't work.
Code:
slackuser@slacker:~$ mount /dev/sda2
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

slackuser@slacker:~$ dmesg | tail
NTFS: Unicode name contains a character that cannot be converted to chosen character set. Remount with utf8 encoding and this should work.
smb_trans2_request: result=-104, setting invalid
smb_retry: successful, new pid=185, generation=15
usb.c: USB disconnect on device 00:04.1-1 address 7
hub.c: new USB device 00:04.1-1, assigned address 8
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 8
smb_trans2_request: result=-104, setting invalid
smb_retry: successful, new pid=185, generation=16
jfs: Unrecognized mount option dmask
 
Old 08-31-2006, 08:30 PM   #8
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
i guess jfs doesn't respond to fmask and dmask, remove dmask=777 from your fstab, it should go back to your original error. The last thing i can think of is (as root):
Code:
chmod 777 /mnt/hd
 
Old 08-31-2006, 09:00 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253

Original Poster
Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
That last one works, lol.
Code:
root@slacker:/mnt$ chmod 777 hd2
root@slacker:/mnt# exit
exit
slackuser@slacker:/mnt$ ls -l
total 24
drwxr-xr-x  2 root root  4096 2006-04-30 21:41 cdrw/
drwxr-xr-x  2 root root  4096 2006-04-30 21:41 cpflash/
drwxr-xr-x  2 root root  4096 2006-04-30 21:41 dvdrom/
drwxr-xr-x  2 root root  4096 2006-04-30 21:42 flashdrive/
drwxr-xr-x  2 root root  4096 2002-03-16 01:34 floppy/
dr-xr-xr-x  1 root root 24576 2006-08-27 14:54 hd1/
drwxrwxrwx  2 root root   256 2006-08-31 19:54 hd2/
drwxrwxrwx  1 root root  4096 2006-08-27 21:20 network/
slackuser@slacker:/mnt$ cd hd2
slackuser@slacker:/mnt/hd2$ mkdir test
slackuser@slacker:/mnt/hd2$ ls
test/
slackuser@slacker:/mnt/hd2$ mount
/dev/hda2 on / type ext3 (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
//SLACK/D on /mnt/network type smbfs (0)
/dev/hda1 on /ntfs type ntfs (ro,noexec,nosuid,nodev,utf8,umask=000)
/dev/hda4 on /fat32 type vfat (rw,noexec,nosuid,nodev,utf8,umask=000)
/dev/sda1 on /mnt/hd1 type ntfs (ro,noexec,nosuid,nodev,utf8,umask=000)
/dev/sda2 on /mnt/hd2 type jfs (rw,noexec,nosuid,nodev)
slackuser@slacker:/mnt/hd2$ cp /mnt/hd1/
ASCGEN_B/                  Music/                     Skins/
Disc Images/               Network_Drive/             System Volume Information/
Drive_D/                   RECYCLER/                  ext_Gex_3DObigfile/
Home/                      RENDER/
slackuser@slacker:/mnt/hd2$ cp -rv /mnt/hd1/RE
RECYCLER/ RENDER/
slackuser@slacker:/mnt/hd2$ cp -rv /mnt/hd1/RENDER/ /mnt/hd2
`/mnt/hd1/RENDER/' -> `/mnt/hd2/RENDER'
`/mnt/hd1/RENDER/.BPI' -> `/mnt/hd2/RENDER/.BPI'
`/mnt/hd1/RENDER/BOILING_.JPG' -> `/mnt/hd2/RENDER/BOILING_.JPG'
`/mnt/hd1/RENDER/CRAZY.JPG' -> `/mnt/hd2/RENDER/CRAZY.JPG'
`/mnt/hd1/RENDER/CRAZYMI2.BLE' -> `/mnt/hd2/RENDER/CRAZYMI2.BLE'
`/mnt/hd1/RENDER/CRAZYMI3.BLE' -> `/mnt/hd2/RENDER/CRAZYMI3.BLE'
`/mnt/hd1/RENDER/CRAZYMI4.BLE' -> `/mnt/hd2/RENDER/CRAZYMI4.BLE'
`/mnt/hd1/RENDER/CRAZYMI5.BLE' -> `/mnt/hd2/RENDER/CRAZYMI5.BLE'
`/mnt/hd1/RENDER/CRAZYMIK.BLE' -> `/mnt/hd2/RENDER/CRAZYMIK.BLE'
`/mnt/hd1/RENDER/CRAZY_SW.JPG' -> `/mnt/hd2/RENDER/CRAZY_SW.JPG'
`/mnt/hd1/RENDER/MIKERUA2.BLE' -> `/mnt/hd2/RENDER/MIKERUA2.BLE'
`/mnt/hd1/RENDER/MIKERUAH.BLE' -> `/mnt/hd2/RENDER/MIKERUAH.BLE'
`/mnt/hd1/RENDER/OCEAN_W2.JPG' -> `/mnt/hd2/RENDER/OCEAN_W2.JPG'
`/mnt/hd1/RENDER/OCEAN_W3.JPG' -> `/mnt/hd2/RENDER/OCEAN_W3.JPG'
`/mnt/hd1/RENDER/OCEAN_W4.JPG' -> `/mnt/hd2/RENDER/OCEAN_W4.JPG'
`/mnt/hd1/RENDER/OCEAN_W5.JPG' -> `/mnt/hd2/RENDER/OCEAN_W5.JPG'
`/mnt/hd1/RENDER/OCEAN_W6.JPG' -> `/mnt/hd2/RENDER/OCEAN_W6.JPG'
`/mnt/hd1/RENDER/OCEAN_WA.JPG' -> `/mnt/hd2/RENDER/OCEAN_WA.JPG'
`/mnt/hd1/RENDER/PRAIRIE2.JPG' -> `/mnt/hd2/RENDER/PRAIRIE2.JPG'
`/mnt/hd1/RENDER/PRAIRIE3.JPG' -> `/mnt/hd2/RENDER/PRAIRIE3.JPG'
`/mnt/hd1/RENDER/PRAIRIE4.JPG' -> `/mnt/hd2/RENDER/PRAIRIE4.JPG'
`/mnt/hd1/RENDER/PRAIRIE_.JPG' -> `/mnt/hd2/RENDER/PRAIRIE_.JPG'
`/mnt/hd1/RENDER/PURPLE_S.JPG' -> `/mnt/hd2/RENDER/PURPLE_S.JPG'
`/mnt/hd1/RENDER/RHODODEN.JPG' -> `/mnt/hd2/RENDER/RHODODEN.JPG'
`/mnt/hd1/RENDER/SOAP_BUB.JPG' -> `/mnt/hd2/RENDER/SOAP_BUB.JPG'
`/mnt/hd1/RENDER/SOLAR_E2.JPG' -> `/mnt/hd2/RENDER/SOLAR_E2.JPG'
`/mnt/hd1/RENDER/SOLAR_EC.JPG' -> `/mnt/hd2/RENDER/SOLAR_EC.JPG'
`/mnt/hd1/RENDER/THUMBS.DB' -> `/mnt/hd2/RENDER/THUMBS.DB'
`/mnt/hd1/RENDER/WATER_C2.JPG' -> `/mnt/hd2/RENDER/WATER_C2.JPG'
`/mnt/hd1/RENDER/WATER_CO.JPG' -> `/mnt/hd2/RENDER/WATER_CO.JPG'
slackuser@slacker:/mnt/hd2$ ls
RENDER/  test/
slackuser@slacker:/mnt/hd2$
Still I don't see why it is so troublesome just to be able to allow a normal user to write to a partition from a different disk. Oh well. Still thanks for the suggestion, at least it works.

[edit]

Well, here's another curiousity, I can copy, but whatever I copy is automatically set to readonly... Weird.

Code:
slackuser@slacker:/mnt/hd2$ ls -l
total 8
dr-xr-xr-x  2 slackuser users 4096 2006-08-31 20:06 RENDER/

Last edited by Jeebizz; 08-31-2006 at 09:05 PM.
 
Old 09-01-2006, 08:25 PM   #10
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
Linux was designed to be very secure. One deny inode can screw up alot of stuff. Its the same with NTFS based systems, they just aren't as secure out of the box.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
laptop-external monitor issue with simplymepis 3.3 lectrix Linux - Laptop and Netbook 0 01-09-2006 11:01 AM
Breezy issue with external hard drive Kingrames Ubuntu 2 10-16-2005 06:08 PM
weird issue with a 500GB USB external drive cyberpuerka Linux - Hardware 6 05-11-2005 12:08 PM
usb 2.0 external hdd bad performance - filesystem issue ? rtspitz Linux - Hardware 0 05-10-2005 12:28 PM
Dual boot issue with external hard drive asmichael Linux - Laptop and Netbook 2 02-02-2004 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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