Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-26-2006, 09:06 PM
|
#1
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253
|
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?
|
|
|
08-26-2006, 10:23 PM
|
#2
|
Member
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
|
can root write to the device?
|
|
|
08-26-2006, 10:40 PM
|
#3
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253
Original Poster
|
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.
|
|
|
08-27-2006, 09:45 AM
|
#4
|
Member
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
|
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.
|
|
|
08-27-2006, 10:44 PM
|
#5
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253
Original Poster
|
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
|
|
|
08-29-2006, 09:41 PM
|
#6
|
Member
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
|
try removing "fmask=777" from your fstab.
|
|
|
08-29-2006, 11:31 PM
|
#7
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253
Original Poster
|
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
|
|
|
08-31-2006, 08:30 PM
|
#8
|
Member
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
|
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):
|
|
|
08-31-2006, 09:00 PM
|
#9
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,253
Original Poster
|
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.
|
|
|
09-01-2006, 08:25 PM
|
#10
|
Member
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|